suanPan
MaterialElement.h
Go to the documentation of this file.
1
/*******************************************************************************
2
* Copyright (C) 2017-2022 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
34
using
std::array;
35
using
std::vector
;
36
37
class
MaterialElement
:
public
Element
{
38
public
:
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
50
class
MaterialElement1D
:
public
MaterialElement
{
51
public
:
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
62
class
MaterialElement2D
:
public
MaterialElement
{
63
public
:
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
74
class
MaterialElement3D
:
public
MaterialElement
{
75
public
:
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
Element
A Element class.
Definition:
Element.h:89
MaterialElement::MaterialElement
MaterialElement(unsigned, unsigned, unsigned, uvec &&, uvec &&, bool, MaterialType, vector< DOF > &&)
Definition:
MaterialElement.cpp:21
DOF::U1
DOF::U2
Element.h
MaterialType
MaterialType
Definition:
Material.h:34
MaterialElement1D
Definition:
MaterialElement.h:50
MaterialElement2D
Definition:
MaterialElement.h:62
MaterialElement3D
Definition:
MaterialElement.h:74
suanpan::vector
std::vector< T > vector
Definition:
container.h:53
MaterialElement
The MaterialElement class.
Definition:
MaterialElement.h:37
DOF::U3
DOF.h
Element
MaterialElement.h
Generated by
1.8.13