RCAIDE.Library.Methods.Powertrain.Sources.Fuel_Tanks.append_fuel_tank_conditions
append_fuel_tank_conditions#
- append_fuel_tank_conditions(fuel_tank, segment, fuel_line)[source]#
Appends initial conditions for fuel tank component during later mission analysis.
- Parameters:
fuel_tank (FuelTank) – The fuel tank component for which conditions are being initialized.
segment (Segment) – The mission segment in which the fuel tank is operating.
fuel_line (FuelLine) – The fuel line connected to the fuel tank.
- Return type:
None
Notes
This function initializes the conditions for a fuel tank component at the start of a mission segment. It creates a Conditions object for the fuel tank within the segment’s energy conditions dictionary, indexed by the fuel line tag and tank tag.
- The function initializes arrays for:
Mass flow rate [kg/s]
Mass [kg]
These arrays are initialized with ones of the same length as the segment’s state vector, which will be updated during mission analysis based on the fuel tank’s performance and fuel consumption.