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

General finite element space on a tensor product cell with (nodal) Lagrangian basis function, can be either continuous or discontinuous. More...

#include <fe_lagrange_tensor.hpp>

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

Public Types

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

Public Member Functions

 FeSpaceLagrangeQ (std::size_t order)
const auto & getNodes () const
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

static constexpr FeType elemType ()
static constexpr bool needBasisScaling ()
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
static constexpr std::size_t fe_space_dim

Protected Member Functions

FeSpaceLagrangeQ< Dim, DofPolicy, Poly1DPolicy > * self ()

Protected Attributes

std::vector< Polynomial > m_polys
std::vector< Point< internal::real_t, Dim > > m_nodes
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, typename Poly1DPolicy>
class vulpes::fe::FeSpaceLagrangeQ< Dim, DofPolicy, Poly1DPolicy >

General finite element space on a tensor product cell with (nodal) Lagrangian basis function, can be either continuous or discontinuous.

Member Typedef Documentation

◆ FeSpaceType

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

◆ Polynomial

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

◆ real_t

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

Constructor & Destructor Documentation

◆ FeSpaceLagrangeQ()

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

Member Function Documentation

◆ cellInitOptions()

constexpr geometry::CellInitOptionsType vulpes::fe::FeSpaceBase< Dim, internal::real_t, DofPolicy, FeSpaceLagrangeQ< Dim, DofPolicy, Poly1DPolicy > >::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, FeSpaceLagrangeQ< Dim, DofPolicy, Poly1DPolicy > >::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, FeSpaceLagrangeQ< Dim, DofPolicy, Poly1DPolicy > >::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()

template<std::size_t Dim, typename DofPolicy, typename Poly1DPolicy>
constexpr FeType vulpes::fe::FeSpaceLagrangeQ< Dim, DofPolicy, Poly1DPolicy >::elemType ( )
inlinestaticconstexpr

◆ getBasis()

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

◆ getBasisFast()

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

get the polynomial basis in fixed precision

Returns
vector of Polynomial

◆ getMapping()

constexpr auto vulpes::fe::FeSpaceBase< Dim, internal::real_t, DofPolicy, FeSpaceLagrangeQ< Dim, DofPolicy, Poly1DPolicy > >::getMapping ( const CellType & cell)
inlinestaticconstexprinherited

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

◆ getNodes()

template<std::size_t Dim, typename DofPolicy, typename Poly1DPolicy>
const auto & vulpes::fe::FeSpaceLagrangeQ< Dim, DofPolicy, Poly1DPolicy >::getNodes ( ) const
inline

◆ getNumDofsForSubdimEntity()

std::size_t vulpes::fe::FeSpaceBase< Dim, internal::real_t, DofPolicy, FeSpaceLagrangeQ< Dim, DofPolicy, Poly1DPolicy > >::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, FeSpaceLagrangeQ< Dim, DofPolicy, Poly1DPolicy > >::needBasisScaling ( )
inlinestaticconstexprinherited

◆ order()

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

Get the polynomial order of the FE Space.

◆ self()

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

Member Data Documentation

◆ dim

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

◆ fe_space_dim

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

◆ m_dof_policy

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

◆ m_dofs_for_subdim_entity

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

◆ m_nodes

template<std::size_t Dim, typename DofPolicy, typename Poly1DPolicy>
std::vector<Point<internal::real_t, Dim> > vulpes::fe::FeSpaceLagrangeQ< Dim, DofPolicy, Poly1DPolicy >::m_nodes
protected

◆ m_order

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

◆ m_polys

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

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