NWH Aerodynamics
Search Results for

    Show / Hide Table of Contents

    Class EngineAircraftFuelConsumer

    Calculates fuel consumption for aircraft engines based on power output and efficiency. Consumes fuel proportionally to generated power and inversely to engine efficiency.

    Inheritance
    object
    Object
    Component
    Behaviour
    MonoBehaviour
    AircraftFuelConsumer
    EngineAircraftFuelConsumer
    Namespace: NWH.Aerodynamics.AircraftController.Propulsion
    Assembly: NWH.Aerodynamics.dll
    Syntax
    [RequireComponent(typeof(AircraftEngineBase))]
    public class EngineAircraftFuelConsumer : AircraftFuelConsumer

    Fields

    | Edit this page View Source

    consumptionMultiplier

    Multiplier for fuel consumption rate. Values less than 1 reduce consumption, values greater than 1 increase it. Use to adjust consumption without changing physical accuracy parameters.

    Declaration
    [Tooltip("In case you do not need physically accurate fuel consumption you can lower/rise the consumption in here.")]
    public float consumptionMultiplier
    Field Value
    Type Description
    float
    | Edit this page View Source

    efficiency

    Thermal efficiency of the engine (0 to 1). Represents the fraction of fuel energy converted to mechanical power. Typical values: 0.25-0.35 for piston engines, 0.30-0.40 for turbines. Lower efficiency means more fuel is wasted as heat.

    Declaration
    [Tooltip("Engine efficiency (in percent). 1 would mean that all the energy contained in fuel would go into output power.")]
    public float efficiency
    Field Value
    Type Description
    float

    Methods

    | Edit this page View Source

    GetConsumption()

    Calculates fuel consumption for the current frame based on engine power output.

    Declaration
    public override float GetConsumption()
    Returns
    Type Description
    float

    Fuel consumed in liters this frame.

    Overrides
    AircraftFuelConsumer.GetConsumption()
    Remarks

    Assumes fuel energy density of 36 MJ/L (typical for aviation gasoline). Converts engine power output to fuel consumption accounting for efficiency losses. Returns 0 if engine is not running.

    • Edit this page
    • View Source
    In this article
    Back to top Copyright © NWH - Vehicle Physics, Aerodynamics, Dynamic Water Physics