echo.models.thermal.simple_heatpump_dualoutput module
- class echo.models.thermal.simple_heatpump_dualoutput.SimpleHeatPumpDualOutput(uid: str = NOTHING, node_name: str = NOTHING, ports: dict[str, Port] = NOTHING, objective: en.numeric_expr.NumericExpression | float = 0, max_cooling_capacity: float | None = None, max_heating_capacity: float | None = None, heating_cop_time_series: dict | None = None, cooling_cop_time_series: dict | None = None, heating_cop_time_series_ref: str | None = None, cooling_cop_time_series_ref: str | None = None, cooling_cop_constant: float = 1, heating_cop_constant: float = 1, thermal_output_port_ref: str = 'output', waste_heat_recovery_coeff: float = 1, electrical_input_port_ref: str = 'input', cooling_output_port_ref: str = 'cooling_output', heating_output_port_ref: str = 'heating_output')
Bases:
SimpleHeatPumpA simple dual output (four-pipe) heatpump model that uses predefined COP values for heating and cooling.
SimpleHeatPumpDualOutput has one input electrical port and two thermal ports: cooling_output (thermal Sink) and heating_output (thermal Source). In dual output configuration the heatpump can do heating and cooling simultaneously and independently. When heating and cooling simultaneously, the waste heat from cooling loop can be used in the heating loop.
The conversion of input electrical energy to heating or cooling output depends on provided coefficients of performance (COP) time series data.
- add_node_to_model(model: EchoConcreteModel, profile: DataFrame) None
Add this node to a concrete model.
- Parameters:
model – The concrete model to add the node to.
profile – The data associated with this node.
- apply_node_constraints(model: EchoConcreteModel) None
Apply constraints associated with this node to a concrete model.
Intended to be overridden in subclasses.
Define constraints as functions that returns a Constraint, EqualityExpression or InequalityExpression.
Define a subfunction of the form detailed in the example below, then apply with setattr. For example:
- def apply_node_constraints(self, model: EchoConcreteModel) -> None:
- def tellegen_node_rule(model: EchoConcreteModel, p: int, t:int) -> EqualityExpression:
a = 0 for port in node_ports.values():
a += getattr(model, port.port_name)[p, t]
return a == 0
node_ports = self.ports con_name = “reliability_con_” + self.node_name setattr(model, con_name, en.Constraint(model.Expansion, model.Time, rule=tellegen_node_rule))
- Parameters:
model – The model to add the constraints to.
- Returns:
None
- cooling_output_port_ref: str
- create_ports() None
- property delta_heat_flow: str
- electrical_input_port_ref: str
- property heating_out_adjusted: str
heating_out_adjusted variable represents amount of heat that is produced running the primary heating loop.
- heating_output_port_ref: str
- property recovered_waste_heat: str
- set_ports(electrical_input_port: FlexSink, cooling_output_port: FlexSink, heating_output_port: FlexSource) None
- waste_heat_recovery_coeff: float