forked from sleutho/FESolve
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNode.cpp
47 lines (40 loc) · 935 Bytes
/
Node.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#include "Node.h"
namespace fesolv {
Node::Node(FEint n, FEdouble x, FEdouble y, FEdouble z)
{
_number = n;
_x = x;
_y = y;
_z = z;
_xforce=_yforce=_zforce=_xxforce=_yyforce=_zzforce=0.0;
_xconstrain=_yconstrain=_zconstrain=_xxconstrain=_yyconstrain=_zzconstrain = FEfalse;
}
void Node::SetCoord(FEdouble x, FEdouble y, FEdouble z)
{
_x = x;
_y = y;
_z = z;
}
void Node::SetNumber(FEint number)
{
_number = number;
}
void Node::SetForce(FEdouble xforce, FEdouble yforce, FEdouble zforce, FEdouble xxforce, FEdouble yyforce, FEdouble zzforce)
{
_xforce = xforce;
_yforce = yforce;
_zforce = zforce;
_xxforce = xxforce;
_yyforce = yyforce;
_zzforce = zzforce;
}
void Node::SetConstrain(FEint xcon, FEint ycon, FEint zcon, FEint xxcon, FEint yycon, FEint zzcon)
{
_xconstrain = xcon;
_yconstrain = ycon;
_zconstrain = zcon;
_xxconstrain = xxcon;
_yyconstrain = yycon;
_zzconstrain = zzcon;
}
}//end namespace