Production#

class relsad.network.components.Production(name: str, bus: relsad.network.components.Bus.Bus, pmax: float = 10, qmax: float = 10)[source]#

Common class for production

name#

Name of the production unit

Type

string

bus#

The bus the production unit is connected to

Type

Bus

pprod_data#

Array of active production data

Type

np.ndarray

qprod_data#

Array of reactive production data

Type

np.ndarray

pprod#

The active power produced by the production unit [MW]

Type

float

qprod#

The reactive power produced by the production unit [MVar]

Type

float

pmax#

The maximum active power that can be produced by the production unit [MW]

Type

float

qmax#

The maximum reactive power that can be produced by the production unit [MVar]

Type

float

history#

Dictonary attribute that stores the historic variables

Type

dict

add_prod_data(pprod_data, qprod_data)[source]#

Adds production data to the production component

prepare_prod_data(time_indices)[source]#

Prepares the production data for the current time step configuration

add_prod(pprod, qprod)[source]#

Adds production to the bus

set_prod(curr_time)[source]#

Decides how much active and reactive power that will be produced

update_bus_prod()[source]#

Updates the production on the bus with the amount of generated active and reactive power Sets the active production at the bus equal the active production at the bus minus the generated active power Sets the reactive production at the bus equal the reactive production at the bus minus the generated reactive power

reset_prod()[source]#

Resets the active and reactive production

update_fail_status()[source]#

Updates the fail status

update_history(curr_time)[source]#

Updates the history variables

get_history(attribute)[source]#

Returns the history variables of an attribute

add_random_instance(random_gen)[source]#

Adds global random seed

print_status()[source]#

Prints the status

reset_status()[source]#

Resets and sets the status of the class parameters

Production.add_prod(pprod, qprod)

Adds production to the bus

Production.add_prod_data(pprod_data[, ...])

Adds production data to the production component

Production.add_random_instance(random_gen)

Adds global random seed

Production.get_history(attribute)

Returns the history variables of an attribute

Production.prepare_prod_data(time_indices)

Prepares the production data for the current time step configuration

Production.print_status()

Prints the status

Production.reset_prod()

Resets the active and reactive production

Production.reset_status(save_flag)

Resets and sets the status of the class parameters

Production.set_prod(inc_idx)

Decides how much active and reactive power that will be produced

Production.update_bus_prod()

Updates the production on the bus with the amount of generated active and reactive power Sets the active production at the bus equal the active production at the bus minus the generated active power Sets the reactive production at the bus equal the reactive production at the bus minus the generated reactive power

Production.update_fail_status(dt)

Updates the fail status

Production.update_history(prev_time, ...)

Updates the history variables

Production.ps_random