Flow123d
master-ac4164ba5
|
Go to the documentation of this file.
19 #ifndef DISCRETE_SPACE_HH_
20 #define DISCRETE_SPACE_HH_
28 using FEPtr = std::shared_ptr<FiniteElement<dim>>;
45 virtual unsigned int n_node_dofs(
unsigned int nid)
const = 0;
54 template<
unsigned int dim>
122 for (
unsigned int d=0; d < fe_ptr->n_dofs(); d++) {
123 if (fe_ptr->dof(d).dim == 0)
125 if (fe_ptr->dof(d).dim == dim-1 && fe_ptr->dof(d).n_face_idx == 0)
127 if (fe_ptr->dof(d).dim == 0 && fe_ptr->dof(d).n_face_idx == 0)
DiscreteSpace(MeshBase *mesh)
Constructor.
virtual MixedPtr< FiniteElement > fe() const =0
unsigned int n_elem_dofs(const ElementAccessor< 3 > &cell) const override
Number of dofs associated to element (not shared by adjacent elements).
virtual ~DiscreteSpace()
Destructor.
std::vector< unsigned int > _n_edge_dofs
const std::vector< unsigned int > & node_dim() const
EqualOrderDiscreteSpace(MeshBase *mesh, MixedPtr< FiniteElement > fe)
#define ASSERT_PERMANENT(expr)
Allow use shorter versions of macro names if these names is not used with external library.
Abstract class for description of finite elements.
unsigned int n_face_dofs(unsigned int face_id)
Number of dofs associated to generalized n-face (node, line, triangle or tetrahedron).
virtual unsigned int n_node_dofs(unsigned int nid) const =0
Number of dofs associated to node. nid is the node index in the mesh duplicate_nodes object.
virtual unsigned int n_elem_dofs(const ElementAccessor< 3 > &cell) const =0
Number of dofs associated to element (not shared by adjacent elements).
virtual unsigned int n_edge_dofs(const Edge &edge) const =0
Number of dofs associated to edge.
Abstract class for the description of a general finite element on a reference simplex in dim dimensio...
unsigned int n_edge_dofs(const Edge &edge) const override
Number of dofs associated to edge.
unsigned int n_node_dofs(unsigned int nid) const override
Number of dofs associated to node. nid is the node index in the mesh duplicate_nodes object.
MixedPtr< FiniteElement > fe_
Base class for Mesh and BCMesh.
MixedPtr< FiniteElement > fe() const override
std::shared_ptr< FiniteElement< dim > > FEPtr
std::vector< unsigned int > _n_elem_dofs
std::vector< unsigned int > _n_node_dofs
const DuplicateNodes * duplicate_nodes() const