Removing package directories.
[PyCIM.git] / CIM14 / Dynamics / TurbineGovernors / GovSteam0.py
blobc9a982ab9c0868ddb06d1db5476c994533c0d04b
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.TurbineGovernors.TurbineGovernor import TurbineGovernor
19 class GovSteam0(TurbineGovernor):
20 """A simplified steam turbine-governor model.
21 """
23 def __init__(self, t2=0.0, t1=0.0, vmin=0.0, dt=0.0, vmax=0.0, mwbase=0.0, r=0.0, t3=0.0, *args, **kw_args):
24 """Initialises a new 'GovSteam0' instance.
26 @param t2: Numerator time constant of T2/T3 block
27 @param t1: Steam bowl time constant
28 @param vmin: Minimum valve position, p.u. of mwcap
29 @param dt: Turbine damping coefficient
30 @param vmax: Maximum valve position, p.u. of mwcap
31 @param mwbase: Base for power values (> 0.)
32 @param r: Permanent droop
33 @param t3: Reheater time constant
34 """
35 #: Numerator time constant of T2/T3 block
36 self.t2 = t2
38 #: Steam bowl time constant
39 self.t1 = t1
41 #: Minimum valve position, p.u. of mwcap
42 self.vmin = vmin
44 #: Turbine damping coefficient
45 self.dt = dt
47 #: Maximum valve position, p.u. of mwcap
48 self.vmax = vmax
50 #: Base for power values (> 0.)
51 self.mwbase = mwbase
53 #: Permanent droop
54 self.r = r
56 #: Reheater time constant
57 self.t3 = t3
59 super(GovSteam0, self).__init__(*args, **kw_args)
61 _attrs = ["t2", "t1", "vmin", "dt", "vmax", "mwbase", "r", "t3"]
62 _attr_types = {"t2": float, "t1": float, "vmin": float, "dt": float, "vmax": float, "mwbase": float, "r": float, "t3": float}
63 _defaults = {"t2": 0.0, "t1": 0.0, "vmin": 0.0, "dt": 0.0, "vmax": 0.0, "mwbase": 0.0, "r": 0.0, "t3": 0.0}
64 _enums = {}
65 _refs = []
66 _many_refs = []