 |
JSBSim Flight Dynamics Model
1.1.11 (13 Feb 2022)
An Open Source Flight Dynamics and Control Software Library in C++
|
35 #ifndef FGBUOYANTFORCES_H
36 #define FGBUOYANTFORCES_H
46 #include "FGGasCell.h"
47 #include "math/FGColumnVector3.h"
108 bool InitModel(
void)
override;
117 bool Run(
bool Holding)
override;
132 double GetForces(
int idx)
const {
return vTotalForces(idx);}
140 double GetMoments(
int idx)
const {
return vTotalMoments(idx);}
170 std::vector <FGGasCell*> Cells;
184 void Debug(
int from)
override;
Encapsulates the JSBSim simulation executive.
This class implements a 3 element column vector.
Base class for all scheduled JSBSim models.
FGBuoyantForces(FGFDMExec *Executive)
Constructor.
const FGMatrix33 & GetGasMassInertia(void)
Gets the total moments of inertia for the gas mass in the body frame.
bool Load(Element *element) override
Loads the Buoyant forces model.
Handles matrix math operations.
~FGBuoyantForces() override
Destructor.
const FGColumnVector3 & GetMoments(void) const
Gets the total Buoyancy moment vector.
const FGColumnVector3 & GetGasMassMoment(void)
Gets the total moment from the gas mass.
std::string GetBuoyancyStrings(const std::string &delimeter)
Gets the strings for the current set of gas cells.
double GetMoments(int idx) const
Gets a component of the total Buoyancy moment vector.
std::string GetBuoyancyValues(const std::string &delimeter)
Gets the coefficient values.
double GetGasMass(void) const
Gets the total gas mass.
double GetForces(int idx) const
Gets a component of the total Buoyant force vector.
bool Run(bool Holding) override
Runs the Buoyant forces model; called by the Executive Can pass in a value indicating if the executiv...
Encapsulates the Buoyant forces calculations.
const FGColumnVector3 & GetForces(void) const
Gets the total Buoyant force vector.