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 ExcAC3A(ExcitationSystem
):
24 """IEEE (1992/2005) AC3A Model The model represents the field-controlled alternator-rectifier excitation systems designated Type AC3A. These excitation systems include an alternator main exciter with non-controlled rectifiers. The exciter employs self-excitation, and the voltage regulator power is derived from the exciter output voltage. Therefore, this system has an additional nonlinearity, simulated by the use of a multiplier whose inputs are the voltage regulator command signal, <i>VA</i>, and the exciter output voltage, <i>EFD</i>, times <i>KR</i>. This model is applicable to excitation systems employing static voltage regulators.
27 def __init__(self
, kf
=0.0, e2
=0.0, te
=0.0, ka
=0.0, kr
=0.0, tc
=0.0, efdn
=0.0, ke
=0.0, e1
=0.0, kd
=0.0, se2
=0.0, vamax
=0.0, tr
=0.0, vamin
=0.0, tf
=0.0, vemin
=0.0, kn
=0.0, vfemax
=0.0, tb
=0.0, se1
=0.0, kc
=0.0, ta
=0.0, *args
, **kw_args
):
28 """Initialises a new 'ExcAC3A' instance.
30 @param kf: Low level rate feedback gain (>= 0.)
31 @param e2: Field voltage value 2. (> 0.)
32 @param te: Exciter time constant (> 0.)
33 @param ka: AVR gain (> 0.)
34 @param kr: Field self-excitation feedback gain (> 0.)
35 @param tc: TGR lead time constant
36 @param efdn: Rate feedback gain break level (> 0.)
37 @param ke: Exciter field resistance constant
38 @param e1: Field voltage value 1 (> 0.)
39 @param kd: Exciter internal reactance (>= 0.)
40 @param se2: Saturation factor at e2 (>= 0.)
41 @param vamax: Maximum AVR output (> 0.)
42 @param tr: Filter time constant (>= 0.)
43 @param vamin: Minimum AVR output (< 0.)
44 @param tf: Rate feedback time constant (> 0.)
45 @param vemin: Minimum field voltage limit (<= 0.)
46 @param kn: High level rate feedback gain (>= 0.)
47 @param vfemax: Exciter field current limit parameter (>= 0.)
48 @param tb: TGR lag time constant (>= 0.)
49 @param se1: Saturation factor at e1 (>= 0.)
50 @param kc: Rectifier regulation factor (>= 0.)
51 @param ta: AVR time constant (> 0.)
53 #: Low level rate feedback gain (>= 0.)
56 #: Field voltage value 2. (> 0.)
59 #: Exciter time constant (> 0.)
65 #: Field self-excitation feedback gain (> 0.)
68 #: TGR lead time constant
71 #: Rate feedback gain break level (> 0.)
74 #: Exciter field resistance constant
77 #: Field voltage value 1 (> 0.)
80 #: Exciter internal reactance (>= 0.)
83 #: Saturation factor at e2 (>= 0.)
86 #: Maximum AVR output (> 0.)
89 #: Filter time constant (>= 0.)
92 #: Minimum AVR output (< 0.)
95 #: Rate feedback time constant (> 0.)
98 #: Minimum field voltage limit (<= 0.)
101 #: High level rate feedback gain (>= 0.)
104 #: Exciter field current limit parameter (>= 0.)
107 #: TGR lag time constant (>= 0.)
110 #: Saturation factor at e1 (>= 0.)
113 #: Rectifier regulation factor (>= 0.)
116 #: AVR time constant (> 0.)
119 super(ExcAC3A
, self
).__init
__(*args
, **kw_args
)
121 _attrs
= ["kf", "e2", "te", "ka", "kr", "tc", "efdn", "ke", "e1", "kd", "se2", "vamax", "tr", "vamin", "tf", "vemin", "kn", "vfemax", "tb", "se1", "kc", "ta"]
122 _attr_types
= {"kf": float, "e2": float, "te": float, "ka": float, "kr": float, "tc": float, "efdn": float, "ke": float, "e1": float, "kd": float, "se2": float, "vamax": float, "tr": float, "vamin": float, "tf": float, "vemin": float, "kn": float, "vfemax": float, "tb": float, "se1": float, "kc": float, "ta": float}
123 _defaults
= {"kf": 0.0, "e2": 0.0, "te": 0.0, "ka": 0.0, "kr": 0.0, "tc": 0.0, "efdn": 0.0, "ke": 0.0, "e1": 0.0, "kd": 0.0, "se2": 0.0, "vamax": 0.0, "tr": 0.0, "vamin": 0.0, "tf": 0.0, "vemin": 0.0, "kn": 0.0, "vfemax": 0.0, "tb": 0.0, "se1": 0.0, "kc": 0.0, "ta": 0.0}