suanPan
SectionElement.h
Go to the documentation of this file.
1/*******************************************************************************
2 * Copyright (C) 2017-2024 Theodore Chang
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 ******************************************************************************/
28#ifndef SECTIONELEMENT_H
29#define SECTIONELEMENT_H
30
31#include <Element/Element.h>
32#include <Domain/DOF.h>
33
34using std::array;
35using std::vector;
36
37class SectionElement : public Element {
38public:
40 unsigned, // tag
41 unsigned, // number of nodes
42 unsigned, // number of dofs
43 uvec&&, // node encoding
44 uvec&&, // section tags
45 bool, // nonlinear geometry switch
46 SectionType, // section type
47 vector<DOF>&& // dof identifier
48 );
49};
50
52public:
54 unsigned, // tag
55 unsigned, // number of nodes
56 unsigned, // number of dofs
57 uvec&&, // node encoding
58 uvec&&, // section tags
59 bool, // nonlinear geometry switch
60 vector<DOF>&& // dof identifier
61 );
62};
63
65public:
67 unsigned, // tag
68 unsigned, // number of nodes
69 unsigned, // number of dofs
70 uvec&&, // node encoding
71 uvec&&, // section tags
72 bool, // nonlinear geometry switch
73 vector<DOF>&& = {DOF::U1, DOF::U2, DOF::UR3} // dof identifier
74 );
75};
76
78public:
80 unsigned, // tag
81 unsigned, // number of nodes
82 unsigned, // number of dofs
83 uvec&&, // node encoding
84 uvec&&, // section tags
85 bool, // nonlinear geometry switch
86 vector<DOF>&& = {DOF::U1, DOF::U2, DOF::U3, DOF::UR1, DOF::UR2, DOF::UR3} // dof identifier
87 );
88};
89
91public:
93 unsigned, // tag
94 unsigned, // number of nodes
95 unsigned, // number of dofs
96 uvec&&, // node encoding
97 uvec&&, // section tags
98 bool, // nonlinear geometry switch
99 vector<DOF>&& = {DOF::U1, DOF::U2, DOF::UR3} // dof identifier
100 );
101};
102
104public:
106 unsigned, // tag
107 unsigned, // number of nodes
108 unsigned, // number of dofs
109 uvec&&, // node encoding
110 uvec&&, // section tags
111 bool, // nonlinear geometry switch
112 vector<DOF>&& = {DOF::U1, DOF::U2, DOF::U3, DOF::UR1, DOF::UR2, DOF::UR3} // dof identifier
113 );
114};
115
117public:
119 unsigned, // tag
120 unsigned, // number of nodes
121 unsigned, // number of dofs
122 uvec&&, // node encoding
123 uvec&&, // section tags
124 bool, // nonlinear geometry switch
125 vector<DOF>&& = {DOF::U1, DOF::U2, DOF::U3, DOF::UR1, DOF::UR2, DOF::UR3, DOF::WARP} // dof identifier
126 );
127};
128
129#endif
130
A Element class.
Definition: Element.h:117
Definition: SectionElement.h:51
SectionElement1D(unsigned, unsigned, unsigned, uvec &&, uvec &&, bool, vector< DOF > &&)
Definition: SectionElement.cpp:24
Definition: SectionElement.h:64
SectionElement2D(unsigned, unsigned, unsigned, uvec &&, uvec &&, bool, vector< DOF > &&={DOF::U1, DOF::U2, DOF::UR3})
Definition: SectionElement.cpp:27
Definition: SectionElement.h:77
SectionElement3D(unsigned, unsigned, unsigned, uvec &&, uvec &&, bool, vector< DOF > &&={DOF::U1, DOF::U2, DOF::U3, DOF::UR1, DOF::UR2, DOF::UR3})
Definition: SectionElement.cpp:30
The SectionElement class.
Definition: SectionElement.h:37
SectionElement(unsigned, unsigned, unsigned, uvec &&, uvec &&, bool, SectionType, vector< DOF > &&)
Definition: SectionElement.cpp:21
Definition: SectionElement.h:90
SectionNMElement2D(unsigned, unsigned, unsigned, uvec &&, uvec &&, bool, vector< DOF > &&={DOF::U1, DOF::U2, DOF::UR3})
Definition: SectionElement.cpp:33
Definition: SectionElement.h:103
SectionNMElement3D(unsigned, unsigned, unsigned, uvec &&, uvec &&, bool, vector< DOF > &&={DOF::U1, DOF::U2, DOF::U3, DOF::UR1, DOF::UR2, DOF::UR3})
Definition: SectionElement.cpp:36
Definition: SectionElement.h:116
SectionOSElement3D(unsigned, unsigned, unsigned, uvec &&, uvec &&, bool, vector< DOF > &&={DOF::U1, DOF::U2, DOF::U3, DOF::UR1, DOF::UR2, DOF::UR3, DOF::WARP})
Definition: SectionElement.cpp:39
@ WARP
SectionType
Definition: Section.h:33
std::vector< T > vector
Definition: container.h:53