Loads

Load cases

uot.AbstractLoadCase

class AbstractLoadCase(spec, network)

Bases: uot.Object

Interface with common functionality for representing loads acting on a power network

Synopsis:

obj = uot.AbstractLoadCase(spec,network)
Parameters:
  • spec (uot.AbstractLoadCaseSpec) – Load case specification
  • network (uot.AbstractNetwork) – Network on which the loads act
pf_abs_tol = '1e-9'

Absolute tolerance for solving power flow

pf_max_iter = '30'

Maximal number of iterations for solving power flow

SolvePowerFlow(obj, u_pcc_array, t_pcc_array)

Solve power flow for the load case acting on the network.

Synopsis:

[U_array,T_array, p_pcc_array, q_pcc_array] = load_case.SolvePowerFlow(u_pcc_array,t_pcc_array)
Description:
This function uses the Zbus iterative method [Bazrafshan2018a] to solve the power flow problem.
Parameters:
  • u_pcc_array (double) – Array with voltage magnitude at the PCC
  • t_pcc_array (double) – Array with phase at the PCC
Returns:

  • U_array (double) - Phase-consistent array (n_bus,n_phase,n_timestep) with voltage magnitudes
  • T_array (double) - Phase-consistent array (n_bus,n_phase,n_timestep) with voltage angles
  • p_pcc_array (double) - Array (n_timestep,n_phase_pcc) with active power injection at the PCC
  • q_pcc_array (double) - Array (n_timestep,n_phase_pcc) with reactive power injection at the PCC