BELFEM
0.9.0
Berkeley Lab Finite Element Framework
Toggle main menu visibility
Loading...
Searching...
No Matches
cl_Element_LINE5.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,
4
* through 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_ELEMENT_LINE5_HPP
13
#define BELFEM_CL_ELEMENT_LINE5_HPP
14
15
#include "
typedefs.hpp
"
16
#include "
Mesh_Enums.hpp
"
17
#include "
cl_ElementTemplate.hpp
"
18
19
namespace
belfem
20
{
21
namespace
mesh
22
{
23
//------------------------------------------------------------------------------
24
25
template
<>
26
ElementType
27
ElementTemplate< 5, 2, 1, 0, 0 >::type
()
const
28
{
29
return
ElementType::LINE5
;
30
}
31
32
//------------------------------------------------------------------------------
33
34
template
<>
35
uint
36
ElementTemplate< 5, 2, 1, 0, 0 >::dimension
()
const
37
{
38
return
1 ;
39
}
40
41
//------------------------------------------------------------------------------
42
43
template
<>
44
void
45
ElementTemplate< 5, 2, 1, 0, 0 >::get_nodes_of_edge
(
46
const
uint
aFacetIndex,
47
Cell< Node * >
& aNodes )
48
{
49
// allocate the node container
50
aNodes.
set_size
( 5,
nullptr
);
51
52
aNodes( 0 ) = mNodes[ 0 ];
53
aNodes( 1 ) = mNodes[ 1 ];
54
aNodes( 2 ) = mNodes[ 2 ];
55
aNodes( 3 ) = mNodes[ 3 ];
56
aNodes( 4 ) = mNodes[ 4 ];
57
}
58
59
//------------------------------------------------------------------------------
60
}
61
}
62
63
#endif
//BELFEM_CL_ELEMENT_LINE5_HPP
Mesh_Enums.hpp
cl_ElementTemplate.hpp
belfem::Cell
Cell is a wrapper around the standard vector.
Definition
cl_Cell.hpp:42
belfem::Cell::set_size
void set_size(const size_t aSize)
Definition
cl_Cell.hpp:189
belfem::mesh::ElementTemplate::get_nodes_of_edge
void get_nodes_of_edge(const uint aEdgeIndex, Cell< Node * > &aNodes) override
Definition
cl_ElementTemplate.hpp:930
belfem::mesh::ElementTemplate::dimension
uint dimension() const override
Definition
cl_ElementTemplate.hpp:978
belfem::mesh::ElementTemplate::type
ElementType type() const override
return the type of the element
Definition
cl_ElementTemplate.hpp:470
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
belfem::ElementType
ElementType
Element types.
Definition
Mesh_Enums.hpp:27
belfem::ElementType::LINE5
@ LINE5
Definition
Mesh_Enums.hpp:52
typedefs.hpp
src
mesh
cl_Element_LINE5.hpp
Generated by
1.18.0