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

Class describing the template for a FeSpace. More...

#include <fe_space.hpp>

Inheritance diagram for vulpes::fe::FeSpaceBase< Dim, FloatType, DofPolicy, FeSpace >:
[legend]

Public Types

using real_t = FloatType
using FeSpaceType = FeSpace

Public Member Functions

 FeSpaceBase (std::size_t order)
const auto & getBasis () const
 get the polynomial basis in arbitrary precision
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.
template<typename MeshType>
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

static constexpr bool needBasisScaling ()
static constexpr FeType elemType ()
 constraint on cell shape (simplex, tensor, general)
template<typename CellType>
static constexpr auto getMapping (const CellType &cell)
 Get the geometrical mapping that maps a cell to the reference element (on which are defined the basis functions).
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 = Dim
static constexpr std::size_t fe_space_dim = 1

Protected Member Functions

FeSpace * self ()
const FeSpace * self () const

Protected Attributes

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 FloatType, typename DofPolicy, typename FeSpace>
class vulpes::fe::FeSpaceBase< Dim, FloatType, DofPolicy, FeSpace >

Class describing the template for a FeSpace.

A FeSpace class should define

  • a basis of polynomial in arbitrary float precision
  • a basis of polynomial in 32bit or 64bit float precision
  • define on which types of elements FeType it can work with
  • define how many dofs are on any geometrical entity (vertex, edge, ...) via the DofPolicy
  • define the dof interaction distance (at which cell distance, in the dual map, two dofs may have non-zero integrals). For all continuous elements is 0, for DG is 1 since we have the face-face coupling.
  • polynomial order

There are 10 available FE spaces:

  • Lagrangian/Spectral on Simplex in both Continuous and Discontinuous versions
  • Lagrangian/Spectral on Tensors in both Continuous and Discontinuous versions
  • Modal on Simplex in discontinuous version
  • Modal on Tensor in discontinuous version

Member Typedef Documentation

◆ FeSpaceType

template<std::size_t Dim, typename FloatType, typename DofPolicy, typename FeSpace>
using vulpes::fe::FeSpaceBase< Dim, FloatType, DofPolicy, FeSpace >::FeSpaceType = FeSpace

◆ real_t

template<std::size_t Dim, typename FloatType, typename DofPolicy, typename FeSpace>
using vulpes::fe::FeSpaceBase< Dim, FloatType, DofPolicy, FeSpace >::real_t = FloatType

Constructor & Destructor Documentation

◆ FeSpaceBase()

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

Member Function Documentation

◆ cellInitOptions()

template<std::size_t Dim, typename FloatType, typename DofPolicy, typename FeSpace>
constexpr geometry::CellInitOptionsType vulpes::fe::FeSpaceBase< Dim, FloatType, DofPolicy, FeSpace >::cellInitOptions ( )
inlinestaticconstexpr

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

◆ dofsInteractionDistance()

template<std::size_t Dim, typename FloatType, typename DofPolicy, typename FeSpace>
constexpr bool vulpes::fe::FeSpaceBase< Dim, FloatType, DofPolicy, FeSpace >::dofsInteractionDistance ( )
inlinestaticconstexpr

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()

template<std::size_t Dim, typename FloatType, typename DofPolicy, typename FeSpace>
template<typename MeshType>
MeshType::index_t vulpes::fe::FeSpaceBase< Dim, FloatType, DofPolicy, FeSpace >::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
inlineconstexpr

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()

template<std::size_t Dim, typename FloatType, typename DofPolicy, typename FeSpace>
constexpr FeType vulpes::fe::FeSpaceBase< Dim, FloatType, DofPolicy, FeSpace >::elemType ( )
inlinestaticconstexpr

constraint on cell shape (simplex, tensor, general)

◆ getBasis()

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

get the polynomial basis in arbitrary precision

Returns
vector of Polynomial

◆ getBasisFast()

template<std::size_t Dim, typename FloatType, typename DofPolicy, typename FeSpace>
const auto & vulpes::fe::FeSpaceBase< Dim, FloatType, DofPolicy, FeSpace >::getBasisFast ( ) const
inline

get the polynomial basis in fixed precision

Returns
vector of Polynomial

◆ getMapping()

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

Get the geometrical mapping that maps a cell to the reference element (on which are defined the basis functions).

◆ getNumDofsForSubdimEntity()

template<std::size_t Dim, typename FloatType, typename DofPolicy, typename FeSpace>
std::size_t vulpes::fe::FeSpaceBase< Dim, FloatType, DofPolicy, FeSpace >::getNumDofsForSubdimEntity ( std::size_t dim) const
inline

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

◆ needBasisScaling()

template<std::size_t Dim, typename FloatType, typename DofPolicy, typename FeSpace>
constexpr bool vulpes::fe::FeSpaceBase< Dim, FloatType, DofPolicy, FeSpace >::needBasisScaling ( )
inlinestaticconstexpr

◆ order()

template<std::size_t Dim, typename FloatType, typename DofPolicy, typename FeSpace>
std::size_t vulpes::fe::FeSpaceBase< Dim, FloatType, DofPolicy, FeSpace >::order ( ) const
inlineconstexpr

Get the polynomial order of the FE Space.

◆ self() [1/2]

template<std::size_t Dim, typename FloatType, typename DofPolicy, typename FeSpace>
FeSpace * vulpes::fe::FeSpaceBase< Dim, FloatType, DofPolicy, FeSpace >::self ( )
inlineprotected

◆ self() [2/2]

template<std::size_t Dim, typename FloatType, typename DofPolicy, typename FeSpace>
const FeSpace * vulpes::fe::FeSpaceBase< Dim, FloatType, DofPolicy, FeSpace >::self ( ) const
inlineprotected

Member Data Documentation

◆ dim

template<std::size_t Dim, typename FloatType, typename DofPolicy, typename FeSpace>
std::size_t vulpes::fe::FeSpaceBase< Dim, FloatType, DofPolicy, FeSpace >::dim = Dim
inlinestaticconstexpr

◆ fe_space_dim

template<std::size_t Dim, typename FloatType, typename DofPolicy, typename FeSpace>
std::size_t vulpes::fe::FeSpaceBase< Dim, FloatType, DofPolicy, FeSpace >::fe_space_dim = 1
inlinestaticconstexpr

◆ m_dof_policy

template<std::size_t Dim, typename FloatType, typename DofPolicy, typename FeSpace>
DofPolicy vulpes::fe::FeSpaceBase< Dim, FloatType, DofPolicy, FeSpace >::m_dof_policy
protected

◆ m_dofs_for_subdim_entity

template<std::size_t Dim, typename FloatType, typename DofPolicy, typename FeSpace>
std::array<std::size_t, Dim + 1> vulpes::fe::FeSpaceBase< Dim, FloatType, DofPolicy, FeSpace >::m_dofs_for_subdim_entity
protected

◆ m_order

template<std::size_t Dim, typename FloatType, typename DofPolicy, typename FeSpace>
const std::size_t vulpes::fe::FeSpaceBase< Dim, FloatType, DofPolicy, FeSpace >::m_order
protected

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