echo.models.electrical.inverter module

class echo.models.electrical.inverter.Inverter(uid: str = NOTHING, node_name: str = NOTHING, ports: dict[str, Port] = NOTHING, objective: en.numeric_expr.NumericExpression | float = 0, max_import: float | None = None, max_export: float | None = None, dc_ac_efficiency: float = 1.0, ac_dc_efficiency: float = 1.0, ac_port_name: str | None = None, dc_port_names: list[str] = NOTHING)

Bases: Node

An inverter is a node with one AC port and at least one DC port. Flows from AC to DC, and DC to AC, are subject to conversion efficiencies.

Ports can be specified at construction time using the ac_port_name and dc_ports_names or the ports can be added later by making one call to add_ac_port and as many calls to add_dc_port as required. It is best not to mix these two approaches.

When creating ports through the constructor, the ports will be assigned default uids. If you need to flexibility of specifying uids for the ports then use the add_ac_port and add_dc_ports remembering to supply uid values.

ac_dc_efficiency: float
ac_port_name: str | None
add_ac_port(port_name: str, uid: str | None = None) → None
add_dc_port(port_name: str, uid: str | None = None) → None
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.

dc_ac_efficiency: float
dc_port_names: list[str]
max_export: float | None
max_import: float | None
verify_node() → None

Checks there is at least one port associated with this node.

Raises:

ConfigurationError – If there are no ports present on this node.