Vulpes  0.1.0
Versatile and parallel compUtational Library for high-order discontinuous Polytopal Element Simulations
Loading...
Searching...
No Matches
vulpes::fe::FeSpaceModalP< Dim, DofPolicy > Class Template Reference

Modal FE Space on simplex elements. More...

#include <fe_modal_simplex.hpp>

Inheritance diagram for vulpes::fe::FeSpaceModalP< Dim, DofPolicy >:
[legend]
Collaboration diagram for vulpes::fe::FeSpaceModalP< Dim, DofPolicy >:
[legend]

Public Types

using Polynomial = polynomial::NdPolynomial<internal::real_t, Dim>
using real_t
using FeSpaceType

Public Member Functions

 FeSpaceModalP (std::size_t order)
const auto & getBasis () const
const auto & getBasisFast () const
 get the polynomial basis in fixed precision
std::size_t getNumDofsForSubdimEntity (std::size_t dim) const
 number of DoFs associated with each geometric entity (vtx = 0, edges = 1, faces = 2 or volume cells = 3)
constexpr std::size_t order () const
 Get the polynomial order of the FE Space.
constexpr MeshType::index_t dofToCellDof (const MeshType &mesh, MeshType::index_t cell_id, MeshType::index_t owning_enty_id, MeshType::index_t enty_dim, MeshType::index_t enty_multiplicity) const
 From the global descriptors of a dof, get the dof in local cell enumeration.

Static Public Member Functions

template<typename CellType>
static constexpr auto getMapping (const CellType &cell)
static constexpr bool needBasisScaling ()
static constexpr FeType elemType ()
 constraint on cell shape (simplex, tensor, general)
static constexpr geometry::CellInitOptionsType cellInitOptions ()
 Statically define which geometrical features of a cell are needed during integration.
static constexpr bool dofsInteractionDistance ()

Static Public Attributes

static constexpr std::size_t dim
static constexpr std::size_t fe_space_dim

Protected Member Functions

FeSpaceModalP< Dim, DofPolicy > * self ()

Protected Attributes

std::vector< Polynomial > m_polys
const std::size_t m_order
std::array< std::size_t, Dim+1 > m_dofs_for_subdim_entity
DofPolicy m_dof_policy

Detailed Description

template<std::size_t Dim, typename DofPolicy>
class vulpes::fe::FeSpaceModalP< Dim, DofPolicy >

Modal FE Space on simplex elements.

Member Typedef Documentation

◆ FeSpaceType

using vulpes::fe::FeSpaceBase< Dim, internal::real_t, DofPolicy, FeSpaceModalP< Dim, DofPolicy > >::FeSpaceType
inherited

◆ Polynomial

template<std::size_t Dim, typename DofPolicy>
using vulpes::fe::FeSpaceModalP< Dim, DofPolicy >::Polynomial = polynomial::NdPolynomial<internal::real_t, Dim>

◆ real_t

using vulpes::fe::FeSpaceBase< Dim, internal::real_t, DofPolicy, FeSpaceModalP< Dim, DofPolicy > >::real_t
inherited

Constructor & Destructor Documentation

◆ FeSpaceModalP()

template<std::size_t Dim, typename DofPolicy>
vulpes::fe::FeSpaceModalP< Dim, DofPolicy >::FeSpaceModalP ( std::size_t order)
inlineexplicit

Member Function Documentation

◆ cellInitOptions()

constexpr geometry::CellInitOptionsType vulpes::fe::FeSpaceBase< Dim, internal::real_t, DofPolicy, FeSpaceModalP< Dim, DofPolicy > >::cellInitOptions ( )
inlinestaticconstexprinherited

Statically define which geometrical features of a cell are needed during integration.

◆ dofsInteractionDistance()

constexpr bool vulpes::fe::FeSpaceBase< Dim, internal::real_t, DofPolicy, FeSpaceModalP< Dim, DofPolicy > >::dofsInteractionDistance ( )
inlinestaticconstexprinherited

cell distance (on the dual graph) up to which compute dof interaction e.g. in the continuous FE is 0 b.c. a dof belongs to all the cells in the discontinuous case is 1 b.c. each dof belongs to one cell and there are the coupling terms to take into consideration

◆ dofToCellDof()

