Node.h
1 #ifndef STRUCTS
2 #define STRUCTS
3 
4 #define EIGEN_NO_DEBUG
5 #include <Eigen/Eigen>
6 
7 using namespace Eigen;
8 
10 class Node
11 {
12 public:
13  int nElem;
14  int id;
15  double x;
16  double y;
17  double xp;
18  double yp;
19 
20  double omega_c;
21  double omega;
22  double Ek;
23  bool visited = false;
24 
25  std::vector<double> tau_thinwall;
26  std::vector <double> sigmaZ;
27 
28  MatrixXd tau;
29 
30  Node();
31 
44  void calculateOmega(double xs, double ys, double C);
45 
46 };
47 
48 #endif
Struct that holds nodal properties.
Definition: Node.h:10
std::vector< double > tau_thinwall
Contains tau values due to Vx, Vy, Twrp as well as resulting stress, Tstv and effective stress respec...
Definition: Node.h:25
double xp
x position of the node, given in principal coordinates
Definition: Node.h:17
double yp
y position of the node, given in principal coordinates
Definition: Node.h:18
double y
y position of the node
Definition: Node.h:16
double Ek
Average of Young&#39;s Modulus for all adjacent line segments.
Definition: Node.h:22
MatrixXd tau
2x1 matrix containing tauX and tauY.
Definition: Node.h:28
double omega_c
Nodal omega relative to center of gravity (used temporarily, until omega is determined) ...
Definition: Node.h:20
int id
ID per node, defined from .msh file.
Definition: Node.h:14
double omega
Nodal omega relative to shear center.
Definition: Node.h:21
double x
x position of the node
Definition: Node.h:15
int nElem
Number of elements connected to this node.
Definition: Node.h:13
std::vector< double > sigmaZ
Contains sigma_z values due to N, Mx, My, B as well as resulting stress respectively. [N, Mx, My, B, resulting].
Definition: Node.h:26