RCAIDE.Library.Methods.Powertrain.Sources.Cryogenic_Tanks.append_cryogenic_tank_conditions

append_cryogenic_tank_conditions#

append_cryogenic_tank_conditions(cryogenic_tank, segment, bus)[source]#

Appends conditions data structure to cryogenic tank component for use during mission analysis.

Parameters:
  • cryogenic_tank (CryogenicTank) – The cryogenic tank component for which conditions are being initialized.

  • segment (Segment) – The mission segment in which the cryogenic tank is operating.

  • bus (Bus) – The energy bus connected to the cryogenic tank.

Return type:

None

Notes

This function initializes the conditions for a cryogenic tank component at the start of a mission segment. It creates a Conditions object for the cryogenic tank within the segment’s energy conditions dictionary, indexed by the bus 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 cryogenic tank’s performance and usage.