Update README.rst
[PyCIM.git] / CIM14 / IEC61970 / Dynamics / ExcitationSystems / ExcDC2A.py
blob15725155c8cb18dca7b5bef565e1c2b9f9df58cd
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
19 # IN THE SOFTWARE.
21 from CIM14.IEC61970.Dynamics.ExcitationSystems.ExcitationSystem import ExcitationSystem
23 class ExcDC2A(ExcitationSystem):
24 """IEEE (1992/2005) DC2A Model The model is used to represent field-controlled dc commutator exciters with continuously acting voltage regulators having supplies obtained from the generator or auxiliary bus. It differs from the Type DC1A model only in the voltage regulator output limits, which are now proportional to terminal voltage <i>V</i><i><sub>T</sub></i>. It is representative of solid-state replacements for various forms of older mechanical and rotating amplifier regulating equipment connected to dc commutator exciters.
25 """
27 def __init__(self, te=0.0, ke=0.0, e1=0.0, tc=0.0, se2=0.0, tb=0.0, uelin=0.0, e2=0.0, tf=0.0, kf=0.0, vrmax=0.0, se1=0.0, ta=0.0, ka=0.0, tr=0.0, exclim=0.0, vrmin=0.0, *args, **kw_args):
28 """Initialises a new 'ExcDC2A' instance.
30 @param te: Exciter time constant (&gt; 0.)
31 @param ke: Exciter field resistance line slope
32 @param e1: Field voltage value 1 (&gt; 0.)
33 @param tc: Lead time constant
34 @param se2: Saturation factor at e2 (&gt;= 0.)
35 @param tb: Lag time constant (&gt;= 0.)
36 @param uelin: UEL input: if &lt; 2, HV gate; if = 2, add to error signal
37 @param e2: Field voltage value 2. (&gt; 0.)
38 @param tf: Rate feedback time constant, sec. (&gt; 0.)
39 @param kf: Rate feedback gain (&gt;= 0.)
40 @param vrmax: Maximum controller output
41 @param se1: Saturation factor at e1 (&gt;= 0.)
42 @param ta: Time constant (&gt; 0.)
43 @param ka: Gain (&gt; 0.)
44 @param tr: Filter time constant (&gt;= 0.)
45 @param exclim: If not 0, apply lower limit of 0. to exciter output
46 @param vrmin: Minimum controller output (&lt; 0.)
47 """
48 #: Exciter time constant (&gt; 0.)
49 self.te = te
51 #: Exciter field resistance line slope
52 self.ke = ke
54 #: Field voltage value 1 (&gt; 0.)
55 self.e1 = e1
57 #: Lead time constant
58 self.tc = tc
60 #: Saturation factor at e2 (&gt;= 0.)
61 self.se2 = se2
63 #: Lag time constant (&gt;= 0.)
64 self.tb = tb
66 #: UEL input: if &lt; 2, HV gate; if = 2, add to error signal
67 self.uelin = uelin
69 #: Field voltage value 2. (&gt; 0.)
70 self.e2 = e2
72 #: Rate feedback time constant, sec. (&gt; 0.)
73 self.tf = tf
75 #: Rate feedback gain (&gt;= 0.)
76 self.kf = kf
78 #: Maximum controller output
79 self.vrmax = vrmax
81 #: Saturation factor at e1 (&gt;= 0.)
82 self.se1 = se1
84 #: Time constant (&gt; 0.)
85 self.ta = ta
87 #: Gain (&gt; 0.)
88 self.ka = ka
90 #: Filter time constant (&gt;= 0.)
91 self.tr = tr
93 #: If not 0, apply lower limit of 0. to exciter output
94 self.exclim = exclim
96 #: Minimum controller output (&lt; 0.)
97 self.vrmin = vrmin
99 super(ExcDC2A, self).__init__(*args, **kw_args)
101 _attrs = ["te", "ke", "e1", "tc", "se2", "tb", "uelin", "e2", "tf", "kf", "vrmax", "se1", "ta", "ka", "tr", "exclim", "vrmin"]
102 _attr_types = {"te": float, "ke": float, "e1": float, "tc": float, "se2": float, "tb": float, "uelin": float, "e2": float, "tf": float, "kf": float, "vrmax": float, "se1": float, "ta": float, "ka": float, "tr": float, "exclim": float, "vrmin": float}
103 _defaults = {"te": 0.0, "ke": 0.0, "e1": 0.0, "tc": 0.0, "se2": 0.0, "tb": 0.0, "uelin": 0.0, "e2": 0.0, "tf": 0.0, "kf": 0.0, "vrmax": 0.0, "se1": 0.0, "ta": 0.0, "ka": 0.0, "tr": 0.0, "exclim": 0.0, "vrmin": 0.0}
104 _enums = {}
105 _refs = []
106 _many_refs = []