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