35 #ifndef FGBUOYANTFORCES_H 36 #define FGBUOYANTFORCES_H 46 #include "FGGasCell.h" 47 #include "math/FGColumnVector3.h" 53 #define ID_BUOYANTFORCES "$Id: FGBuoyantForces.h,v 1.18 2013/11/24 11:40:55 bcoconni Exp $" 115 bool InitModel(
void);
124 bool Run(
bool Holding);
139 double GetForces(
int idx)
const {
return vTotalForces(idx);}
147 double GetMoments(
int idx)
const {
return vTotalMoments(idx);}
177 std::vector <FGGasCell*> Cells;
191 void Debug(
int from);
const FGColumnVector3 & GetGasMassMoment(void)
Gets the total moment from the gas mass.
Encapsulates the Buoyant forces calculations.
~FGBuoyantForces()
Destructor.
std::string GetBuoyancyValues(const std::string &delimeter)
Gets the coefficient values.
FGBuoyantForces(FGFDMExec *Executive)
Constructor.
double GetForces(int idx) const
Gets a component of the total Buoyant force vector.
const FGMatrix33 & GetGasMassInertia(void)
Gets the total moments of inertia for the gas mass in the body frame.
bool Run(bool Holding)
Runs the Buoyant forces model; called by the Executive Can pass in a value indicating if the executiv...
const FGColumnVector3 & GetMoments(void) const
Gets the total Buoyancy moment vector.
double GetGasMass(void) const
Gets the total gas mass.
Base class for all scheduled JSBSim models.
std::string GetBuoyancyStrings(const std::string &delimeter)
Gets the strings for the current set of gas cells.
const FGColumnVector3 & GetForces(void) const
Gets the total Buoyant force vector.
This class implements a 3 element column vector.
double GetMoments(int idx) const
Gets a component of the total Buoyancy moment vector.
bool Load(Element *element)
Loads the Buoyant forces model.
Handles matrix math operations.
Encapsulates the JSBSim simulation executive.