Class in Zendir.Classes | Inherits from ThermalModel
Declaration
class FuelSourceThermalModel;
Description
A thermal model specifically designed for fuel tanks that uses the ideal gas law
to model temperature changes during fuel transfer operations. When fuel flows in
or out of a tank, the gas expansion or compression causes temperature changes
that this model captures using adiabatic process equations.
The model tracks the ullage volume (gas space above liquid propellant) and
computes pressure and temperature changes based on the ideal gas law (PV = nRT)
and adiabatic relations (T2/T1 = (V1/V2)^(gamma-1)).
Temperature (K) of incoming propellant during fill. When > 0, used withfor training-grade inlet enthalpy: ṁ·cp·(T_in − T_gas).Default 0 disables this term (preserves legacy compression-only ullage behaviour); transfer/fill presets e.g.sets a positive inlet temperature.
The net power of the object that this model is attached to,for thermal calculations. This is the total power generatedminus the total power lost through radiation and is used forthe calculation of the transfer.
The total amount of power generated internally by the objectthat this model is attached to, for thermal calculations.Positive for heating, negative for cooling (e.g. fuel tank gas expansion).
Initialises the ullage state based on the current fuel source configuration.This calculates the initial ullage volume and gas mass for subsequentthermodynamic calculations.
Loads the thermal model for a lookup analysis model. This willattempt to load the CSV file specified in the file path. Thisassumes the first column is time and the ‘indexed’ column is temperature.