EVPark#

class relsad.network.components.EVPark(name: str, bus: relsad.network.components.Bus.Bus, num_ev_dist: relsad.Table.Table, inj_p_max: float = 0.072, inj_q_max: float = 0.072, E_max: float = 0.7, SOC_min: float = 0.2, SOC_max: float = 0.9, n_battery: float = 0.95, v2g_flag: bool = True)[source]#

Common class for batteries …

name#

Name of the EV park

Type

string

bus#

The bus the EV park is connected to

Type

Bus

num_ev_dist#

Statistical distribution that returns the amount of EVs available at a given time in the network

Type

Table

inj_p_max#

The active power charging/discharging capacity of the EV battery [MW]

Type

float

inj_q_max#

The reactive power discharging capacity of the EV battery [MVar]

Type

float

E_max#

The maximum energy capacity of an EV [Mwh]

Type

float

SOC_min#

The minimal state of charge level in the EV battery

Type

float

SOC_max#

The maximum state of charge level in the EV battery

Type

float

n_battery#

The EV battery efficiency

Type

float

v2g_flag#

A flag telling if the EV park contributes with V2G services or not

Type

bool

curr_p_demand#

Current demand of active power from the EV park [MW]

Type

float

curr_q_demand#

Current demand of reactive power from the EV park [MVar]

Type

float

curr_p_charge#

Current active power that are being charged/dischared [MW]

Type

float

curr_q_charge#

Current reactive power that are being charged/dischared [MVar]

Type

float

available_cars#

List of available cars in the EV park

Type

list

available_num_cars#

Number of available cars in the EV park

Type

int

num_cars#

Number of cars in the EV park

Type

int

num_consecutive_interruptions#

Number of consecutive interruptions experienced by the EV park

Type

int

park_interruption_fraction#

Fraction of interruption experienced by the EV park

Type

float

acc_available_num_cars#

Accumulated available number of cars in EV park

Type

int

acc_num_interruptions#

Accumulated number of interruptions experienced by the EV park

Type

float

acc_exp_interruptions#

Accumulated experienced interruptions in the EV park

Type

float

curr_exp_interruptions#

Current experienced interruptions in the EV park

Type

float

acc_exp_car_interruptions#

Accumulated experienced car interruptions in the EV park

Type

float

curr_exp_car_interruptions#

Current experienced car interruptions in the EV park

Type

float

curr_interruption_duration#

Current interruption duration experienced by the EV park

Type

Time

acc_interruption_duration#

Accumulated interruption duration experienced by the EV park

Type

Time

history#

Dictonary attribute that stores the historic variables

Type

dict

draw_current_state(hour_of_day)[source]#

Draws the number of EVs in the park at that time and the SOC level of each EV which will make the SOC level of the EV park

update(p, q, fail_duration, dt, hour_of_day)[source]#

Updates the EV park status for the current time step

get_curr_demand(dt)[source]#

Returns the current power demand of an EV

get_SOC()[source]#

Returns the SOC level of the EV park

get_ev_index()[source]#

Returns the power demand of av EV that is not met by the system

initialize_history()[source]#

Initializes the history variables

update_history(prev_time, curr_time, save_flag)[source]#

Updates the history variables

get_history(attribute)[source]#

Returns the history variables of an attribute

update_fail_status(dt)[source]#

Locks og unlocks the battery functionality based on failure states of the basestation

add_random_instance(random_gen)[source]#

Adds global random seed

print_status()[source]#

Prints the status of the EV park

reset_status(save_flag)[source]#

Resets and sets the status of the class parameters

EVPark.add_random_instance(random_gen)

Adds global random seed

EVPark.draw_current_state(hour_of_day)

Draws the number of EVs in the park at that time and the SOC level of each EV which will make the SOC level of the EV park

EVPark.get_SOC()

Returns the SOC level of the EV park

EVPark.get_curr_demand(dt)

Returns the current power demand of an EV

EVPark.get_ev_index()

Returns the power demand of an EV that is not met by the system

EVPark.get_history(attribute)

Returns the history variables of an attribute

EVPark.initialize_history()

Initializes the history variables

EVPark.print_status()

Prints the status of the EV park

EVPark.reset_status(save_flag)

Resets and sets the status of the class parameters

EVPark.update(p, q, fail_duration, dt, ...)

Updates the EV park status for the current time step

EVPark.update_fail_status(dt)

Locks og unlocks the battery functionality based on failure states of the basestation

EVPark.update_history(prev_time, curr_time, ...)

Updates the history variables

EVPark.handle

EVPark.marker

EVPark.ps_random

EVPark.size