echo.models.electrical.ev.ev_with_profile module

class echo.models.electrical.ev.ev_with_profile.EVWithProfile(uid: str = NOTHING, node_name: str = NOTHING, ports: dict[str, Port] = NOTHING, objective: en.numeric_expr.NumericExpression | float = 0, charge_mode: EVChargeMode = EVChargeMode.DemandProfile, port_name: str = 'demand', port_uid: str = NOTHING, charging_power_limit: float = None, set_stateful_attrs_at_init: bool = True, demand: dict | ndarray | list | None = None)

Bases: Node

An EV defined through a timeseries profile of demand.

This EV object is to be used when real world (or modelled) charging data is available; essentially acting as a pure load.

charging_power_limit (float | None): The maximum charging power of the vehicle. Used for data sanity checks only.

Positive float in units of power.

demand (dict[str, float] | ArrayType | list[float] | None): The demand data for the EV. Values must be positive

floats. Values in units of power.

set_stateful_attrs_at_init (bool | None): Set attributes with state at object instantiation (True) or

defer to later (False). If deferring to later, self.set_stateful_attrs() must be used to set these attributes. Attributes with state are available and initial_state_of_charge. Defaults to True.

charge_mode: EVChargeMode
charging_power_limit: float
demand: dict | ndarray | list | None
port_name: str
port_uid: str
set_stateful_attrs(demand: dict | ndarray | list) → None

Injects attributes with state into EV node and ports.

Parameters:

demand – Timeseries data specifying if the load from the EV charging.

Returns:

None

set_stateful_attrs_at_init: bool
verify_node() → None

Checks data with state has been set for the node and each port.

Parameters:

None

Returns:

None