akkudoktoreos.devices.genetic.heatpump.Heatpump

class akkudoktoreos.devices.genetic.heatpump.Heatpump(max_heat_output: int, hours: int)

Bases: object

__init__(max_heat_output: int, hours: int)

Methods

__init__(max_heat_output, hours)

calculate_cop(outside_temperature_celsius)

Calculate the coefficient of performance (COP) based on outside temperature.

calculate_heat_power(outside_temperature_celsius)

Calculate electrical power based on outside temperature (degree Celsius).

calculate_heating_output(...)

Calculate the heating output in Watts based on outside temperature in degree Celsius.

simulate_24h(temperatures)

Simulate power data for 24 hours based on provided temperatures.

Attributes

BASE_HEAT_POWER

Base heating power value

COP_BASE

Base COP value

COP_COEFFICIENT

COP increase per degree

MAX_HEAT_OUTPUT

Maximum heating power in watts

TEMPERATURE_COEFFICIENT

Coefficient for temperature

MAX_HEAT_OUTPUT = 5000

Maximum heating power in watts

BASE_HEAT_POWER = 235.0

Base heating power value

TEMPERATURE_COEFFICIENT = -11.645

Coefficient for temperature

COP_BASE = 3.0

Base COP value

COP_COEFFICIENT = 0.1

COP increase per degree

__init__(max_heat_output: int, hours: int)
__check_outside_temperature_range__(temp_celsius: float) bool

Check if temperature is in valid range between -100 and 100 degree Celsius.

Parameters:

temp_celsius – Temperature in degree Celsius

Returns:

True if in range

Return type:

bool

calculate_cop(outside_temperature_celsius: float) float

Calculate the coefficient of performance (COP) based on outside temperature.

Supported temperate range -100 degree Celsius to 100 degree Celsius.

Parameters:

outside_temperature_celsius – Outside temperature in degree Celsius

Raises:

ValueError – If outside temperature isn’t range.

Returns:

Calculated COP based on temperature

Return type:

cop

calculate_heating_output(outside_temperature_celsius: float) float

Calculate the heating output in Watts based on outside temperature in degree Celsius.

Temperature range must be between -100 and 100 degree Celsius.

Parameters:

outside_temperature_celsius – Outside temperature in degree Celsius

Raises:

ValueError – Raised if outside temperature isn’t in described range.

Returns:

Calculated heating output in Watts.

Return type:

heating output

calculate_heat_power(outside_temperature_celsius: float) float

Calculate electrical power based on outside temperature (degree Celsius).

Parameters:

outside_temperature_celsius – Temperature in range -100 to 100 degree Celsius.

Raises:

ValueError – Raised if temperature isn’t in described range

Returns:

Calculated electrical power in Watt.

Return type:

power

simulate_24h(temperatures: Sequence[float]) List[float]

Simulate power data for 24 hours based on provided temperatures.