![]() |
CONFIG LIB 1.5
Configuration Files Library (by TGG 2020)
|
MASS_OBJECT_DATA class and functions. More...
#include <mass_data.h>
Public Member Functions | |
| void | Clean (void) |
| cleans local variables | |
| int | CheckData (bool CheckMassFlag) |
| checks integrity of data of the mass object | |
| int | CoordinateSystems () |
| computes coordinate systems versors of the mass object | |
| void | Read (std::ifstream &in) |
| reads single mass object | |
| void | Write (std::ofstream &out, int Id) |
| writes single mass object | |
Public Attributes | |
| bool | Active |
| object activity flag | |
| std::string | Name |
| name of the object | |
| GeomObjType | Type |
| type of the object (see enum GeomObjType) | |
| unsigned int | Color |
| VECTOR_3D | Base |
| Base point. | |
| VECTOR_3D | Tip |
| Direction component | |
| VECTOR_3D | Side |
| Direction component | |
| VECTOR_3D | CG_s |
| CG position in SELF CS. | |
| VECTOR_3D | CG_l |
| CG position in LOCAL CS. | |
| VECTOR_3D | CG_g |
| CG position in GLOBAL CS. | |
| MATRIX_3x3 | I_s |
| Inertia matrix in SELF CS. | |
| MATRIX_3x3 | I_l |
| Inertia matrix in LOCAL CS. | |
| double | m |
| mass [kg] | |
| double | ro |
| density [kg/m^3] | |
| double | Vol |
| volume [m^3] | |
| double | R |
| external radius [m] | |
| double | r |
| internal (tube) radius [m] | |
| double | H |
| height [m] | |
| double | a |
| edge (x) length [m] | |
| double | b |
| edge (y) length [m] | |
| double | c |
| edge (z) length [m] | |
| double | th |
| hollow objects wallss thicknes [m] | |
| VECTOR_3D | is |
| VECTOR_3D | js |
| VECTOR_3D | ks |
| SELF coordinate system (versors) | |
| VECTOR_3D | il |
| VECTOR_3D | jl |
| VECTOR_3D | kl |
| LOCAL coordinate system (versors) | |
| VECTOR_3D | ig |
| VECTOR_3D | jg |
| VECTOR_3D | kg |
| GLOBAL coordinate system (versors) | |
MASS_OBJECT_DATA class and functions.
Basic coordinate systems:
SELF - local object coordinate system used to define object geometry
LOCAL - local coordinate system of the object, origin in the object CG, axes parallel to the global system axis
GLOBAL - global coordinate system to define the geometry of the entire aircraft
Definition at line 53 of file mass_data.h.
| MASS_OBJECT_DATA::MASS_OBJECT_DATA | ( | void | ) |
Definition at line 24 of file mass_data.cpp.
| MASS_OBJECT_DATA::~MASS_OBJECT_DATA | ( | void | ) |
Definition at line 26 of file mass_data.cpp.
| int MASS_OBJECT_DATA::CheckData | ( | bool | CheckMassFlag | ) |
checks integrity of data of the mass object
Definition at line 54 of file mass_data.cpp.
| void MASS_OBJECT_DATA::Clean | ( | void | ) |
cleans local variables
Definition at line 28 of file mass_data.cpp.
| int MASS_OBJECT_DATA::CoordinateSystems | ( | ) |
computes coordinate systems versors of the mass object
Definition at line 89 of file mass_data.cpp.
Referenced by Clean().
| void MASS_OBJECT_DATA::Read | ( | std::ifstream & | in | ) |
reads single mass object
Definition at line 120 of file mass_data.cpp.
Referenced by MASS_FILE::Read().
| void MASS_OBJECT_DATA::Write | ( | std::ofstream & | out, |
| int | Id ) |
writes single mass object
Definition at line 167 of file mass_data.cpp.
| double MASS_OBJECT_DATA::a |
edge (x) length [m]
Definition at line 81 of file mass_data.h.
Referenced by CheckData(), Clean(), Read(), and Write().
| bool MASS_OBJECT_DATA::Active |
object activity flag
Definition at line 57 of file mass_data.h.
| double MASS_OBJECT_DATA::b |
edge (y) length [m]
Definition at line 82 of file mass_data.h.
Referenced by CheckData(), Clean(), Read(), and Write().
| VECTOR_3D MASS_OBJECT_DATA::Base |
| double MASS_OBJECT_DATA::c |
edge (z) length [m]
Definition at line 83 of file mass_data.h.
Referenced by CheckData(), Clean(), Read(), and Write().
| VECTOR_3D MASS_OBJECT_DATA::CG_g |
CG position in GLOBAL CS.
Definition at line 69 of file mass_data.h.
| VECTOR_3D MASS_OBJECT_DATA::CG_l |
CG position in LOCAL CS.
Definition at line 68 of file mass_data.h.
| VECTOR_3D MASS_OBJECT_DATA::CG_s |
CG position in SELF CS.
Definition at line 67 of file mass_data.h.
| unsigned int MASS_OBJECT_DATA::Color |
Definition at line 61 of file mass_data.h.
| double MASS_OBJECT_DATA::H |
height [m]
Definition at line 80 of file mass_data.h.
Referenced by CheckData(), Clean(), Read(), and Write().
| MATRIX_3x3 MASS_OBJECT_DATA::I_l |
Inertia matrix in LOCAL CS.
Definition at line 72 of file mass_data.h.
| MATRIX_3x3 MASS_OBJECT_DATA::I_s |
| VECTOR_3D MASS_OBJECT_DATA::ig |
Definition at line 88 of file mass_data.h.
| VECTOR_3D MASS_OBJECT_DATA::il |
Definition at line 87 of file mass_data.h.
| VECTOR_3D MASS_OBJECT_DATA::is |
Definition at line 86 of file mass_data.h.
| VECTOR_3D MASS_OBJECT_DATA::jg |
Definition at line 88 of file mass_data.h.
| VECTOR_3D MASS_OBJECT_DATA::jl |
Definition at line 87 of file mass_data.h.
| VECTOR_3D MASS_OBJECT_DATA::js |
Definition at line 86 of file mass_data.h.
| VECTOR_3D MASS_OBJECT_DATA::kg |
GLOBAL coordinate system (versors)
Definition at line 88 of file mass_data.h.
Referenced by CoordinateSystems().
| VECTOR_3D MASS_OBJECT_DATA::kl |
LOCAL coordinate system (versors)
Definition at line 87 of file mass_data.h.
Referenced by CoordinateSystems().
| VECTOR_3D MASS_OBJECT_DATA::ks |
SELF coordinate system (versors)
Definition at line 86 of file mass_data.h.
Referenced by CoordinateSystems().
| double MASS_OBJECT_DATA::m |
mass [kg]
Definition at line 74 of file mass_data.h.
Referenced by CheckData(), Clean(), Read(), and Write().
| std::string MASS_OBJECT_DATA::Name |
name of the object
Definition at line 59 of file mass_data.h.
| double MASS_OBJECT_DATA::R |
external radius [m]
Definition at line 78 of file mass_data.h.
Referenced by CheckData(), Clean(), Read(), and Write().
| double MASS_OBJECT_DATA::r |
internal (tube) radius [m]
Definition at line 79 of file mass_data.h.
Referenced by CheckData(), Read(), and Write().
| double MASS_OBJECT_DATA::ro |
density [kg/m^3]
Definition at line 75 of file mass_data.h.
| VECTOR_3D MASS_OBJECT_DATA::Side |
Direction component
Definition at line 65 of file mass_data.h.
Referenced by CheckData(), Clean(), CoordinateSystems(), Read(), and Write().
| double MASS_OBJECT_DATA::th |
hollow objects wallss thicknes [m]
Definition at line 84 of file mass_data.h.
| VECTOR_3D MASS_OBJECT_DATA::Tip |
Direction component
Definition at line 64 of file mass_data.h.
Referenced by CheckData(), Clean(), CoordinateSystems(), Read(), and Write().
| GeomObjType MASS_OBJECT_DATA::Type |
type of the object (see enum GeomObjType)
Definition at line 60 of file mass_data.h.
Referenced by CheckData(), Clean(), Read(), and Write().
| double MASS_OBJECT_DATA::Vol |