BELFEM
0.9.0
Berkeley Lab Finite Element Framework
Toggle main menu visibility
Loading...
Searching...
No Matches
cl_ReferenceElement.hpp
Go to the documentation of this file.
1
/*
2
* BELFEM -- The Berkeley Lab Finite Element Framework
3
* Copyright (c) 2026, The Regents of the University of California, through
4
* Lawrence Berkeley National Laboratory (subject to receipt of any required
5
* approvals from the U.S. Dept. of Energy). All rights reserved.
6
*
7
* Developers: Christian Messe, Gregory Giard
8
*
9
* See the top-level LICENSE file for the complete license and disclaimer.
10
*/
11
12
#ifndef BELFEM_CL_REFERENCEELEMENT_HPP
13
#define BELFEM_CL_REFERENCEELEMENT_HPP
14
15
16
#include "
typedefs.hpp
"
17
#include "
cl_Cell.hpp
"
18
#include "
cl_Node.hpp
"
19
#include "
cl_Element.hpp
"
20
21
namespace
belfem
22
{
23
class
Mesh
;
24
namespace
mesh
25
{
26
class
ReferenceElement
27
{
28
Element
* mElement = nullptr ;
29
Cell< Node * >
mNodes ;
30
bool
mOwnPointers = true ;
31
public
:
32
33
ReferenceElement
(
Element
* aElement,
Cell< Node * >
aNodes );
34
35
~ReferenceElement
() ;
36
37
Mesh
*
38
export_mesh_and_pass_ownerships
();
39
40
Element
*
element
() {
return
mElement ; }
41
42
const
Element
*
element
()
const
{
return
mElement ; }
43
44
Cell< Node * >
&
nodes
() {
return
mNodes ; }
45
46
Node
*
47
node
(
const
uint
aIndex ) {
return
mNodes( aIndex ) ; }
48
49
const
Node
*
50
node
(
const
uint
aIndex )
const
{
return
mNodes( aIndex ) ; }
51
};
52
}
53
}
54
#endif
//BELFEM_CL_REFERENCEELEMENT_HPP
cl_Cell.hpp
cl_Element.hpp
cl_Node.hpp
belfem::Cell
Cell is a wrapper around the standard vector.
Definition
cl_Cell.hpp:42
belfem::Mesh
Top-level container for all mesh entities.
Definition
cl_Mesh.hpp:60
belfem::mesh::Element
Lagrange Element baseclass.
Definition
cl_Element.hpp:35
belfem::mesh::Node
Definition
cl_Node.hpp:30
belfem::mesh::ReferenceElement::element
Element * element()
Definition
cl_ReferenceElement.hpp:40
belfem::mesh::ReferenceElement::ReferenceElement
ReferenceElement(Element *aElement, Cell< Node * > aNodes)
Definition
cl_ReferenceElement.cpp:21
belfem::mesh::ReferenceElement::export_mesh_and_pass_ownerships
Mesh * export_mesh_and_pass_ownerships()
Definition
cl_ReferenceElement.cpp:42
belfem::mesh::ReferenceElement::element
const Element * element() const
Definition
cl_ReferenceElement.hpp:42
belfem::mesh::ReferenceElement::node
const Node * node(const uint aIndex) const
Definition
cl_ReferenceElement.hpp:50
belfem::mesh::ReferenceElement::nodes
Cell< Node * > & nodes()
Definition
cl_ReferenceElement.hpp:44
belfem::mesh::ReferenceElement::node
Node * node(const uint aIndex)
Definition
cl_ReferenceElement.hpp:47
belfem::mesh
Definition
cl_EF_EdgeFunction.hpp:17
belfem
USER GUIDES:
Definition
cl_Capacitor.cpp:16
belfem::uint
unsigned int uint
Definition
typedefs.hpp:30
typedefs.hpp
src
mesh
cl_ReferenceElement.hpp
Generated by
1.18.0