suanPan
MaterialElement.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 MATERIALELEMENT_H
29#define MATERIALELEMENT_H
30
31#include <Element/Element.h>
32#include <Domain/DOF.h>
33
34using std::array;
35using std::vector;
36
37class MaterialElement : public Element {
38public:
40 unsigned, // tag
41 unsigned, // number of nodes
42 unsigned, // number of dofs
43 uvec&&, // node encoding
44 uvec&&, // material tags
45 bool, // nonlinear geometry switch
46 MaterialType, // material 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&&, // material 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&&, // material tags
72 bool, // nonlinear geometry switch
73 vector<DOF>&& = {} // 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&&, // material tags
85 bool, // nonlinear geometry switch
86 vector<DOF>&& = {DOF::U1, DOF::U2, DOF::U3} // dof identifier
87 );
88};
89
90#endif
91
A Element class.
Definition: Element.h:117
Definition: MaterialElement.h:51
MaterialElement1D(unsigned, unsigned, unsigned, uvec &&, uvec &&, bool, vector< DOF > &&)
Definition: MaterialElement.cpp:24
Definition: MaterialElement.h:64
MaterialElement2D(unsigned, unsigned, unsigned, uvec &&, uvec &&, bool, vector< DOF > &&={})
Definition: MaterialElement.cpp:27
Definition: MaterialElement.h:77
MaterialElement3D(unsigned, unsigned, unsigned, uvec &&, uvec &&, bool, vector< DOF > &&={DOF::U1, DOF::U2, DOF::U3})
Definition: MaterialElement.cpp:30
The MaterialElement class.
Definition: MaterialElement.h:37
MaterialElement(unsigned, unsigned, unsigned, uvec &&, uvec &&, bool, MaterialType, vector< DOF > &&)
Definition: MaterialElement.cpp:21
MaterialType
Definition: Material.h:34
std::vector< T > vector
Definition: container.h:53