Skip to content
Snippets Groups Projects
Select Git revision
  • 08eda47da1dcb4b30c8439e9cccc77e08d7bec70
  • develop default protected
  • feature/gmsh-reader
  • origin/stage/bouguettaia
  • feature/kinetic-schemes
  • feature/reconstruction
  • feature/local-dt-fsi
  • feature/composite-scheme-sources
  • feature/composite-scheme-other-fluxes
  • feature/serraille
  • feature/variational-hydro
  • feature/composite-scheme
  • hyperplastic
  • feature/polynomials
  • feature/gks
  • feature/implicit-solver-o2
  • feature/coupling_module
  • feature/implicit-solver
  • feature/merge-local-dt-fsi
  • master protected
  • feature/escobar-smoother
  • v0.5.0 protected
  • v0.4.1 protected
  • v0.4.0 protected
  • v0.3.0 protected
  • v0.2.0 protected
  • v0.1.0 protected
  • Kidder
  • v0.0.4 protected
  • v0.0.3 protected
  • v0.0.2 protected
  • v0 protected
  • v0.0.1 protected
33 results

EulerKineticSolverMultiDOrder2.hpp

Blame
  • MeshEdgeBoundary.hpp 1.85 KiB
    #ifndef MESH_EDGE_BOUNDARY_HPP
    #define MESH_EDGE_BOUNDARY_HPP
    
    #include <algebra/TinyVector.hpp>
    #include <mesh/IBoundaryDescriptor.hpp>
    #include <mesh/RefItemList.hpp>
    #include <utils/Array.hpp>
    
    template <size_t Dimension>
    class Connectivity;
    
    template <typename ConnectivityType>
    class Mesh;
    
    template <size_t Dimension>
    class [[nodiscard]] MeshEdgeBoundary   // clazy:exclude=copyable-polymorphic
    {
     protected:
      RefEdgeList m_ref_edge_list;
      std::string m_boundary_name;
    
      std::array<TinyVector<Dimension>, Dimension*(Dimension - 1)> _getBounds(const Mesh<Connectivity<Dimension>>& mesh)
        const;
    
     public:
      template <size_t MeshDimension>
      friend MeshEdgeBoundary<MeshDimension> getMeshEdgeBoundary(const Mesh<Connectivity<MeshDimension>>& mesh,
                                                                 const IBoundaryDescriptor& boundary_descriptor);
    
      MeshEdgeBoundary& operator=(const MeshEdgeBoundary&) = default;
      MeshEdgeBoundary& operator=(MeshEdgeBoundary&&) = default;
    
      PUGS_INLINE
      const RefEdgeList& refEdgeList() const
      {
        return m_ref_edge_list;
      }
    
      PUGS_INLINE
      const Array<const EdgeId>& edgeList() const
      {
        return m_ref_edge_list.list();
      }
    
     protected:
      MeshEdgeBoundary(const Mesh<Connectivity<Dimension>>& mesh, const RefEdgeList& ref_edge_list);
      MeshEdgeBoundary(const Mesh<Connectivity<Dimension>>& mesh, const RefFaceList& ref_face_list);
    
     public:
      MeshEdgeBoundary(const MeshEdgeBoundary&) = default;   // LCOV_EXCL_LINE
      MeshEdgeBoundary(MeshEdgeBoundary &&)     = default;   // LCOV_EXCL_LINE
    
      MeshEdgeBoundary()          = default;
      virtual ~MeshEdgeBoundary() = default;
    };
    
    template <size_t Dimension>
    MeshEdgeBoundary<Dimension> getMeshEdgeBoundary(const Mesh<Connectivity<Dimension>>& mesh,
                                                    const IBoundaryDescriptor& boundary_descriptor);
    
    #endif   // MESH_EDGE_BOUNDARY_HPP