42 #include "math/FGTable.h" 43 #include "math/FGFunction.h" 49 #define ID_ROCKET "$Id: FGRocket.h,v 1.22 2015/09/27 09:54:21 bcoconni Exp $" 173 double GetOxiFlowRate(
void)
const {
return OxidizerFlowRate;}
175 double GetMixtureRatio(
void)
const {
return MxR;}
177 double GetIsp(
void)
const {
return Isp;}
179 void SetMixtureRatio(
double mix) {MxR = mix;}
181 void SetIsp(
double isp) {Isp = isp;}
183 std::string GetEngineLabels(
const std::string& delimiter);
184 std::string GetEngineValues(
const std::string& delimiter);
215 double GetVacThrust(
void)
const {
return VacThrust;}
224 double ThrustVariation;
225 double TotalIspVariation;
227 double previousFuelNeedPerTank;
228 double previousOxiNeedPerTank;
229 double OxidizerExpended;
230 double TotalPropellantExpended;
233 double OxidizerFlowRate;
234 double PropellantFlowRate;
241 void Debug(
int from);
~FGRocket(void)
Destructor.
double GetTotalIspVariation(void) const
Returns the Total Isp variation, if any.
double CalcFuelNeed(void)
The fuel need is calculated based on power levels and flow rate for that power level.
Models a generic rocket engine.
void Calculate(void)
Determines the thrust.
bool GetFlameout(void)
Gets the flame-out status.
double GetTotalImpulse(void) const
Gets the total impulse of the rocket.
void SetThrustVariation(double var)
Sets the thrust variation for a solid rocket engine.
Represents a mathematical function.
FGRocket(FGFDMExec *exec, Element *el, int engine_number, struct FGEngine::Inputs &input)
Constructor.
double GetThrustVariation(void) const
Returns the thrust variation, if any.
double CalcOxidizerNeed(void)
The oxidizer need is calculated based on power levels and flow rate for that power level...
Base class for all engines.
void SetTotalIspVariation(double var)
Sets the variation in total motor energy.
Encapsulates the JSBSim simulation executive.
double GetVacTotalImpulse(void) const
Gets the total impulse of the rocket.