spice_ev.loading_curve.LoadingCurve
- class spice_ev.loading_curve.LoadingCurve(points)
LoadingCurve class
The loading curve is described by a 2D graph with given known points. Values between known points are computed by linear interpolation.
x-axis: state of charge [0 - 1]
y-axis: possible charging power in kW [0 - ∞ kW]
- __init__(points)
Methods
__init__(points)clamped(max_power[, pre_scale, post_scale])Return a new instance with clamped power.
get_section_boundary(soc)Find linear section where given SOC value is located.
power_from_soc(soc)Perform a lookup.