1 # Copyright (C) 2010 Richard Lincoln
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License, or (at your option) any later version.
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 # Lesser General Public License for more details.
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA, USA
17 from CIM14
.Dynamics
.ExcitationSystems
.ExcitationSystem
import ExcitationSystem
19 class ExcST2A(ExcitationSystem
):
20 """IEEE (1992/2005) ST2A Model Some static systems utilize both current and voltage sources (generator terminal quantities) to comprise the power source. These compound-source rectifier excitation systems are designated Type ST2A. The regulator controls the exciter output through controlled saturation of the power transformer components.
23 def __init__(self
, te
=0.0, ka
=0.0, tb
=0.0, tf
=0.0, kf
=0.0, ke
=0.0, tr
=0.0, tc
=0.0, ta
=0.0, kc
=0.0, ki
=0.0, kp
=0.0, uelin
=0.0, vrmax
=0.0, efdmax
=0.0, vrmin
=0.0, *args
, **kw_args
):
24 """Initialises a new 'ExcST2A' instance.
26 @param te: Transformer saturation control time constant (> 0.)
27 @param ka: Gain (> 0.)
28 @param tb: Time constant (>=0.)
29 @param tf: Rate feedback time constant (>= 0.)
30 @param kf: Rate feedback gain (>= 0.)
31 @param ke: Time constant feedback
32 @param tr: Filter time constant (>= 0.)
33 @param tc: Time constant
34 @param ta: Time constant (> 0.)
35 @param kc: Rectifier loading factor (>= 0.)
36 @param ki: Current source gain (>= 0.)
37 @param kp: Potential source gain (>= 0.)
38 @param uelin: UEL input: if = 1, HV gate; if = 2, add to error signal
39 @param vrmax: Maximum controller output (> 0.)
40 @param efdmax: Maximum field voltage (>=0.)
41 @param vrmin: Minimum controller output (< 0.)
43 #: Transformer saturation control time constant (> 0.)
49 #: Time constant (>=0.)
52 #: Rate feedback time constant (>= 0.)
55 #: Rate feedback gain (>= 0.)
58 #: Time constant feedback
61 #: Filter time constant (>= 0.)
67 #: Time constant (> 0.)
70 #: Rectifier loading factor (>= 0.)
73 #: Current source gain (>= 0.)
76 #: Potential source gain (>= 0.)
79 #: UEL input: if = 1, HV gate; if = 2, add to error signal
82 #: Maximum controller output (> 0.)
85 #: Maximum field voltage (>=0.)
88 #: Minimum controller output (< 0.)
91 super(ExcST2A
, self
).__init
__(*args
, **kw_args
)
93 _attrs
= ["te", "ka", "tb", "tf", "kf", "ke", "tr", "tc", "ta", "kc", "ki", "kp", "uelin", "vrmax", "efdmax", "vrmin"]
94 _attr_types
= {"te": float, "ka": float, "tb": float, "tf": float, "kf": float, "ke": float, "tr": float, "tc": float, "ta": float, "kc": float, "ki": float, "kp": float, "uelin": float, "vrmax": float, "efdmax": float, "vrmin": float}
95 _defaults
= {"te": 0.0, "ka": 0.0, "tb": 0.0, "tf": 0.0, "kf": 0.0, "ke": 0.0, "tr": 0.0, "tc": 0.0, "ta": 0.0, "kc": 0.0, "ki": 0.0, "kp": 0.0, "uelin": 0.0, "vrmax": 0.0, "efdmax": 0.0, "vrmin": 0.0}