rl-institut / simbev

MIT License
10 stars 4 forks source link

Wrong consumption in PHEV trips with full discharge #26

Closed nesnoj closed 3 years ago

nesnoj commented 3 years ago

This came up when feeding a run into spiceEV (thanks to @stefansc1 for spiceEV's sanity checks!).

With default_single scenario with changed config: simbev_config.txt (txt instead of cfg as github doesn't support this extension) there're some lines which show implausible numbers:

car_type bat_cap location netto_charging_capacity SoC_start SoC_end chargingdemand charge_time park_start park_end drive_start drive_end consumption
... ... ... ... ... ... ... ... ... ... ... ... ...
59 phev_luxury 40 driving 0.0 1.0 0.0 0.0 0 0 0 937 956 106.20382399999998
... ... ... ... ... ... ... ... ... ... ... ... ...

Even if it is somewhat realistic that the EV uses up the entire capacity (is this supposed?), the consumption is flawed and should be 40.

Sometimes, this also occurs with phev_medium and phev_mini but seems that only PHEVs are affected, BEV not.

Ideas, @timroepcke ?

nesnoj commented 3 years ago

df55f094661795ed04082bba2ccec5a74f328072 seems to solve this, thanks @timroepcke !