suanPan
Loading...
Searching...
No Matches
MaterialElement.h
Go to the documentation of this file.
1/*******************************************************************************
2 * Copyright (C) 2017-2023 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:
39 MaterialElement(unsigned, // tag
40 unsigned, // number of nodes
41 unsigned, // number of dofs
42 uvec&&, // node encoding
43 uvec&&, // material tags
44 bool, // nonlinear geometry switch
45 MaterialType, // material type
46 vector<DOF>&& // dof identifier
47 );
48};
49
51public:
52 MaterialElement1D(unsigned, // tag
53 unsigned, // number of nodes
54 unsigned, // number of dofs
55 uvec&&, // node encoding
56 uvec&&, // material tags
57 bool, // nonlinear geometry switch
58 vector<DOF>&& // dof identifier
59 );
60};
61
63public:
64 MaterialElement2D(unsigned, // tag
65 unsigned, // number of nodes
66 unsigned, // number of dofs
67 uvec&&, // node encoding
68 uvec&&, // material tags
69 bool, // nonlinear geometry switch
70 vector<DOF>&& = {} // dof identifier
71 );
72};
73
75public:
76 MaterialElement3D(unsigned, // tag
77 unsigned, // number of nodes
78 unsigned, // number of dofs
79 uvec&&, // node encoding
80 uvec&&, // material tags
81 bool, // nonlinear geometry switch
82 vector<DOF>&& = {DOF::U1, DOF::U2, DOF::U3} // dof identifier
83 );
84};
85
86#endif
87
A Element class.
Definition: Element.h:92
Definition: MaterialElement.h:50
Definition: MaterialElement.h:62
Definition: MaterialElement.h:74
The MaterialElement class.
Definition: MaterialElement.h:37
MaterialType
Definition: Material.h:34