Simulation-only plants¶
These plants carry detailed truth state that is intentionally excluded from Manta's differentiable estimation/control model.
manta.simulation.OCVCurve
dataclass
¶
Calibrated piecewise-linear cell OCV curve.
Evaluation extrapolates outside [0, 1] rather than clamping. Normal
pack stepping rejects an SOC transition outside that range, while direct
evaluation remains useful for diagnosing corrupt restored state.
integral ¶
Integral of OCV dSOC from zero to soc (V).
Source code in manta/simulation/battery.py
manta.simulation.BatteryCellFaults
dataclass
¶
BatteryCellFaults(open_cell=False, short_cell=False, high_resistance=False, capacity_loss_fraction=0.0, forced_overtemperature=False)
Independent, composable fault injection for one simulation step.
manta.simulation.BatteryCell
dataclass
¶
BatteryCell(usable_capacity_ah=20.0, internal_resistance=0.003, short_resistance=0.0005, high_resistance_multiplier=10.0, overtemperature_resistance_multiplier=2.0, reference_temperature=298.15, maximum_temperature=333.15, resistance_temperature_coefficient=0.003, maximum_short_current=1000.0, self_discharge_current=0.0, self_discharge_log_sigma=0.0, ocv_curve=OCVCurve())
Configuration for one cell; mutable SOC lives in BatteryPackState.
manta.simulation.PassiveBalancer
dataclass
¶
One BMS-commanded passive shunt channel.
manta.simulation.BMSPlant ¶
Commanded contactor and trip latch, without protection policy.
manta.simulation.BatteryStepInput
dataclass
¶
BatteryStepInput(requested_series_current, cell_temperatures, cell_faults, balance_enabled, contactor_command=True, trip_command=False, reset_command=False)
Complete deterministic input for one battery-plant tick.
manta.simulation.BatteryTelemetry
dataclass
¶
BatteryTelemetry(terminal_voltage, pack_ocv, requested_series_current, series_current, contactor_closed, tripped, cell_soc, cell_ocv, cell_terminal_voltage, cell_current, balance_current, cell_loss_power, balance_loss_power, pack_loss_power, chemical_power, output_power, energy_residual, minimum_soc, maximum_soc, soc_imbalance, any_open_cell, any_shorted_cell, any_overtemperature)
supply_inputs ¶
Control overlay for A3's ExternalDCSupply Manta boundary.
thermal_inputs ¶
Map per-cell losses into existing ThermalMass.heat_input.
Source code in manta/simulation/battery.py
manta.simulation.SeriesBatteryPack ¶
Simulation-only series battery pack with explicit snapshot/replay.
Source code in manta/simulation/battery.py
preview ¶
step ¶
Advance exactly one explicit simulation tick.