eelib.core.devices.charging_station.charging_station_model
eElib charging station model is built to manage the charging processes of EVs.
Module Contents
Classes
Models a charging station for electric vehicles of different types. |
- class ChargingStation(ename: str, p_rated: int, output_type: str = 'AC', charge_efficiency: float = 1.0, discharge_efficiency: float = 1.0, cos_phi: float = 1.0, step_size=60 * 15)
Models a charging station for electric vehicles of different types.
- _VALID_PARAMETERS
- classmethod get_valid_parameters()
Returns dictionary containing valid parameter types and values.
- Returns:
valid parameters for this model
- Return type:
dict
- _calc_power_limits()
Calculate the power limits for the charging station with the input thats coming from the electric vehicles.
- Raises:
ValueError – If the power limits of at least one connected ev do not work together.
- _distribute_charging_power()
Distributes the charging power self.p across all connected cars. For this, the distribution is done evenly unless the power limits of the cars are exceeded.
- Raises:
ValueError – If Vehicles charging power does not match the power of the charging station
ValueError – If set charging power does not fit the power limits of the connected evs
ValueError – If charging station has power value although no car is connected
- _calc_current_efficiency()
For the current timestep and based on the active power flow calculate the present efficiency for the charging station.
- step(time)
Performs simulation step of eELib cs model, using the power limits, set values and assigning power to charged cars.
- Parameters:
time (int) – Current simulation time in seconds