Skip to content

JohnnyVi/HybridRechner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HybridRechner — PHEV Gewinnschwelle-Rechner

Beantwortet die Frage: Ab welchem Strompreis ist es gleich teuer, elektrisch statt mit Benzin zu fahren?


Funktionen

  • Break-Even Strompreis — die Hauptausgabe: der maximale Strompreis, bei dem das Fahren im Elektromodus immer noch billiger ist als mit Benzin
  • Kosten pro km Vergleich — Elektro vs. Benzin
  • Interaktives Diagramm — zeigt die Stromkurve vs. konstante Benzinkosten, mit Break-Even-Punkt und aktuellem Preis markiert
  • Profilverwaltung — Fahrzeugprofile speichern / laden / löschen (JSON)

Wie es funktioniert

Anforderungen

  • Python 3.10+
  • customtkinter ≥ 5.2
  • matplotlib ≥ 3.7

Lizenz

MIT


HybridRechner — PHEV Break-Even Calculator

Answers the question: At what electricity price does electric driving cost the same per km as driving on petrol?


Features

  • Break-Even Electricity Price — the key output: the maximum electricity price where EV mode is still cheaper than petrol
  • Cost per km comparison — electric vs. petrol at your current electricity price
  • Interactive chart — shows electric cost curve vs. constant petrol cost, with break-even point and current price marked
  • Profile management — save / load / delete vehicle profiles (JSON)

How It Works

Inputs (only 5 values needed):

Input Example Description
Petrol Price 1.75 €/L Current price at the pump
Petrol Consumption 5.8 L/100 km Consumption in hybrid/petrol mode
Electricity Price 0.32 €/kWh Your electricity price at home
Electric Consumption 17.5 kWh/100 km Consumption in electric mode
Charging Efficiency 90% Energy lost during charging

Key formula:

$$P_{break\text{-}even} = \frac{P_{petrol} \times V_{petrol}}{V_{electric} / \eta}$$

where $\eta$ = charging efficiency.

Example: With petrol at 1.75 €/L and 5.8 L/100 km, and electric at 17.5 kWh/100 km with 90% efficiency:

$$P_{break\text{-}even} = \frac{1.75 \times 5.8}{17.5 / 0.9} = \frac{10.15}{19.44} = 0.522\text{ €/kWh}$$

→ As long as your electricity costs less than 0.52 €/kWh, driving electric is cheaper than petrol!

Quick Start

pip install -r requirements.txt
python main.py

Requirements

  • Python 3.10+
  • customtkinter ≥ 5.2
  • matplotlib ≥ 3.7

Running Tests

pip install pytest
python -m pytest tests/ -v

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages