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

#include <dof_policy.hpp>

Inheritance diagram for vulpes::fe::DofPolicyFeSpaceCP< Dim >:
[legend]
Collaboration diagram for vulpes::fe::DofPolicyFeSpaceCP< Dim >:
[legend]

Public Types

using CartDofIndexType = int8_t

Public Member Functions

 DofPolicyFeSpaceCP (std::size_t order)
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
 Returns the index of the dof in cell enumeration given geometrical information.
void buildDofTable ()
 Build the table of dofs in cartesian enumeration.

Static Public Member Functions

static std::array< std::size_t, Dim+1 > buildDofSubdimEntity (std::size_t order)
 Returns the number of dofs associated to each sub-dimensional entity.
static constexpr bool dofsInteractionDistance ()
 Returns the distance of interaction of dofs in different cells.

Public Attributes

std::vector< std::array< CartDofIndexType, Dim+1 > > m_dofs
std::vector< std::size_t > m_dofs_perm

Protected Member Functions

const auto & self () const

Protected Attributes

std::size_t m_order
 Polynomial order of the finite element space.

Detailed Description

template<std::size_t Dim>
struct vulpes::fe::DofPolicyFeSpaceCP< Dim >

DoF policy for continuous elements on P polynomial space

Warning
The simplex must follow the correct vertex convention in the cell to vertex datastructure
See also
DofPolicyBase

Member Typedef Documentation

◆ CartDofIndexType

template<std::size_t Dim>
using vulpes::fe::DofPolicyFeSpaceCP< Dim >::CartDofIndexType = int8_t

Constructor & Destructor Documentation

◆ DofPolicyFeSpaceCP()

template<std::size_t Dim>
vulpes::fe::DofPolicyFeSpaceCP< Dim >::DofPolicyFeSpaceCP ( std::size_t order)
inlineexplicit

Member Function Documentation

◆ buildDofSubdimEntity()

template<std::size_t Dim>
std::array< std::size_t, Dim+1 > vulpes::fe::DofPolicyFeSpaceCP< Dim >::buildDofSubdimEntity ( std::size_t order)
inlinestatic

Returns the number of dofs associated to each sub-dimensional entity.

◆ buildDofTable()

template<std::size_t Dim>
void vulpes::fe::DofPolicyFeSpaceCP< Dim >::buildDofTable ( )
inline

Build the table of dofs in cartesian enumeration.

◆ dofsInteractionDistance()

template<std::size_t Dim>
constexpr bool vulpes::fe::DofPolicyFeSpaceCP< Dim >::dofsInteractionDistance ( )
inlinestaticconstexpr

Returns the distance of interaction of dofs in different cells.

◆ dofToCellDof()

template<std::size_t Dim>
template<typename MeshType>
MeshType::index_t vulpes::fe::DofPolicyFeSpaceCP< Dim >::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

Returns the index of the dof in cell enumeration given geometrical information.

Parameters
meshReference to the mesh
cell_idGlobal id of the cell
owning_enty_idGlobal id of the entity (vtx, face, ...) owning the dof
enty_dimDimension of the entity (0 for vtx, 1 for edge, ...)
enty_multiplicityMultiplicity of the dof on the entity (e.g. the second dof on an edge has multiplicity 1)
Returns
The index of the dof in cell enumeration

We recover the (dim + 1) global vertices that define the element and write it as a convex combination of them. In this way we have a unique representation of the dof that does not depend on the frame of reference.

◆ self()

const auto & vulpes::fe::DofPolicyBase< Dim, DofPolicyFeSpaceCP< Dim > >::self ( ) const
inlineprotectedinherited

Member Data Documentation

◆ m_dofs

template<std::size_t Dim>
std::vector<std::array<CartDofIndexType, Dim + 1> > vulpes::fe::DofPolicyFeSpaceCP< Dim >::m_dofs

◆ m_dofs_perm

template<std::size_t Dim>
std::vector<std::size_t> vulpes::fe::DofPolicyFeSpaceCP< Dim >::m_dofs_perm

◆ m_order

std::size_t vulpes::fe::DofPolicyBase< Dim, DofPolicyFeSpaceCP< Dim > >::m_order
protectedinherited

Polynomial order of the finite element space.


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