#include <FGBuoyantForces.h>
Inherits FGModel, and FGXMLFileRead.
Here's an example of a gas cell specification:
<buoyant_forces>
<!-- Interface properties -->
<property>ballonets/in-flow-ft3ps[0]</property>
<gas_cell type="HYDROGEN">
<location unit="M">
<x> 18.8 </x>
<y> 0.0 </y>
<z> 0.0 </z>
</location>
<x_radius unit="M"> 22.86 </x_radius>
<y_radius unit="M"> 4.55 </y_radius>
<z_radius unit="M"> 4.55 </z_radius>
<max_overpressure unit="PA"> 340.0 </max_overpressure>
<valve_coefficient unit="M4*SEC/KG"> 0.015 </valve_coefficient>
</gas_cell>
... {other gas cells} ...
</buoyant_forces>
See FGGasCell for the full configuration file format for gas cells.
Definition at line 106 of file FGBuoyantForces.h.
Public Member Functions | |
| FGBuoyantForces (FGFDMExec *Executive) | |
| Constructor. | |
| string | GetBuoyancyStrings (string delimeter) |
| Gets the strings for the current set of gas cells. | |
| string | GetBuoyancyValues (string delimeter) |
| Gets the coefficient values. | |
| const FGColumnVector3 & | GetForces (void) const |
| Gets the total Buoyant force vector. | |
| double | GetGasMass (void) |
| Gets the total gas mass. | |
| const FGMatrix33 & | GetGasMassInertia (void) |
| Gets the total moments of inertia for the gas mass. | |
| const FGColumnVector3 & | GetGasMassMoment (void) |
| Gets the total moment from the gas mass. | |
| const FGColumnVector3 & | GetMoments (void) const |
| Gets the total Buoyancy moment vector. | |
| bool | InitModel (void) |
| bool | Load (Element *element) |
| Loads the Buoyant forces model. | |
| bool | Run (void) |
| Runs the Buoyant forces model; called by the Executive. | |
| ~FGBuoyantForces () | |
| Destructor. | |
| FGBuoyantForces | ( | FGFDMExec * | Executive | ) |
| Executive | a pointer to the parent executive object |
Definition at line 52 of file FGBuoyantForces.cpp.
| string GetBuoyancyStrings | ( | string | delimeter | ) |
| delimeter | either a tab or comma string depending on output type |
Definition at line 215 of file FGBuoyantForces.cpp.
| string GetBuoyancyValues | ( | string | delimeter | ) |
| delimeter | either a tab or comma string depending on output type |
Definition at line 245 of file FGBuoyantForces.cpp.
| const FGColumnVector3& GetForces | ( | void | ) | const [inline] |
| double GetGasMass | ( | void | ) |
The gas mass is part of the aircraft's inertia.
Definition at line 165 of file FGBuoyantForces.cpp.
| const FGMatrix33 & GetGasMassInertia | ( | void | ) |
| const FGColumnVector3 & GetGasMassMoment | ( | void | ) |
| const FGColumnVector3& GetMoments | ( | void | ) | const [inline] |
| bool Load | ( | Element * | element | ) | [virtual] |
The Load function for this class expects the XML parser to have found the Buoyant_forces keyword in the configuration file.
| element | pointer to the current XML element for Buoyant forces parameters. |
Reimplemented from FGModel.
Definition at line 113 of file FGBuoyantForces.cpp.
| bool Run | ( | void | ) | [virtual] |
Reimplemented from FGModel.
Definition at line 93 of file FGBuoyantForces.cpp.
1.5.5