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