Update README.rst
[PyCIM.git] / CIM14 / IEC61970 / Dynamics / ExcitationSystems / ExcAC5A.py
blob4c33d312d200775541e2a5a1af39124f34d10611
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 ExcAC5A(ExcitationSystem):
24 """IEEE (1992/2005) AC5A Model The model designated as Type AC5A, is a simplified model for brushless excitation systems. The regulator is supplied from a source, such as a permanent magnet generator, which is not affected by system disturbances. Unlike other ac models, this model uses loaded rather than open circuit exciter saturation data in the same way as it is used for the dc models. Because the model has been widely implemented by the industry, it is sometimes used to represent other types of systems when either detailed data for them are not available or simplified models are required.
25 """
27 def __init__(self, ka=0.0, e1=0.0, kf=0.0, te=0.0, vrmin=0.0, vrmax=0.0, se2=0.0, tf3=0.0, e2=0.0, ke=0.0, tr=0.0, se1=0.0, tf2=0.0, tf1=0.0, ta=0.0, *args, **kw_args):
28 """Initialises a new 'ExcAC5A' instance.
30 @param ka: Gain (> 0.)
31 @param e1: Field voltage value 1 (> 0.)
32 @param kf: Rate feedback gain (>= 0.)
33 @param te: Exciter time constant, sec. (> 0.)
34 @param vrmin: Minimum controller output (< 0.)
35 @param vrmax: Maximum controller output (> 0.)
36 @param se2: Saturation factor at e2 (>= 0.)
37 @param tf3: Rate feedback lead time constant
38 @param e2: Field voltage value 2. (> 0.)
39 @param ke: Exciter field resistance line slope
40 @param tr: Filter time constant (>= 0.)
41 @param se1: Saturation factor at e1 (>= 0.)
42 @param tf2: Rate feedback lag time constant (>= 0.)
43 @param tf1: Rate feedback lag time constant (> 0.)
44 @param ta: Time constant (> 0.)
45 """
46 #: Gain (> 0.)
47 self.ka = ka
49 #: Field voltage value 1 (> 0.)
50 self.e1 = e1
52 #: Rate feedback gain (>= 0.)
53 self.kf = kf
55 #: Exciter time constant, sec. (> 0.)
56 self.te = te
58 #: Minimum controller output (< 0.)
59 self.vrmin = vrmin
61 #: Maximum controller output (> 0.)
62 self.vrmax = vrmax
64 #: Saturation factor at e2 (>= 0.)
65 self.se2 = se2
67 #: Rate feedback lead time constant
68 self.tf3 = tf3
70 #: Field voltage value 2. (> 0.)
71 self.e2 = e2
73 #: Exciter field resistance line slope
74 self.ke = ke
76 #: Filter time constant (>= 0.)
77 self.tr = tr
79 #: Saturation factor at e1 (>= 0.)
80 self.se1 = se1
82 #: Rate feedback lag time constant (>= 0.)
83 self.tf2 = tf2
85 #: Rate feedback lag time constant (> 0.)
86 self.tf1 = tf1
88 #: Time constant (> 0.)
89 self.ta = ta
91 super(ExcAC5A, self).__init__(*args, **kw_args)
93 _attrs = ["ka", "e1", "kf", "te", "vrmin", "vrmax", "se2", "tf3", "e2", "ke", "tr", "se1", "tf2", "tf1", "ta"]
94 _attr_types = {"ka": float, "e1": float, "kf": float, "te": float, "vrmin": float, "vrmax": float, "se2": float, "tf3": float, "e2": float, "ke": float, "tr": float, "se1": float, "tf2": float, "tf1": float, "ta": float}
95 _defaults = {"ka": 0.0, "e1": 0.0, "kf": 0.0, "te": 0.0, "vrmin": 0.0, "vrmax": 0.0, "se2": 0.0, "tf3": 0.0, "e2": 0.0, "ke": 0.0, "tr": 0.0, "se1": 0.0, "tf2": 0.0, "tf1": 0.0, "ta": 0.0}
96 _enums = {}
97 _refs = []
98 _many_refs = []