41 virtual bool isValid()
const;
53 virtual bool addDataPoints(
55 double startMass,
double endMass,
56 std::ostream* errorStream = 0) = 0;
60 virtual double calculateEfficiency(
61 double range,
double speed,
double startMass,
double endMass)
const;
64 virtual double calculateRange(
65 double speed,
double altitude,
double startMass,
double endMass)
const;
68 virtual double interpolateEfficiency(
double speed,
double altitude)
const = 0;
74 virtual double fuelConsumed(
75 double range,
double speed,
double altitude,
double mass)
const;
78 virtual bool shouldConsumeFuel()
const;
81 virtual void setShouldConsumeFuel(
bool shouldConsume);
94 double startWeight,
double endWeight,
95 std::ostream* errorStream = 0);
99 virtual double fuelConsumed(
double range,
double speed,
double altitude,
double mass)
const;
102 double speed,
double altitude,
double startMass,
double endMass)
const;
118 double startWeight,
double endWeight,
119 std::ostream* errorStream = 0);
139 double startWeight,
double endWeight,
140 std::ostream* errorStream = 0);
146 double myGridPoints[2][2];
double myMinAltitude
Definition: aircraftFuelConsumptionModel.h:148
double myEfficiency
Definition: aircraftFuelConsumptionModel.h:124
virtual double interpolateEfficiency(double speed, double altitude) const =0
Interpolate an engine efficiency at a given speed and altitude.
bool myValidFlag
Definition: aircraftFuelConsumptionModel.h:152
double myXDYD
Definition: aircraftFuelConsumptionModel.h:150
Implements the Breguet range equation V(L/D) Range = ---—*ln(Wi/Wf) g*SFC V = Velocity L/D = Lift/Dra...
Definition: aircraftFuelConsumptionModel.h:28
virtual bool shouldConsumeFuel() const
Returns true if the model should currently consume fuel.
double myMinSpeed
Definition: aircraftFuelConsumptionModel.h:149
virtual bool isValid() const
Allows system to be configured but still warn user that something may be wrong.
virtual double fuelConsumed(double range, double speed, double altitude, double mass) const
Calculate the fuel consumed over a given range.
virtual double calculateRange(double speed, double altitude, double startMass, double endMass) const
Calculates the range at specific conditions.
virtual bool addDataPoints(const DtRwAircraftEngineEfficiencyDataPointList &datapoints, double startMass, double endMass, std::ostream *errorStream=0)=0
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.
#define DT_DLL_vrfutil
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: vrfutilDefines.h:34
bool myShouldConsumeFuel
Definition: aircraftFuelConsumptionModel.h:85
Uses no fuel.
Definition: aircraftFuelConsumptionModel.h:89
Uses bilinear interpolation to interpolate an efficiency. Must be supplied with exactly four data poi...
Definition: aircraftFuelConsumptionModel.h:129
Uses a single efficiency number (i.e. doesn't do any interpolation).
Definition: aircraftFuelConsumptionModel.h:109
Definition: rwAircraftEngineEfficiency.h:66