#include <FGMassBalance.h>
Inherits FGModel.
<mass_balance>
<ixx unit="{SLUG*FT2 | KG*M2}"> {number} </ixx>
<iyy unit="{SLUG*FT2 | KG*M2}"> {number} </iyy>
<izz unit="{SLUG*FT2 | KG*M2}"> {number} </izz>
<ixy unit="{SLUG*FT2 | KG*M2}"> {number} </ixy>
<ixz unit="{SLUG*FT2 | KG*M2}"> {number} </ixz>
<iyz unit="{SLUG*FT2 | KG*M2}"> {number} </iyz>
<emptywt unit="{LBS | KG"> {number} </emptywt>
<location name="CG" unit="{IN | M}">
<x> {number} </x>
<y> {number} </y>
<z> {number} </z>
</location>
<pointmass name="{string}">
<weight unit="{LBS | KG}"> {number} </weight>
<location name="POINTMASS" unit="{IN | M}">
<x> {number} </x>
<y> {number} </y>
<z> {number} </z>
</location>
</pointmass>
... other point masses ...
</mass_balance>
Definition at line 99 of file FGMassBalance.h.
Public Member Functions | |
| void | AddPointMass (Element *el) |
| FGMassBalance (FGFDMExec *) | |
| FGMatrix33 & | GetJ (void) |
| FGMatrix33 & | GetJinv (void) |
| double | GetMass (void) const |
| FGMatrix33 | GetPointmassInertia (double slugs, const FGColumnVector3 &r) const |
| Computes the inertia contribution of a pointmass. | |
| FGColumnVector3 & | GetPointMassMoment (void) |
| double | GetTotalPointMassWeight (void) |
| double | GetWeight (void) const |
| double | GetXYZcg (int axis) const |
| FGColumnVector3 & | GetXYZcg (void) |
| bool | InitModel (void) |
| bool | Load (Element *el) |
| Loads this model. | |
| bool | Run (void) |
| Runs the model; called by the Executive. | |
| void | SetAircraftBaseInertias (FGMatrix33 BaseJ) |
| void | SetBaseCG (const FGColumnVector3 &CG) |
| void | SetEmptyWeight (double EW) |
| FGColumnVector3 | StructuralToBody (const FGColumnVector3 &r) const |
| Conversion from the structural frame to the body frame. | |
Classes | |
| struct | PointMass |
| FGMatrix33 GetPointmassInertia | ( | double | slugs, | |
| const FGColumnVector3 & | r | |||
| ) | const [inline] |
Computes and returns the inertia matrix of a pointmass of mass slugs at the given vector r in the structural frame. The units should be for the mass in slug and the vector in the structural frame as usual in inches.
| slugs | the mass of this single pointmass given in slugs | |
| r | the location of this single pointmass in the structural frame |
Definition at line 123 of file FGMassBalance.h.
| bool Load | ( | Element * | el | ) | [virtual] |
| el | a pointer to the element |
Reimplemented from FGModel.
Definition at line 93 of file FGMassBalance.cpp.
| bool Run | ( | void | ) | [virtual] |
Reimplemented from FGModel.
Definition at line 149 of file FGMassBalance.cpp.
| FGColumnVector3 StructuralToBody | ( | const FGColumnVector3 & | r | ) | const |
Converts the location given in the structural frame coordinate system to the body frame. The units of the structural frame are assumed to be in inches. The unit of the result is in ft.
| r | vector coordinate in the structural reference frame (X positive aft, measurements in inches). |
Definition at line 275 of file FGMassBalance.cpp.
1.5.5