224 double Drain(
double used);
232 double Calculate(
double dt,
double TempC);
323 double GetXYZ(
int idx)
const;
327 double Fill(
double amount);
339 std::string strGType;
348 double Capacity, UnusableVol;
357 double InertiaFactor;
359 double Contents, InitialContents;
361 double Temperature, InitialTemperature;
362 double Standpipe, InitialStandpipe;
365 int Priority, InitialPriority;
367 void CalculateInertias(
void);
369 void Debug(
int from);
This class implements a 3 element column vector.
Represents a mathematical function.
FGJSBBase()
Constructor for FGJSBBase.
static constexpr double CelsiusToFahrenheit(double celsius)
Converts from degrees Celsius to degrees Fahrenheit.
bool GetSelected(void) const
If the tank is set to supply fuel, this function returns true.
void SetContentsGallons(double gallons)
double GetPctFull(void) const
Gets the tank fill level.
double GetLocationY(void) const
void SetUnusableVolume(double volume)
Sets the volume of unusable fuel in the tank.
double GetCapacity(void) const
Gets the capacity of the tank.
double GetContentsGallons(void) const
Gets the contents of the tank.
void ResetToIC(void)
Resets the tank parameters to the initial conditions.
double GetUnusableVolume(void) const
Returns the unusable volume of fuel in the tank.
double Drain(double used)
Removes fuel from the tank.
double GetTemperature_degC(void) const
Gets the temperature of the fuel.
double GetTemperature(void) const
Gets the temperature of the fuel.
double GetContents(void) const
Gets the contents of the tank.
double GetLocationZ(void) const
double GetIyy(void) const
void SetExternalFlow(double f)
double GetIxx(void) const
double GetStandpipe(void) const
double Calculate(double dt, double TempC)
Performs local, tanks-specific calculations, such as fuel temperature.
void SetTemperature(double temp)
void SetSelected(bool sel)
int GetType(void) const
Retrieves the type of tank: Fuel or Oxidizer.
void SetLocationX(double x)
void SetDensity(double d)
Sets the fuel density.
void SetLocationZ(double z)
double GetLocationX(void) const
void SetLocationY(double y)
void SetStandpipe(double amount)
double GetCapacityGallons(void) const
Gets the capacity of the tank.
double GetIzz(void) const
double ProcessFuelName(const std::string &name)
Returns the density of a named fuel type.
FGColumnVector3 GetXYZ(void) const
int GetPriority(void) const
double Fill(double amount)
void SetContents(double amount)
double GetUnusable(void) const
Returns the amount of unusable fuel in the tank.
double GetExternalFlow(void) const
double GetDensity(void) const
Returns the fuel density.
GrainType GetGrainType(void) const
FGTank(FGFDMExec *exec, Element *el, int tank_number)
Constructor.