RCAIDE.Library.Methods.Powertrain.Sources.Batteries.Common.size_module_from_energy_and_power

size_module_from_energy_and_power#

size_module_from_energy_and_power(battery, energy, power)[source]#

Calculates the battery mass, maximum energy, and maximum power based on energy and power requirements.

Parameters:
  • battery (BatteryModule) –

    The battery module with the following attributes:
    • cell.specific_energyfloat

      Specific energy of the cell [J/kg]

    • cell.specific_powerfloat

      Specific power of the cell [W/kg]

    • mass_propertiesMassProperties

      Object to store the calculated mass

  • energy (float) – Required energy capacity [J]

  • power (float) – Required power output [W]

Returns:

This function modifies the battery object in-place, setting the following attributes:
  • mass_properties.massfloat

    Calculated mass of the battery module [kg]

  • maximum_energyfloat

    Maximum energy capacity of the battery module [J]

  • maximum_powerfloat

    Maximum power output of the battery module [W]

Return type:

None

Notes

This function determines the battery mass needed to meet both energy and power requirements. It calculates two potential masses:

  1. Energy-limited mass: The mass required to meet the energy requirement

  2. Power-limited mass: The mass required to meet the power requirement

The function then selects the larger of these two masses to ensure that both requirements are satisfied. The maximum energy and power capabilities are then calculated based on the selected mass and the specific energy/power characteristics.

Major Assumptions
  • Constant specific energy and power values

  • Linear scaling of energy and power with mass

  • No temperature or state-of-charge effects on performance