My Project
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  double x;
15  double y;
16  double xp;
17  double yp;
18  double sigmaAxial;
19  double NofX;
20  double NofY;
21  double omega_c;
22  double omega;
23  double Ek;
24  bool visited = false;
25 
26  std::vector<double> tau_thinwall;
27  std::vector <double> sigmaX;
28 
29  MatrixXd tau;
30 
31  Node();
32 
43  void calculateOmega(double xs, double ys, double C);
44 
45 };
46 
47 #endif
Struct that holds the x and y coordinate for each node.
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:26
double xp
x position of the node, given in principal coordinates
Definition: Node.h:16
double yp
y position of the node, given in principal coordinates
Definition: Node.h:17
double NofX
Normal stresses due to Mx.
Definition: Node.h:19
double NofY
Normal stresses due to My.
Definition: Node.h:20
double y
y position of the node
Definition: Node.h:15
double Ek
Average of Young&#39;s Modulus for all adjacent line segments.
Definition: Node.h:23
MatrixXd tau
2x1 matrix containing tauXZ and tauYZ.
Definition: Node.h:29
double omega_c
Nodal omega relative to center of gravity (used temporarily, until omega is determined) ...
Definition: Node.h:21
double omega
Nodal omega relative to shear center.
Definition: Node.h:22
double x
x position of the node
Definition: Node.h:14
std::vector< double > sigmaX
Contains sigma_x values due to N, Mx, My, B as well as resulting stress respectively. [N, Mx, My, B, resulting].
Definition: Node.h:27
int nElem
Number of elements connected to this node.
Definition: Node.h:13
double sigmaAxial
Stress due to axial force.
Definition: Node.h:18