echo.models.thermal.base module
- class echo.models.thermal.base.ThermalNode(uid: str = NOTHING, node_name: str = NOTHING, ports: dict[str, Port] = NOTHING, objective: en.numeric_expr.NumericExpression | float = 0, loss_factor: float = 0, gain_factor: float = 0, temp_to_energy_coef: float = 1, initial_internal_temp: float = 0, internal_temp: str = '', is_gain: str = '', losses: str = '', gains: str = '', *, temp_ub: dict, temp_lb: dict, external_temp: dict)
Bases:
NodeA thermal node has an internal temperature variable, which can be bounded. It can have any number of ports for heating (importing) or cooling (export). All the ports are related to temp by an energy balance constraint.
- 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_energy_balance_constraint(model: EchoConcreteModel) None
- create_and_bound_temp_vars(model: EchoConcreteModel) None
- external_temp: dict
- gain_factor: float
- gains: str
- initial_internal_temp: float
- internal_temp: str
- is_gain: str
- loss_and_gain_constraints_and_variables(model: EchoConcreteModel) None
- loss_factor: float
- losses: str
- temp_lb: dict
- temp_to_energy_coef: float
- temp_ub: dict