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

Modal FE Space on polytopal elements (tensor product of Legendre polynomials on the bounding box). The total degree is limited to the given order in the sum of the exponents. More...

#include <fe_modal_tensor.hpp>

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

Public Types

using Polynomial
using PolynomialFast
using real_t
using FeSpaceType

Public Member Functions

 FeSpaceModalQ (std::size_t order)
const auto & getBasis () const
const auto & getBasisFast () const
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 bool needBasisScaling ()
static constexpr FeType elemType ()
template<typename CellType>
static constexpr auto getMapping (const CellType &cell)
static constexpr geometry::CellInitOptionsType cellInitOptions ()
static constexpr bool dofsInteractionDistance ()

Static Public Attributes

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

Protected Member Functions

FeSpaceModalQ< Dim, DofPolicy, false > * self ()

Protected Attributes

std::vector< Polynomial > m_polys
std::vector< PolynomialFast > m_polys_fast
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, bool EnableScaling = false>
class vulpes::fe::FeSpaceModalQ< Dim, DofPolicy, EnableScaling >

Modal FE Space on polytopal elements (tensor product of Legendre polynomials on the bounding box). The total degree is limited to the given order in the sum of the exponents.

Member Typedef Documentation

◆ FeSpaceType

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

◆ Polynomial

template<std::size_t Dim, typename DofPolicy, bool EnableScaling = false>
using vulpes::fe::FeSpaceModalQ< Dim, DofPolicy, EnableScaling >::Polynomial
Initial value:
Template class to represent and operate on polynomials in nD.
Definition sparse_polynomial.hpp:63

◆ PolynomialFast

template<std::size_t Dim, typename DofPolicy, bool EnableScaling = false>
using vulpes::fe::FeSpaceModalQ< Dim, DofPolicy, EnableScaling >::PolynomialFast

◆ real_t

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

Constructor & Destructor Documentation

◆ FeSpaceModalQ()

template<std::size_t Dim, typename DofPolicy, bool EnableScaling = false>
vulpes::fe::FeSpaceModalQ< Dim, DofPolicy, EnableScaling >::FeSpaceModalQ ( std::size_t order)
inlineexplicit

Member Function Documentation

◆ cellInitOptions()

template<std::size_t Dim, typename DofPolicy, bool EnableScaling = false>
constexpr geometry::CellInitOptionsType vulpes::fe::FeSpaceModalQ< Dim, DofPolicy, EnableScaling >::cellInitOptions ( )
inlinestaticconstexpr

◆ dofsInteractionDistance()

constexpr bool vulpes::fe::FeSpaceBase< Dim, internal::real_t, DofPolicy, FeSpaceModalQ< Dim, DofPolicy, false > >::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, FeSpaceModalQ< Dim, DofPolicy, false > >::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, bool EnableScaling = false>
constexpr FeType vulpes::fe::FeSpaceModalQ< Dim, DofPolicy, EnableScaling >::elemType ( )
inlinestaticconstexpr

◆ getBasis()

template<std::size_t Dim, typename DofPolicy, bool EnableScaling = false>
const auto & vulpes::fe::FeSpaceModalQ< Dim, DofPolicy, EnableScaling >::getBasis ( ) const
inline

◆ getBasisFast()

template<std::size_t Dim, typename DofPolicy, bool EnableScaling = false>
const auto & vulpes::fe::FeSpaceModalQ< Dim, DofPolicy, EnableScaling >::getBasisFast ( ) const
inline

◆ getMapping()

template<std::size_t Dim, typename DofPolicy, bool EnableScaling = false>
template<typename CellType>
constexpr auto vulpes::fe::FeSpaceModalQ< Dim, DofPolicy, EnableScaling >::getMapping ( const CellType & cell)
inlinestaticconstexpr

◆ getNumDofsForSubdimEntity()

std::size_t vulpes::fe::FeSpaceBase< Dim, internal::real_t, DofPolicy, FeSpaceModalQ< Dim, DofPolicy, false > >::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()

template<std::size_t Dim, typename DofPolicy, bool EnableScaling = false>
constexpr bool vulpes::fe::FeSpaceModalQ< Dim, DofPolicy, EnableScaling >::needBasisScaling ( )
inlinestaticconstexpr

◆ order()

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

Get the polynomial order of the FE Space.

◆ self()

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

Member Data Documentation

◆ dim

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

◆ fe_space_dim

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

◆ m_dof_policy

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

◆ m_dofs_for_subdim_entity

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

◆ m_order

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

◆ m_polys

template<std::size_t Dim, typename DofPolicy, bool EnableScaling = false>
std::vector<Polynomial> vulpes::fe::FeSpaceModalQ< Dim, DofPolicy, EnableScaling >::m_polys
protected

◆ m_polys_fast

template<std::size_t Dim, typename DofPolicy, bool EnableScaling = false>
std::vector<PolynomialFast> vulpes::fe::FeSpaceModalQ< Dim, DofPolicy, EnableScaling >::m_polys_fast
protected

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