Skip to content

Commit

Permalink
new function for air conditioning loses #6
Browse files Browse the repository at this point in the history
  • Loading branch information
Tk1999s committed Feb 9, 2022
1 parent 669a165 commit adc1572
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions simbev/simbevMiD.py
Original file line number Diff line number Diff line change
Expand Up @@ -1161,3 +1161,19 @@ def fast_charging_capacity(
fast_charging_capacity = 350

return fast_charging_capacity

# Definition of variable:
# temperature_carinside: temperature
# energie use cooling/heating: KWh verbraucht pro Einheit??


def total_consumption(temperature, timesteps, temperature_carinside, energy_use_cooling, energy_use_heating,
con, distance):
temperature_diff = temperature_carinside - temperature

if temperature_diff > 0:
extra_kwh = temperature_diff * energy_use_heating * timesteps
else:
extra_kwh = (temperature_diff * -1) * energy_use_cooling * timesteps
consumption = distance * con + extra_kwh
return consumption

0 comments on commit adc1572

Please sign in to comment.