eelib.utils.ancillary_services.voltage_control_concepts

Methods for various concepts for voltage control of inverter-based devices.

Author: elenia@TUBS
Copyright 2024 elenia
This file is part of eELib, which is free software under the terms of the GNU GPL Version 3.

Module Contents

Functions

cos_phi_fix(p, cos_phi)

Calculate reactive power output from active power and a fix cosinus phi (power factor).

cos_phi_fix(p: float, cos_phi: float)

Calculate reactive power output from active power and a fix cosinus phi (power factor). Negative active power (generation!) leads to positive reactive power (inductive behaviour). Positive active power (demand!) leads to negative reactive power (capacitive behaviour).

Parameters:
  • p (float) – active power of device (>0 is demand, <0 is generation)

  • cos_phi (float) – power factor, value between 0 (not included!) and 1

Raises:

ValueError – If cos_phi is outside of range from 0 to 1

Returns:

reactive power output from device

Return type:

float