Default demand_kwh = 1518 (annualised) so dad's hourly P1 passes through unscaled

This commit is contained in:
Michiel Berger 2026-05-01 09:37:21 +02:00
parent 093605be2e
commit af55fb33dd

View file

@ -322,10 +322,13 @@ app = Flask(__name__)
DEFAULTS = dict(
# Window: 2025-01-01 → 2025-09-01 (8 months of dad's actual data with
# matching 2025 prices + solar). Net consumption over those 8 months
# is 1010 kWh; setting demand_kwh = 1010 gives scale factor 1.0 so the
# P1 series passes through unscaled.
demand_kwh=1010.0, retail=0.25, pv_kwp=0.0, pv_yield=875.0,
# matching 2025 prices + solar). The simulator scales demand by
# demand_kwh / ANNUAL_DEMAND_BASE; ANNUAL_DEMAND_BASE annualises the
# 8-month window's 1010 kWh → 1518 kWh-equivalent/yr, so set the
# default to 1518 to keep the per-hour P1 values unscaled (scale = 1.0).
# Dad's actual full-year net is 2351 kWh (from his complete CSV) — so
# using 1518 effectively represents 'an 8-month-extrapolated 2025 year'.
demand_kwh=1518.0, retail=0.25, pv_kwp=0.0, pv_yield=875.0,
fixed_rate=False, saldering=False, eta=0.88, inflation=0.03,
export_rate=-0.106,
)