RCAIDE.Library.Methods.Powertrain.Distributors.Electrical_Bus.append_bus_conditions
append_bus_conditions#
- append_bus_conditions(bus, segment)[source]#
Appends conditions for the electrical bus to the segment’s energy conditions dictionary.
- Parameters:
bus (RCAIDE.Library.Components.Distributors.ElectricalBus)
- Returns:
This function modifies the segment.state.conditions.energy dictionary in-place.
- Return type:
None
Notes
This function creates a Conditions object for the electrical bus within the segment’s energy conditions dictionary, indexed by the bus tag. It initializes various bus properties as zero arrays with the same length as the segment’s state vector.
- The initialized properties include:
Battery module conditions
Fuel cell stack conditions
Power draw
State of charge and depth of discharge
Current draw and charging current
Voltage (open circuit and under load)
Heat energy generated
Efficiency
Temperature
Energy
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.
- append_bus_segment_conditions(bus, conditions, segment)[source]#
Sets the initial bus properties at the start of each segment based on the last point from the previous segment.
- Parameters:
bus (ElectricalBus) – The electrical bus 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.
- Return type:
None
Notes
This function initializes the power draw for the electrical bus at the start of a new segment by transferring thermal power draw information from the previous segment. It handles power requirements from battery thermal management systems (BTMS) and heat exchangers.
- For segments with initial conditions from a previous segment, the function also:
Sets the battery discharge flag based on the segment type (false for recharge segments)
Transfers the final energy state from the previous segment to the initial state of the current segment
This ensures continuity of energy states between mission segments.
- Major Assumptions
Battery recharge segments are identified by their class type
Power draw is initialized from thermal management components