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 ExcST3A(ExcitationSystem
):
24 """IEEE (1992/2005) ST3A Model Some static systems utilize a field voltage control loop to linearize the exciter control characteristic. This also makes the output independent of supply source variations until supply limitations are reached. These systems utilize a variety of controlled-rectifier designs: full thyristor complements or hybrid bridges in either series or shunt configurations. The power source may consist of only a potential source, either fed from the machine terminals or from internal windings. Some designs may have compound power sources utilizing both machine potential and current. These power sources are represented as phasor combinations of machine terminal current and voltage and are accommodated by suitable parameters in the model Type ST3A.
27 def __init__(self
, kp
=0.0, angp
=0.0, xl
=0.0, tc
=0.0, tb
=0.0, ki
=0.0, vbmax
=0.0, kc
=0.0, vrmax
=0.0, vimax
=0.0, vgmax
=0.0, km
=0.0, vmmax
=0.0, ka
=0.0, tr
=0.0, vrmin
=0.0, kg
=0.0, vimin
=0.0, vmmin
=0.0, tm
=0.0, ta
=0.0, *args
, **kw_args
):
28 """Initialises a new 'ExcST3A' instance.
30 @param kp: Potential source gain (> 0.)
31 @param angp: Phase angle of potential source
32 @param xl: P-bar reactance (>= 0.)
33 @param tc: AVR lead time constant
34 @param tb: AVR lag time constant (>= 0.)
35 @param ki: Current source gain (>= 0.)
36 @param vbmax: Maximum excitation voltage (> 0.)
37 @param kc: Exciter regulation factor (>= 0.)
38 @param vrmax: Maximum AVR output (> 0.)
39 @param vimax: Maximum error (> 0.)
40 @param vgmax: Maximum inner loop feedback voltage (>= 0.)
41 @param km: Inner loop forward gain (> 0.)
42 @param vmmax: Maximum inner loop output (> 0.)
43 @param ka: AVR gain (> 0.)
44 @param tr: Voltage transducer time constant (>= 0.)
45 @param vrmin: Minimum AVR output (< 0.)
46 @param kg: Inner loop feedback gain (>= 0.)
47 @param vimin: Minimum error (< 0.)
48 @param vmmin: Minimum inner loop output (<= 0.)
49 @param tm: Inner loop time constant (> 0.)
50 @param ta: AVR time constant (>= 0.)
52 #: Potential source gain (> 0.)
55 #: Phase angle of potential source
58 #: P-bar reactance (>= 0.)
61 #: AVR lead time constant
64 #: AVR lag time constant (>= 0.)
67 #: Current source gain (>= 0.)
70 #: Maximum excitation voltage (> 0.)
73 #: Exciter regulation factor (>= 0.)
76 #: Maximum AVR output (> 0.)
79 #: Maximum error (> 0.)
82 #: Maximum inner loop feedback voltage (>= 0.)
85 #: Inner loop forward gain (> 0.)
88 #: Maximum inner loop output (> 0.)
94 #: Voltage transducer time constant (>= 0.)
97 #: Minimum AVR output (< 0.)
100 #: Inner loop feedback gain (>= 0.)
103 #: Minimum error (< 0.)
106 #: Minimum inner loop output (<= 0.)
109 #: Inner loop time constant (> 0.)
112 #: AVR time constant (>= 0.)
115 super(ExcST3A
, self
).__init
__(*args
, **kw_args
)
117 _attrs
= ["kp", "angp", "xl", "tc", "tb", "ki", "vbmax", "kc", "vrmax", "vimax", "vgmax", "km", "vmmax", "ka", "tr", "vrmin", "kg", "vimin", "vmmin", "tm", "ta"]
118 _attr_types
= {"kp": float, "angp": float, "xl": float, "tc": float, "tb": float, "ki": float, "vbmax": float, "kc": float, "vrmax": float, "vimax": float, "vgmax": float, "km": float, "vmmax": float, "ka": float, "tr": float, "vrmin": float, "kg": float, "vimin": float, "vmmin": float, "tm": float, "ta": float}
119 _defaults
= {"kp": 0.0, "angp": 0.0, "xl": 0.0, "tc": 0.0, "tb": 0.0, "ki": 0.0, "vbmax": 0.0, "kc": 0.0, "vrmax": 0.0, "vimax": 0.0, "vgmax": 0.0, "km": 0.0, "vmmax": 0.0, "ka": 0.0, "tr": 0.0, "vrmin": 0.0, "kg": 0.0, "vimin": 0.0, "vmmin": 0.0, "tm": 0.0, "ta": 0.0}