MeshType::index_t vulpes::fe::FeSpaceBase< Dim, internal::real_t, DofPolicy, FeSpaceModalP< Dim, DofPolicy > >::dofToCellDof ( const MeshType & mesh,
MeshType::index_t cell_id,
MeshType::index_t owning_enty_id,
MeshType::index_t enty_dim,
MeshType::index_t enty_multiplicity ) const
inlineconstexprinherited

From the global descriptors of a dof, get the dof in local cell enumeration.

Parameters
meshthe mesh
cell_idglobal id of the cell in consideration (with MPI is the (global) id in local proc enumeration)
owning_enty_idid of the geometric entity that owns the dof (e.g. the dof may belong to a vertex, an edge, a face or be internal to the cell)
enty_dimdimension of the entity, that is this specify if the entity considered in the previous parameter is a vertex (0), and edge (2) etc.
enty_multiplicityid within the entity, e.g. to an edge might belong more than one dof, this indicates which is the id within these

◆ elemType()

constexpr FeType vulpes::fe::FeSpaceBase< Dim, internal::real_t, DofPolicy, FeSpaceModalP< Dim, DofPolicy > >::elemType ( )
inlinestaticconstexprinherited

constraint on cell shape (simplex, tensor, general)

◆ getBasis()

template<std::size_t Dim, typename DofPolicy>
const auto & vulpes::fe::FeSpaceModalP< Dim, DofPolicy >::getBasis ( ) const
inline

◆ getBasisFast()

const auto & vulpes::fe::FeSpaceBase< Dim, internal::real_t, DofPolicy, FeSpaceModalP< Dim, DofPolicy > >::getBasisFast ( ) const
inlineinherited

get the polynomial basis in fixed precision

Returns
vector of Polynomial

◆ getMapping()

template<std::size_t Dim, typename DofPolicy>
template<typename CellType>
constexpr auto vulpes::fe::FeSpaceModalP< Dim, DofPolicy >::getMapping ( const CellType & cell)
inlinestaticconstexpr

◆ getNumDofsForSubdimEntity()

std::size_t vulpes::fe::FeSpaceBase< Dim, internal::real_t, DofPolicy, FeSpaceModalP< Dim, DofPolicy > >::getNumDofsForSubdimEntity ( std::size_t dim) const
inlineinherited

number of DoFs associated with each geometric entity (vtx = 0, edges = 1, faces = 2 or volume cells = 3)

◆ needBasisScaling()

constexpr bool vulpes::fe::FeSpaceBase< Dim, internal::real_t, DofPolicy, FeSpaceModalP< Dim, DofPolicy > >::needBasisScaling ( )
inlinestaticconstexprinherited

◆ order()

std::size_t vulpes::fe::FeSpaceBase< Dim, internal::real_t, DofPolicy, FeSpaceModalP< Dim, DofPolicy > >::order ( ) const
inlineconstexprinherited

Get the polynomial order of the FE Space.

◆ self()

FeSpaceModalP< Dim, DofPolicy > * vulpes::fe::FeSpaceBase< Dim, internal::real_t, DofPolicy, FeSpaceModalP< Dim, DofPolicy > >::self ( )
inlineprotectedinherited

Member Data Documentation

◆ dim

std::size_t vulpes::fe::FeSpaceBase< Dim, internal::real_t, DofPolicy, FeSpaceModalP< Dim, DofPolicy > >::dim
inlinestaticconstexprinherited

◆ fe_space_dim

std::size_t vulpes::fe::FeSpaceBase< Dim, internal::real_t, DofPolicy, FeSpaceModalP< Dim, DofPolicy > >::fe_space_dim
inlinestaticconstexprinherited

◆ m_dof_policy

DofPolicy vulpes::fe::FeSpaceBase< Dim, internal::real_t, DofPolicy, FeSpaceModalP< Dim, DofPolicy > >::m_dof_policy
protectedinherited

◆ m_dofs_for_subdim_entity

std::array<std::size_t, Dim + 1> vulpes::fe::FeSpaceBase< Dim, internal::real_t, DofPolicy, FeSpaceModalP< Dim, DofPolicy > >::m_dofs_for_subdim_entity
protectedinherited

◆ m_order

const std::size_t vulpes::fe::FeSpaceBase< Dim, internal::real_t, DofPolicy, FeSpaceModalP< Dim, DofPolicy > >::m_order
protectedinherited

◆ m_polys

template<std::size_t Dim, typename DofPolicy>
std::vector<Polynomial> vulpes::fe::FeSpaceModalP< Dim, DofPolicy >::m_polys
protected

The documentation for this class was generated from the following file: