prepare_system#

relsad.simulation.prepare_system(power_system: relsad.network.systems.PowerSystem.PowerSystem, start_time: relsad.Time.TimeStamp, stop_time: relsad.Time.TimeStamp, time_step: relsad.Time.Time, time_unit: relsad.Time.TimeUnit)[source]#
Prepares the power system for a simulation by:
  • Creating system sections based on switches

  • Defining the simulation time increments

  • Interpolating load and production data based on the time increments

Parameters
  • p_s (PowerSystem) – A PowerSystem element

  • start_time (TimeStamp) – The start time of the simulation/iteration

  • stop_time (TimeStamp) – The stop time of the simulation/iteration

  • time_step (Time) – A time step (1 hour, 2 hours, ect.)

  • time_unit (TimeUnit) – A time unit (hour, seconds, ect.)

Returns

Array containing the time increments of the simulation

Return type

time_array