RCAIDE.Library.Methods.Powertrain.Distributors.Fuel_Line.append_fuel_line_conditions

append_fuel_line_conditions#

append_fuel_line_conditions(fuel_line, segment)[source]#

Appends conditions for the fuel line to the segment’s energy conditions dictionary.

Parameters:

fuel_line (RCAIDE.Library.Components.Distributors.Fuel_Line)

Returns:

This function modifies the segment.state.conditions.energy dictionary in-place.

Return type:

None

Notes

This function creates a Conditions object for the fuel line within the segment’s energy conditions dictionary, indexed by the fuel line tag. It initializes various fuel line properties as zero arrays with the same length as the segment’s state vector.

The initialized properties include:
  • Heat energy generated

  • Efficiency

  • Temperature

  • Energy

  • Flow Rate

  • Regenerative power

For segments with an initial battery state of charge specified, the function also sets the initial energy and state of charge values accordingly.

See also

RCAIDE.Library.Methods.Powertrain.Distributors.Electrical_fuel_line.compute_fuel_line_conditions

append_fuel_line_segment_conditions(fuel_line, segment)[source]#

Sets the initial fuel line properties at the start of each segment based on the last point from the previous segment.

Parameters:
  • fuel_line (Fuel Line) – The fuel line component for which conditions are being initialized.

  • conditions (dict) – Dictionary containing conditions from the previous segment.

  • segment (Segment) – The current mission segment in which the bus is operating.

Returns:

  • None

  • This ensures continuity of energy states between mission segments.