PolyDiM
C++ library for POLYtopal DIscretization Methods
Loading...
Searching...
No Matches
FEM_PCC_3D_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 __FEM_PCC_3D_ReferenceElement_HPP
13#define __FEM_PCC_3D_ReferenceElement_HPP
14
15#include "Eigen/Eigen"
18
19namespace Polydim
20{
21namespace FEM
22{
23namespace PCC
24{
36
38{
42
44
46 {
47
49
50 result.Dimension = 3;
51 result.Order = order;
52 result.NumDofs0D = 1;
53 result.NumDofs1D = order - 1;
54
57
58 try
59 {
60 result.tetrahedron_reference_element_data = tetra_reference_element.Create(order);
61 }
62 catch (...)
63 {
64 }
65 result.hexahedron_reference_element_data = hexa_reference_element.Create(order);
66
67 return result;
68 }
69};
70} // namespace PCC
71} // namespace FEM
72} // namespace Polydim
73
74#endif
Definition FEM_Tetrahedron_PCC_3D_ReferenceElement.hpp:54
Polydim::FEM::PCC::FEM_Tetrahedron_PCC_3D_ReferenceElement_Data Create(const unsigned int order) const
Definition FEM_Tetrahedron_PCC_3D_ReferenceElement.hpp:56
Definition FEM_MCC_2D_LocalSpace.cpp:17
Definition FEM_Hexahedron_PCC_3D_ReferenceElement.hpp:27
Definition FEM_Hexahedron_PCC_3D_ReferenceElement.hpp:52
Polydim::FEM::PCC::FEM_Hexahedron_PCC_3D_ReferenceElement_Data Create(const unsigned int order) const
Definition FEM_Hexahedron_PCC_3D_ReferenceElement.hpp:65
Definition FEM_PCC_3D_ReferenceElement.hpp:26
Polydim::FEM::PCC::FEM_Tetrahedron_PCC_3D_ReferenceElement_Data tetrahedron_reference_element_data
Definition FEM_PCC_3D_ReferenceElement.hpp:33
unsigned int Order
Definition FEM_PCC_3D_ReferenceElement.hpp:28
unsigned int Dimension
Definition FEM_PCC_3D_ReferenceElement.hpp:27
Polydim::FEM::PCC::FEM_Hexahedron_PCC_3D_ReferenceElement_Data hexahedron_reference_element_data
Definition FEM_PCC_3D_ReferenceElement.hpp:34
unsigned int NumDofs1D
Definition FEM_PCC_3D_ReferenceElement.hpp:31
unsigned int NumDofs0D
Definition FEM_PCC_3D_ReferenceElement.hpp:30
Definition FEM_PCC_3D_ReferenceElement.hpp:38
~FEM_PCC_3D_ReferenceElement()
Definition FEM_PCC_3D_ReferenceElement.hpp:43
FEM_PCC_3D_ReferenceElement()
Definition FEM_PCC_3D_ReferenceElement.hpp:39
Polydim::FEM::PCC::FEM_PCC_3D_ReferenceElement_Data Create(const unsigned int order) const
Definition FEM_PCC_3D_ReferenceElement.hpp:45
Definition FEM_Tetrahedron_PCC_3D_ReferenceElement.hpp:28