FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
PolyplateSpec.h
1#ifndef C_PolyplateSpec_H
2#define C_PolyplateSpec_H
3#include "CRigidBody.h"
4
5namespace rigidbody
6{
9constexpr int kMaxPolyplatePoints = 12;
10
12{
13 public:
15 PolyplateSpec(int nPolyPoints, std::vector<double> xPoints, std::vector<double> yPoints, double thickness, double mass, const std::string& material);
17
18 int numPoints; //#points
19 double thickness; //plate thickness
20 std::vector<double> xCoords; //polygon x-coords
21 std::vector<double> yCoords; //polygon y-coords
22 double mass; // mass
23 double volume; //volume
24 mat6 inertiaMatrix; //plate inertia
25 vec3 centroid;
26 std::string material;
27
28 double projectedArea;
29 double cubedGRZ;
30 double cubedGRY;
31 double cubedGRX;
32 double cubedGRXY;
33 double cubedGRYX;
34
35 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
36};
37}; // namespace rigidbody
38#endif
Definition PolyplateSpec.h:12
PolyplateSpec(int nPolyPoints, std::vector< double > xPoints, std::vector< double > yPoints, double thickness, double mass, const std::string &material)