suboptimumg.sweep.energy_grid#

class suboptimumg.sweep.energy_grid.EnergyGridSweeper(comp_data, config)[source]#

Bases: object

Energy-constrained grid characterizer.

Sweeps two design variables on a regular grid. At each grid point the optimal coast_trigger is found via bisection so that 22-lap endurance energy equals (pack capacity - buffer).

Parameters:
sweep(verbose=False, num_processes=None)[source]#

Run the full grid sweep with multiprocessing.

Parameters:
  • verbose (bool) – Print per-point progress info.

  • num_processes (int, optional) – Worker count. Defaults to CPU count.

Return type:

EnergyGridResults