spice_ev.report.split_feedin

spice_ev.report.split_feedin(grid, generation, cs_sum, round_to_places=3)

Split feed-in to grid into local power generation, V2G and battery for one time step.

Order:

  1. feed-in is provided by local generation first

  2. feed-in not locally generated comes from discharging vehicles first

  3. rest of feed-in must come from stationary battery

Parameters:
  • grid (float) – current total feed-in at grid connector at time step

  • generation (float) – current generation (e.g. PV) power at time step (as negative value)

  • cs_sum (float) – aggregated power of discharging vehicles at grid connector at time step

  • round_to_places (int) – decimal places, that each value in the result list should be rounded to

Returns:

list of feed-in to grid split into generation-, V2G- and battery-feed-in; in that order

Return type:

list