PolyDiM
C++ library for POLYtopal DIscretization Methods
Loading...
Searching...
No Matches
ZFEM_PCC_2D_ReferenceElement.hpp
Go to the documentation of this file.
1// _LICENSE_HEADER_
2//
3// Copyright (C) 2019 - 2025.
4// Terms register on the GPL-3.0 license.
5//
6// This file can be redistributed and/or modified under the license terms.
7//
8// See top level LICENSE file for more details.
9//
10// This file can be used citing references in CITATION.cff file.
11
12#ifndef __ZFEM_PCC_2D_ReferenceElement_HPP
13#define __ZFEM_PCC_2D_ReferenceElement_HPP
14
16#include "Monomials_2D.hpp"
17
18namespace Polydim
19{
20namespace ZFEM
21{
22namespace PCC
23{
24
26{
27 public:
28 ZFEM_PCC_2D_ReferenceElement_Data Create(const unsigned int order) const
29 {
31
32 result.Dimension = 2;
33 result.Order = order;
34 result.NumDofs0D = 1;
35 result.NumDofs1D = order - 1;
36 result.NumDofs2D = (order - 1) * (order - 2) / 2;
37
39 result.fem_reference_element_data = fem_reference_element.Create(order);
40
42 result.monomials_data = monomials.Compute(order);
43
44 return result;
45 }
46};
47} // namespace PCC
48} // namespace ZFEM
49} // namespace Polydim
50
51#endif
Definition FEM_Triangle_PCC_2D_ReferenceElement.hpp:52
FEM_Triangle_PCC_2D_ReferenceElement_Data Create(const unsigned int order) const
Definition FEM_Triangle_PCC_2D_ReferenceElement.hpp:54
Definition Monomials_2D.hpp:22
Polydim::Utilities::Monomials_Data Compute(const unsigned int polynomial_degree) const
Definition Monomials_2D.cpp:22
Abstract interface for the 2D primal conforming ZFEM reference element.
Definition I_ZFEM_PCC_2D_ReferenceElement.hpp:77
Definition ZFEM_PCC_2D_ReferenceElement.hpp:26
ZFEM_PCC_2D_ReferenceElement_Data Create(const unsigned int order) const
Definition ZFEM_PCC_2D_ReferenceElement.hpp:28
Definition FEM_MCC_2D_LocalSpace.cpp:17
Reference-element data for the 2D primal conforming ZFEM (Zipped FEM) space.
Definition I_ZFEM_PCC_2D_ReferenceElement.hpp:36
Polydim::FEM::PCC::FEM_Triangle_PCC_2D_ReferenceElement_Data fem_reference_element_data
Definition I_ZFEM_PCC_2D_ReferenceElement.hpp:43
unsigned int NumDofs2D
Number of DOFs internal to the cell (2D entity).
Definition I_ZFEM_PCC_2D_ReferenceElement.hpp:41
unsigned int NumDofs1D
Number of DOFs per edge (1D entity).
Definition I_ZFEM_PCC_2D_ReferenceElement.hpp:40
Utilities::Monomials_Data monomials_data
Monomial basis data.
Definition I_ZFEM_PCC_2D_ReferenceElement.hpp:45
unsigned int NumDofs0D
Number of DOFs per vertex (0D entity).
Definition I_ZFEM_PCC_2D_ReferenceElement.hpp:39
unsigned int Order
Definition I_ZFEM_PCC_2D_ReferenceElement.hpp:38
unsigned int Dimension
Spatial dimension of the element (2).
Definition I_ZFEM_PCC_2D_ReferenceElement.hpp:37