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)).


Properties

DeclaredDescription
FuelDensityThe density of the liquid fuel in the tank.
GammaRatioThe heat capacity ratio (gamma = Cp/Cv) for the pressurant gas.
GasConstantThe specific gas constant for the pressurant gas (e.g., nitrogen, helium).
GasMassThe mass of pressurant gas in the ullage space, calculated frominitial conditions using the ideal gas law.
GasSpecificHeatThe specific heat capacity at constant pressure for the pressurant gas.
In_FuelAmountMsgInput fuel amount message from the linked fuel source.
InitialPressureThe initial pressure of the pressurant gas in the tank.
InitialUllageVolumeThe initial ullage volume when the model was initialised.
InletTemperatureTemperature (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.
MinimumUllageVolumeThe minimum ullage volume to prevent numerical instabilitieswhen the tank is nearly full.
Out_FuelThermalMsgOutput fuel thermal message containing the thermal and pressure dataproduced by the fuel thermal model.
TankPressureThe current tank pressure computed from the ideal gas law.
TankVolumeThe total volume of the fuel tank, calculated from tank geometry.
UllageVolumeThe current ullage volume (gas space above liquid propellant)
InheritedDescription
AnalysisModelThe analysis model type used for this thermal model, which determineshow the thermal calculations are performed.
EmissivityThe emissivity of the object that this model isattached to, for radiative heat transfer calculations.
EnableSpaceRadiationA flag whether to radiate any remaining heat as a remainder of thesurface area if no connections are present to space.
IdealTemperatureThe ideal temperature of the object that this model isattached to, for thermal management calculations.
IsEnabledIs true if the object is currently enabled.
NameThe display name or tag of this object.
NetPowerThe 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.
Out_ThermalMsgOutput thermal message containing the thermal data produced bythe system.
ParentThe currently attached parent object.
PowerGenerationThe 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).
SpecificHeatCapacityThe specific heat capacity of the object that this model isattached to, for thermal calculations.
SurfaceAreaThe total surface area of the object that this model isattached to, for radiative heat transfer calculations.
TemperatureThe current temperature of the object that this model isattached to.
TemperatureDotThe change in temperature of the object that this model isattached to, for thermal calculations over time.
ThermalConductivityThe thermal conductivity of the object that this model isattached to, for thermal calculations.
ThicknessThe thickness of the object that this model isattached to, for thermal calculations.

Methods

DeclaredDescription
ConfigureAsHeliumApplies .
ConfigureAsHydrazineApplies .
ConfigureAsMmhN2o4Applies .
ConfigureAsNitrogenApplies .
ConfigureAsXenonApplies .
GetTankPressureGets the current tank pressure computed from the ideal gas law.
GetUllageVolumeGets the current ullage volume.
InitialiseUllageStateInitialises the ullage state based on the current fuel source configuration.This calculates the initial ullage volume and gas mass for subsequentthermodynamic calculations.
InheritedDescription
ConnectConnects this thermal model to another thermal model with the specifiedsurface area and connection type.
DisconnectDisconnects two thermal models, removing any thermal connections between them.
FindParentWithIDReturns an attached parent that satisfies the specified ID.
FindParentWithTypeReturns an attached parent that satisfies the specified type.
FindRootWithIDReturns a root object that satisfies the specified ID.
FindRootWithTypeReturns a root object that satisfies the specified type.
GetRootConnectionCountGets the number of thermal connections associated with the root objectthat this model is attached to.
GetRootModelsGets the thermal models associated with a given physical object, based onthe root object that this model is attached to.
GetTotalConnectionAreaGets the total connection area for a given thermal model.
InitialiseLoads 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.