OGS
NumLib::ReferenceElement< MeshElementType > Class Template Reference

Detailed Description

template<typename MeshElementType>
class NumLib::ReferenceElement< MeshElementType >

Definition at line 14 of file ReferenceElement.h.

#include <ReferenceElement.h>

Public Attributes

MeshElementType const element = createElement(nodes)

Static Private Member Functions

static std::vector< MeshLib::NodecreateReferenceElementNodes ()
static MeshElementType createElement (std::vector< MeshLib::Node > const &nodes)

Private Attributes

std::vector< MeshLib::Node > const nodes = createReferenceElementNodes()

Member Function Documentation

◆ createElement()

template<typename MeshElementType>
MeshElementType NumLib::ReferenceElement< MeshElementType >::createElement ( std::vector< MeshLib::Node > const & nodes)
inlinestaticprivate

Definition at line 38 of file ReferenceElement.h.

40 {
41 constexpr unsigned num_nodes = MeshElementType::n_all_nodes;
42
44
45 for (std::size_t i = 0; i < num_nodes; ++i)
46 {
47 node_ptrs[i] = const_cast<MeshLib::Node*>(&(nodes[i]));
48 }
49
51 }
std::vector< MeshLib::Node > const nodes

References nodes.

◆ createReferenceElementNodes()

template<typename MeshElementType>
std::vector< MeshLib::Node > NumLib::ReferenceElement< MeshElementType >::createReferenceElementNodes ( )
inlinestaticprivate

Definition at line 16 of file ReferenceElement.h.

17 {
18 constexpr auto natural_node_coordss =
20
21 // natural and real node coordinates coincide on most reference elements
24
26 {
27 // on pyramid reference elements some natural and real coordinates
28 // differ
29 real_node_coords[9] = {-0.5, -0.5, 0};
30 real_node_coords[10] = {0.5, -0.5, 0};
31 real_node_coords[11] = {0.5, 0.5, 0};
32 real_node_coords[12] = {-0.5, 0.5, 0};
33 }
34
35 return real_node_coords;
36 }

Member Data Documentation

◆ element

template<typename MeshElementType>
MeshElementType const NumLib::ReferenceElement< MeshElementType >::element = createElement(nodes)

◆ nodes

template<typename MeshElementType>
std::vector<MeshLib::Node> const NumLib::ReferenceElement< MeshElementType >::nodes = createReferenceElementNodes()
private

Definition at line 53 of file ReferenceElement.h.

Referenced by createElement().


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