BELFEM 0.9.0
Berkeley Lab Finite Element Framework
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
21namespace belfem
22{
23 class Mesh ;
24 namespace mesh
25 {
27 {
28 Element * mElement = nullptr ;
29 Cell< Node * > mNodes ;
30 bool mOwnPointers = true ;
31 public:
32
33 ReferenceElement(Element * aElement, Cell< Node * > aNodes );
34
36
37 Mesh *
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
Cell is a wrapper around the standard vector.
Definition cl_Cell.hpp:42
Top-level container for all mesh entities.
Definition cl_Mesh.hpp:60
Lagrange Element baseclass.
Definition cl_Element.hpp:35
Definition cl_Node.hpp:30
Element * element()
Definition cl_ReferenceElement.hpp:40
ReferenceElement(Element *aElement, Cell< Node * > aNodes)
Definition cl_ReferenceElement.cpp:21
Mesh * export_mesh_and_pass_ownerships()
Definition cl_ReferenceElement.cpp:42
const Element * element() const
Definition cl_ReferenceElement.hpp:42
const Node * node(const uint aIndex) const
Definition cl_ReferenceElement.hpp:50
Cell< Node * > & nodes()
Definition cl_ReferenceElement.hpp:44
Node * node(const uint aIndex)
Definition cl_ReferenceElement.hpp:47
Definition cl_EF_EdgeFunction.hpp:17
USER GUIDES:
Definition cl_Capacitor.cpp:16
unsigned int uint
Definition typedefs.hpp:30