eelib.core.devices.charging_station.charging_station_model

eElib charging station model is built to manage the charging processes of EVs.

Author: elenia@TUBS
Copyright 2024 elenia
This file is part of eELib, which is free software under the terms of the GNU GPL Version 3.

Module Contents

Classes

ChargingStation

Models a charging station for electric vehicles of different types.

class ChargingStation(eid: 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: int = 60 * 15)

Models a charging station for electric vehicles of different types.

_VALID_PARAMETERS
eid
p_rated
output_type = "'AC'"
discharge_efficiency = '1.0'
charge_efficiency = '1.0'
voltage_control
ev_data: dict[str:EVData]
p_set
p = '0'
q = '0'
p_device
p_min = '0'
p_max = '0'
step_size = '900'
timestep = '0'
classmethod get_valid_parameters() dict

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

_calc_current_efficiency()

For the current timestep and based on the active power flow calculate the present efficiency for the charging station.

step(timestep: int)

Performs simulation step of eELib cs model, using the power limits, set values and assigning power to charged cars.

Parameters:

timestep (int) – Current simulation time in seconds