VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions
DtNoFuelUsageAircraftFuelConsumptionModel Class Reference

Uses no fuel.

Inheritance diagram for DtNoFuelUsageAircraftFuelConsumptionModel:
Inheritance graph
[legend]

Public Member Functions

virtual bool addDataPoints (const DtRwAircraftEngineEfficiencyDataPointList &datapoints, double startWeight, double endWeight, std::ostream *errorStream=0) override
 
virtual double interpolateEfficiency (double speed, double altitude) const override
 
virtual double fuelConsumed (double range, double speed, double altitude, double mass) const override
 
virtual double calculateRange (double speed, double altitude, double startMass, double endMass) const override
 
virtual bool shouldConsumeFuel () const override
 
- Public Member Functions inherited from DtAircraftFuelConsumptionModel
 DtAircraftFuelConsumptionModel ()
 
virtual ~DtAircraftFuelConsumptionModel ()
 
virtual bool isValid () const
 
virtual double calculateEfficiency (double range, double speed, double startMass, double endMass) const
 
virtual void setShouldConsumeFuel (bool shouldConsume)
 

Additional Inherited Members

- Static Public Member Functions inherited from DtAircraftFuelConsumptionModel
static
DtAircraftFuelConsumptionModel
Create (const DtRwAircraftEngineEfficiencyDataPointList &datapoints)
 
- Protected Attributes inherited from DtAircraftFuelConsumptionModel
bool myShouldConsumeFuel
 

Member Function Documentation

virtual bool DtNoFuelUsageAircraftFuelConsumptionModel::addDataPoints ( const DtRwAircraftEngineEfficiencyDataPointList datapoints,
double  startMass,
double  endMass,
std::ostream *  errorStream = 0 
)
overridevirtual

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
startMassStarting mass of aircraft.
endMassEnding 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
overridevirtual

Interpolate an engine efficiency at a given speed and altitude.

Implements DtAircraftFuelConsumptionModel.

virtual double DtNoFuelUsageAircraftFuelConsumptionModel::fuelConsumed ( double  range,
double  speed,
double  altitude,
double  mass 
) const
overridevirtual

Calculate the fuel consumed over a given range.

Parameters
massThe 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 double DtNoFuelUsageAircraftFuelConsumptionModel::calculateRange ( double  speed,
double  altitude,
double  startMass,
double  endMass 
) const
overridevirtual

Calculates the range at specific conditions.

Reimplemented from DtAircraftFuelConsumptionModel.

virtual bool DtNoFuelUsageAircraftFuelConsumptionModel::shouldConsumeFuel ( ) const
overridevirtual

Always returns false.

Reimplemented from DtAircraftFuelConsumptionModel.


The documentation for this class was generated from the following file:

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)