ding0.core.powerflow package

Module contents

class ding0.core.powerflow.PFConfigDing0(**kwargs)[source]

Bases: object

Defines the PF scenario configuration

Parameters:

Note

This class can be called as follows:

  1. With scenarios and timeranges:

    scenarios = ['scn_1', ...,  'scn_n'],
    timeranges= [timerange_1, ..., timerange_n]
    
  2. With scenarios, start time and count of timesteps:

    scenarios = ['scn_1', ...,  'scn_n'],
    timesteps_count = m,
    timestep_start = datetime()
    

(in this case, n timeranges with m timesteps starting from datetime will be created)

resolution

Returns resolution

scenarios

Returns a generator for iterating over PF scenarios

srid

Returns SRID

timesteps

Returns a generator for iterating over PF timesteps

ding0.core.powerflow.q_sign(reactive_power_mode_string, sign_convention)[source]

Gets the correct sign for Q time series given ‘inductive’ and ‘capacitive’ and the ‘generator’ or ‘load’ convention.

Parameters:
  • reactive_power_mode_string (str) – Either ‘inductive’ or ‘capacitive’
  • sign_convention (str) – Either ‘load’ or ‘generator’
Returns:

obj: int : +1 or -1 – A sign to mulitply to Q time sereis