FGMassBalance Class Reference

#include <FGMassBalance.h>

Inherits FGModel.

List of all members.


Detailed Description

Maintains a vector of point masses. Sums the contribution of all, and provides this to FGPropagate. Loads the <mass_balance> section of the aircraft configuration file.

Configuration File Format:

    <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 *)
FGMatrix33GetJ (void)
FGMatrix33GetJinv (void)
double GetMass (void) const
FGMatrix33 GetPointmassInertia (double slugs, const FGColumnVector3 &r) const
 Computes the inertia contribution of a pointmass.
FGColumnVector3GetPointMassMoment (void)
double GetTotalPointMassWeight (void)
double GetWeight (void) const
double GetXYZcg (int axis) const
FGColumnVector3GetXYZcg (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

Member Function Documentation

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.

Parameters:
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]

Parameters:
el a pointer to the element
Returns:
true if model is successfully loaded

Reimplemented from FGModel.

Definition at line 93 of file FGMassBalance.cpp.

bool Run ( void   )  [virtual]

See also:
JSBSim.cpp documentation
Returns:
false if no error

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.

Parameters:
r vector coordinate in the structural reference frame (X positive aft, measurements in inches).
Returns:
vector coordinate in the body frame, in feet.

Definition at line 275 of file FGMassBalance.cpp.


The documentation for this class was generated from the following files:

Generated on Tue May 26 00:55:11 2009 for JSBSim Flight Dynamics Model by  doxygen 1.5.5