add cyclic shift for EVs

This commit is contained in:
lisazeyen 2024-03-04 12:08:45 +01:00
parent f2ba96e148
commit d4bdf489c9

View File

@ -1573,11 +1573,18 @@ def add_EVs(
options["EV_upper_degree_factor"],
)
suffix = " land transport EV"
p_shifted = (p_set + cycling_shift(p_set, 1) + cycling_shift(p_set, 2)) / 3
cyclic_eff = p_set.div(p_shifted)
efficiency *= cyclic_eff
p_nom = electric_share * p_set.div(efficiency).max()
profile = p_set.div(efficiency) / p_set.div(efficiency).max()
profile = p_shifted.div(efficiency) / p_shifted.div(efficiency).max()
n.madd(
"Link",
nodes,