RCAIDE.Library.Methods.Powertrain.Distributors.Electrical_Bus.initialize_bus_properties

initialize_bus_properties#

initialize_bus_properties(bus)[source]#

Initializes the bus electrical properties based on what is appended onto the bus.

Parameters:

bus (ElectricalBus) –

The electrical bus component with the following attributes:
  • battery_moduleslist

    List of battery modules connected to the bus

  • battery_module_electric_configurationstr

    Configuration of battery modules (‘Series’ or ‘Parallel’)

  • fuel_cell_stackslist

    List of fuel cell stacks connected to the bus

  • fuel_cell_stack_electric_configurationstr

    Configuration of fuel cell stacks (‘Series’ or ‘Parallel’)

Returns:

This function modifies the bus object in-place, setting the following attributes:
  • voltagefloat

    Bus voltage [V]

  • nominal_capacityfloat

    Nominal capacity [Ah]

  • maximum_energyfloat

    Maximum energy storage capacity [J]

Return type:

None

Notes

This function calculates the electrical properties of the bus based on the connected energy sources (battery modules and fuel cell stacks). It handles both series and parallel configurations.

For battery modules:
  • In series configuration: voltages add, capacity is the maximum of all modules

  • In parallel configuration: voltage is the maximum voltage of all modules, capacities add

For fuel cell stacks:
  • In series configuration: voltages add

  • In parallel configuration: voltage is the maximum voltage of all stacks

The function first computes properties for each individual module/stack by calling their respective property computation functions.