rl-institut / simbev

MIT License
10 stars 4 forks source link

PHEV consumption is too high #34

Closed mosc5 closed 3 years ago

mosc5 commented 3 years ago

When trying to use SimBEV results in spiceEV, I get the following Error: SOC of vehicle phev_mini_00001_standing_t should not be negative. SOC is -0.6607458353040059, soc_delta was -13.214285714285715 Aborting simulation in timestep 128 (2021-01-05 07:45:00+01:00)

This is how it looks in the simbev-generated csv: car_type bat_cap location netto_charging_capacity SoC_start SoC_end chargingdemand charge_time park_start park_end drive_start drive_end consumption
6 phev_mini 14 6_home 0 0.063447679 0.063447679 0 0 82 119 0 0 0
7 phev_mini 14 driving 0 0.063447679 0 0 0 0 0 120 126 0.8882675
8 phev_mini 14 0_work 3.7 0 1 14 18 127 145 0 0 0
Relevant tech data: type max_charging_capacity_slow max_charging_capacity_fast battery_capacity energy_consumption
phev_mini 3.7 0 14 0.1425

The consumption in step 7 seems too high. Multiplying it with the energy consumption of the car type would result in 0.1266 instead of 0.0634. This creates a negative SoC in spiceEV.

mosc5 commented 3 years ago

My calculation seems to be wrong, as I've misunderstood what exactly the consumption means. It should be 0.0634 * 14 kWh = 0.8883. So the consumption seems to be correct, but the soc_delta in spiceEV is too high.

I'm gonna keep looking for the source of the spiceEV error message.

mosc5 commented 3 years ago

This is for now gonna be fixed in spice_EV by ignoring consumption that goes below 0 SoC.