|
| virtual bool | addDataPoints (const DtRwAircraftEngineEfficiencyDataPointList &datapoints, double startWeight, double endWeight, std::ostream *errorStream=0) |
| |
| virtual double | interpolateEfficiency (double speed, double altitude) const |
| |
| virtual double | fuelConsumed (double range, double speed, double altitude, double mass) const |
| |
| virtual double | calculateRange (double speed, double altitude, double startMass, double endMass) const |
| |
| virtual bool | shouldConsumeFuel () const |
| |
| | DtAircraftFuelConsumptionModel () |
| |
| virtual | ~DtAircraftFuelConsumptionModel () |
| |
| virtual bool | isValid () const |
| |
| virtual double | calculateEfficiency (double range, double speed, double startMass, double endMass) const |
| |
| virtual void | setShouldConsumeFuel (bool shouldConsume) |
| |
Configure the model with a set of data points. Each data point has a range, altitude, and speed. Combined with the startMass and endMass, can be used to determine an engine efficiency.
- Parameters
-
| startMass | Starting mass of aircraft. |
| endMass | Ending mass of aircraft. For example if the aircraft starts out with a full fuel tank and uses all of it's fuel (the usual case for range specifications) then startMass would be the mass of the aircraft plus the mass of the full fuel tank and endMass would be the mass of the aircraft. This doesn't have to be the case though, if you knew the range when using half the fuel then you could use that. |
Implements DtAircraftFuelConsumptionModel.
| virtual double DtNoFuelUsageAircraftFuelConsumptionModel::interpolateEfficiency |
( |
double |
speed, |
|
|
double |
altitude |
|
) |
| const |
|
virtual |
Calculate the fuel consumed over a given range.
- Parameters
-
| mass | The mass of the aircraft (airframe + fuel) at the start of the movement. Does not take into account the amount of fuel the aircraft has, i.e. it may use more fuel than the aircraft has. It's up to the user to actually deal with decrementing the fuel. |
Reimplemented from DtAircraftFuelConsumptionModel.
| virtual bool DtNoFuelUsageAircraftFuelConsumptionModel::shouldConsumeFuel |
( |
| ) |
const |
|
virtual |
The documentation for this class was generated from the following file: