OGS
NumLib::ReferenceElement< MeshElementType > Class Template Reference

Detailed Description

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

Definition at line 20 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 >
static MeshElementType NumLib::ReferenceElement< MeshElementType >::createElement ( std::vector< MeshLib::Node > const & nodes)
inlinestaticprivate

Definition at line 30 of file ReferenceElement.h.

32 {
33 constexpr unsigned num_nodes = MeshElementType::n_all_nodes;
34
35 std::array<MeshLib::Node*, num_nodes> node_ptrs{};
36
37 for (std::size_t i = 0; i < num_nodes; ++i)
38 {
39 node_ptrs[i] = const_cast<MeshLib::Node*>(&(nodes[i]));
40 }
41
42 return MeshElementType(node_ptrs);
43 }
std::vector< MeshLib::Node > const nodes

References NumLib::ReferenceElement< MeshElementType >::nodes.

◆ createReferenceElementNodes()

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

Definition at line 22 of file ReferenceElement.h.

23 {
24 constexpr auto natural_node_coordss =
26
27 return {natural_node_coordss.begin(), natural_node_coordss.end()};
28 }

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

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