Skip to content
Snippets Groups Projects
Select Git revision
  • 3369b1f2a70de3702f353e14cd4a625ce6ad06b6
  • develop default protected
  • feature/advection
  • feature/composite-scheme-other-fluxes
  • origin/stage/bouguettaia
  • save_clemence
  • feature/local-dt-fsi
  • feature/variational-hydro
  • feature/gmsh-reader
  • feature/reconstruction
  • feature/kinetic-schemes
  • feature/composite-scheme-sources
  • feature/serraille
  • feature/composite-scheme
  • hyperplastic
  • feature/polynomials
  • feature/gks
  • feature/implicit-solver-o2
  • feature/coupling_module
  • feature/implicit-solver
  • feature/merge-local-dt-fsi
  • 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

ASTNodeEmptyBlockCleaner.hpp

Blame
  • MeshFlatNodeBoundary.hpp 2.13 KiB
    #ifndef MESH_FLAT_NODE_BOUNDARY_HPP
    #define MESH_FLAT_NODE_BOUNDARY_HPP
    
    #include <mesh/MeshNodeBoundary.hpp>
    
    template <size_t Dimension>
    class [[nodiscard]] MeshFlatNodeBoundary final
      : public MeshNodeBoundary<Dimension>   // clazy:exclude=copyable-polymorphic
    {
     public:
      using Rd = TinyVector<Dimension, double>;
    
     private:
      const Rd m_outgoing_normal;
    
      Rd _getNormal(const Mesh<Connectivity<Dimension>>& mesh);
    
      void _checkBoundaryIsFlat(const TinyVector<Dimension, double>& normal, const TinyVector<Dimension, double>& origin,
                                const double length, const Mesh<Connectivity<Dimension>>& mesh) const;
    
      Rd _getOutgoingNormal(const Mesh<Connectivity<Dimension>>& mesh);
    
     public:
      const Rd& outgoingNormal() const
      {
        return m_outgoing_normal;
      }
    
      MeshFlatNodeBoundary& operator=(const MeshFlatNodeBoundary&) = default;
      MeshFlatNodeBoundary& operator=(MeshFlatNodeBoundary&&) = default;
    
      template <size_t MeshDimension>
      friend MeshFlatNodeBoundary<MeshDimension> getMeshFlatNodeBoundary(const Mesh<Connectivity<MeshDimension>>& mesh,
                                                                         const IBoundaryDescriptor& boundary_descriptor);
    
     private:
      template <typename MeshType>
      MeshFlatNodeBoundary(const MeshType& mesh, const RefFaceList& ref_face_list)
        : MeshNodeBoundary<Dimension>(mesh, ref_face_list), m_outgoing_normal(_getOutgoingNormal(mesh))
      {}
    
      template <typename MeshType>
      MeshFlatNodeBoundary(const MeshType& mesh, const RefNodeList& ref_node_list)
        : MeshNodeBoundary<Dimension>(mesh, ref_node_list), m_outgoing_normal(_getOutgoingNormal(mesh))
      {}
    
     public:
      MeshFlatNodeBoundary()                            = default;
      MeshFlatNodeBoundary(const MeshFlatNodeBoundary&) = default;
      MeshFlatNodeBoundary(MeshFlatNodeBoundary &&)     = default;
      ~MeshFlatNodeBoundary()                           = default;
    };
    
    template <size_t Dimension>
    MeshFlatNodeBoundary<Dimension> getMeshFlatNodeBoundary(const Mesh<Connectivity<Dimension>>& mesh,
                                                            const IBoundaryDescriptor& boundary_descriptor);
    
    #endif   // MESH_FLAT_NODE_BOUNDARY_HPP