Table of Contents

Class ThrusterFuelModel

Namespace
NominalSystems.Classes
Assembly
NominalSystems.Classes.dll

[Nominal] A component model that is added onto a component to enable fuel consumption properties such as a thruster.


[UniverseParent(typeof(Thruster))]
public class ThrusterFuelModel : UniverseModel
Inheritance
ThrusterFuelModel

Constructors

ThrusterFuelModel()

Default constructor

protected ThrusterFuelModel()

Fields

DesiredFlowRate

The flow rate desired by the consumer.

[Unit(UnitType.KILOGRAM_PER_SECOND)]
[Range(0, 1.7976931348623157E+308)]
public double DesiredFlowRate

Field Value

double

FuelSource

The Fuel container attached to the node.

public FuelSource? FuelSource

Field Value

FuelSource

ProvidedFlowRate

The flow rate provided to the consumer.

[Unit(UnitType.KILOGRAM_PER_SECOND)]
[Range(0, 1.7976931348623157E+308)]
[ReadOnly]
public double ProvidedFlowRate

Field Value

double

SpecificHeatRatio

Heat ratio of the gas provided.

[Unit(UnitType.KILOGRAM_PER_SECOND)]
[Range(0, 1.7976931348623157E+308)]
public double SpecificHeatRatio

Field Value

double

TotalPressure

Total/Stagnation Pressure of the system.

[Unit(UnitType.PASCAL)]
public double TotalPressure

Field Value

double

TotalTemperature

Total/Stagnation Temperature of the system.

[Unit(UnitType.KELVIN)]
[Range(0, 1.7976931348623157E+308)]
public double TotalTemperature

Field Value

double

Methods

Attach(FuelSource?)

Attempts to find and attach the fuel node to a particular fuel source or finds a relevant fuel source.

public void Attach(FuelSource? source)

Parameters

source FuelSource

The fuel source to connect to

Detach()

Detaches the fuel model from the fuel source if it has already attempted to detach the fuel source.

public void Detach()

OnBegin(double)

Called when the object is beginning ticking for the first time. This is when the simulation calls the very first tick and will run before the update call.

protected override void OnBegin(double time)

Parameters

time double

[s] Current time of the simulation before the tick

OnFinish(double)

Called when the object is deleted from the simulation and can handle any cleanup of variables.

protected override void OnFinish(double time)

Parameters

time double

[s] The current clock time when deleted

OnUpdate(double, double)

Called when the object should update from the simulation tick. This will take in a time and a step, where the time is the time of the clock before updating the object.

protected override void OnUpdate(double time, double step)

Parameters

time double

[s] Current time of the simulation before the update

step double

[s] The time-step to update during this tick