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.
public class ThrusterFuelModel : UniverseModel<Thruster>
- 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
FuelSource
The Fuel container attached to the node.
public FuelSource? FuelSource
Field Value
ProvidedFlowRate
The flow rate provided to the consumer.
[Unit(UnitType.KILOGRAM_PER_SECOND)]
[Range(0, 1.7976931348623157E+308)]
[ReadOnly]
public double ProvidedFlowRate
Field Value
SpecificHeatRatio
Heat ratio of the gas provided.
[Unit(UnitType.KILOGRAM_PER_SECOND)]
[Range(0, 1.7976931348623157E+308)]
public double SpecificHeatRatio
Field Value
TotalPressure
Total/Stagnation Pressure of the system.
[Unit(UnitType.PASCAL)]
public double TotalPressure
Field Value
TotalTemperature
Total/Stagnation Temperature of the system.
[Unit(UnitType.KELVIN)]
[Range(0, 1.7976931348623157E+308)]
public double TotalTemperature
Field Value
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
FuelSourceThe 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)