1 # Copyright (C) 2010-2011 Richard Lincoln
3 # Permission is hereby granted, free of charge, to any person obtaining a copy
4 # of this software and associated documentation files (the "Software"), to
5 # deal in the Software without restriction, including without limitation the
6 # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
7 # sell copies of the Software, and to permit persons to whom the Software is
8 # furnished to do so, subject to the following conditions:
10 # The above copyright notice and this permission notice shall be included in
11 # all copies or substantial portions of the Software.
13 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
18 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21 from CIM14
.IEC61970
.Dynamics
.ExcitationSystems
.ExcitationSystem
import ExcitationSystem
23 class ExcST4B(ExcitationSystem
):
24 """IEEE (2005) ST4B Model This model is a variation of the Type ST3A model, with a proportional plus integral (PI) regulator block replacing the lag-lead regulator characteristic that was in the ST3A model. Both potential- and compoundsource rectifier excitation systems are modeled. The PI regulator blocks have nonwindup limits that are represented. The voltage regulator of this model is typically implemented digitally.
27 def __init__(self
, kp
=0.0, kim
=0.0, vbmax
=0.0, kc
=0.0, kpr
=0.0, xl
=0.0, vgmax
=0.0, vmmin
=0.0, kg
=0.0, vmmax
=0.0, tr
=0.0, ta
=0.0, kpm
=0.0, angp
=0.0, vrmin
=0.0, kir
=0.0, vrmax
=0.0, ki
=0.0, *args
, **kw_args
):
28 """Initialises a new 'ExcST4B' instance.
30 @param kp: Potential source gain (> 0.)
31 @param kim: Integral gain of inner loop regulator
32 @param vbmax: Maximum excitation voltage (> 0.)
33 @param kc: Exciter regulation factor (>= 0.)
34 @param kpr: AVR proportional gain
35 @param xl: P-bar leakage reactance (>= 0.)
36 @param vgmax: Maximum inner loop feedback gain (>= 0.)
37 @param vmmin: Minimum inner loop regulator output
38 @param kg: Inner loop feedback gain (>= 0.)
39 @param vmmax: Maximum inner loop regulator output
40 @param tr: Voltage transducer time constant (>= 0.)
41 @param ta: AVR time constant (>= 0.)
42 @param kpm: Prop. gain of inner loop regulator
43 @param angp: Phase angle of potential source
44 @param vrmin: Minimum AVR output (< 0.)
45 @param kir: AVR Integral gain
46 @param vrmax: Maximum AVR output (> 0.)
47 @param ki: Current source gain (>= 0.)
49 #: Potential source gain (> 0.)
52 #: Integral gain of inner loop regulator
55 #: Maximum excitation voltage (> 0.)
58 #: Exciter regulation factor (>= 0.)
61 #: AVR proportional gain
64 #: P-bar leakage reactance (>= 0.)
67 #: Maximum inner loop feedback gain (>= 0.)
70 #: Minimum inner loop regulator output
73 #: Inner loop feedback gain (>= 0.)
76 #: Maximum inner loop regulator output
79 #: Voltage transducer time constant (>= 0.)
82 #: AVR time constant (>= 0.)
85 #: Prop. gain of inner loop regulator
88 #: Phase angle of potential source
91 #: Minimum AVR output (< 0.)
97 #: Maximum AVR output (> 0.)
100 #: Current source gain (>= 0.)
103 super(ExcST4B
, self
).__init
__(*args
, **kw_args
)
105 _attrs
= ["kp", "kim", "vbmax", "kc", "kpr", "xl", "vgmax", "vmmin", "kg", "vmmax", "tr", "ta", "kpm", "angp", "vrmin", "kir", "vrmax", "ki"]
106 _attr_types
= {"kp": float, "kim": float, "vbmax": float, "kc": float, "kpr": float, "xl": float, "vgmax": float, "vmmin": float, "kg": float, "vmmax": float, "tr": float, "ta": float, "kpm": float, "angp": float, "vrmin": float, "kir": float, "vrmax": float, "ki": float}
107 _defaults
= {"kp": 0.0, "kim": 0.0, "vbmax": 0.0, "kc": 0.0, "kpr": 0.0, "xl": 0.0, "vgmax": 0.0, "vmmin": 0.0, "kg": 0.0, "vmmax": 0.0, "tr": 0.0, "ta": 0.0, "kpm": 0.0, "angp": 0.0, "vrmin": 0.0, "kir": 0.0, "vrmax": 0.0, "ki": 0.0}