File: PyViCareHeatCurveCalculation.py

package info (click to toggle)
pyvicare 2.55.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,560 kB
  • sloc: python: 4,867; sh: 5; makefile: 2
file content (16 lines) | stat: -rw-r--r-- 706 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# based on feedback in: https://github.com/somm15/PyViCare/issues/238

# gas burner and if device has roles "type:heatpump", "type:E3"
def heat_curve_formular_variant1(delta, inside, shift, slope):
    target_supply = (inside + shift - slope * delta
                     * (1.4347 + 0.021 * delta + 247.9
                        * pow(10, -6) * pow(delta, 2)))
    return target_supply


# heatpump has roles "type:heatpump" and with single circuit
def heat_curve_formular_variant2(delta, inside, shift, slope):
    target_supply = (inside + shift - slope * delta
                     * (1.148987 + 0.021 * delta + 247.9
                        * pow(10, -6) * pow(delta, 2)) + 5)
    return target_supply