CONFIG LIB 1.5
Configuration Files Library (by TGG 2020)
Loading...
Searching...
No Matches
mass_data.h
Go to the documentation of this file.
1/*********************************************************************/
2/* */
3/* Config files library - (C) JM 2020 */
4/* */
5/*********************************************************************/
6/* Warszawa, 2020 */
7/*********************************************************************/
8/* */
9/* File: geom_data.h */
10/* */
11/* Author: J.Mieloszyk, modif. T.Grabowski */
12/* */
13/* Contents - data of basic geometry objects (class) */
14/* */
15/* */
16/*********************************************************************/
17/* */
18/* */
19
24#ifndef _MASS_DATA_H_
25#define _MASS_DATA_H_
26
27#include <iomanip>
28#include <fstream>
29
30#include "vector3d.h"
31#include "matr3d.h"
32
43
52
54{
55 public:
56
57 bool Active;
58
59 std::string Name;
61 unsigned int Color;
62
66
70
73
74 double m;
75 double ro;
76 double Vol;
77
78 double R;
79 double r;
80 double H;
81 double a;
82 double b;
83 double c;
84 double th;
85
86 VECTOR_3D is, js, ks;
87 VECTOR_3D il, jl, kl;
88 VECTOR_3D ig, jg, kg;
89
93 void Clean( void );
95 int CheckData(bool CheckMassFlag);
99 void Read(std::ifstream &in);
101 void Write(std::ofstream &out, int Id);
102};
103
104#endif /*_MASS_DATA_H_*/
MASS_OBJECT_DATA class and functions.
Definition mass_data.h:54
VECTOR_3D Side
Direction component
Definition mass_data.h:65
double R
external radius [m]
Definition mass_data.h:78
void Clean(void)
cleans local variables
Definition mass_data.cpp:28
double th
hollow objects wallss thicknes [m]
Definition mass_data.h:84
GeomObjType Type
type of the object (see enum GeomObjType)
Definition mass_data.h:60
MATRIX_3x3 I_s
Inertia matrix in SELF CS.
Definition mass_data.h:71
VECTOR_3D Base
Base point.
Definition mass_data.h:63
int CoordinateSystems()
computes coordinate systems versors of the mass object
Definition mass_data.cpp:89
VECTOR_3D kl
LOCAL coordinate system (versors)
Definition mass_data.h:87
void Read(std::ifstream &in)
reads single mass object
VECTOR_3D CG_g
CG position in GLOBAL CS.
Definition mass_data.h:69
MATRIX_3x3 I_l
Inertia matrix in LOCAL CS.
Definition mass_data.h:72
double ro
density [kg/m^3]
Definition mass_data.h:75
void Write(std::ofstream &out, int Id)
writes single mass object
VECTOR_3D Tip
Direction component
Definition mass_data.h:64
std::string Name
name of the object
Definition mass_data.h:59
VECTOR_3D CG_s
CG position in SELF CS.
Definition mass_data.h:67
VECTOR_3D kg
GLOBAL coordinate system (versors)
Definition mass_data.h:88
double m
mass [kg]
Definition mass_data.h:74
int CheckData(bool CheckMassFlag)
checks integrity of data of the mass object
Definition mass_data.cpp:54
double c
edge (z) length [m]
Definition mass_data.h:83
double r
internal (tube) radius [m]
Definition mass_data.h:79
double H
height [m]
Definition mass_data.h:80
bool Active
object activity flag
Definition mass_data.h:57
VECTOR_3D CG_l
CG position in LOCAL CS.
Definition mass_data.h:68
double b
edge (y) length [m]
Definition mass_data.h:82
double a
edge (x) length [m]
Definition mass_data.h:81
double Vol
volume [m^3]
Definition mass_data.h:76
VECTOR_3D ks
SELF coordinate system (versors)
Definition mass_data.h:86
MATRIX_3x3 class and functions.
Definition matr3d.h:41
Vector 3D class - vector manipulation.
Definition vector3d.h:34
GeomObjType
type of the geometry objectsymmetry flag
Definition mass_data.h:34
@ TUBE
tube (height H, internal radius r, external radius R)
Definition mass_data.h:39
@ M_POINT
mass piont (particle)
Definition mass_data.h:35
@ CYLINDER
cylinder (height H, radius R)
Definition mass_data.h:38
@ DISC
thin disc (radius R)
Definition mass_data.h:41
@ CONE
cone (height H, base radius R)
Definition mass_data.h:40
@ SPHERE
sphere (radius R)
Definition mass_data.h:36
@ CUBOID
cuboid (the edges: a,b,c)
Definition mass_data.h:37
MATRIX_3x3 class and functions.
Vector 3D class and functions.