test_simpleBatteryFault

test_simpleBatteryFault.test_storage_limits(storedChargeInit, netPower_1, netPower_2, batteryCapacity, faultCapacityRatio)[source]

Validation Test Description

  1. Check if the battery capacity matches its nominal value when a fault occurs.

  2. Verify that the charged capacity does not exceed the faulted capacity or drop below zero.

Parameters:
  • storedChargeInit – [W] Initial stored charge in the battery.

  • netPower_1 – [W-s] Power input to the battery.

  • netPower_2 – [W-s] Power input to the battery.

  • batteryCapacity – [W] Battery capacity.

  • faultCapacityRatio – [-] Fault capacity ratio.

Returns:

void