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
.Wires
.RegulatingCondEq
import RegulatingCondEq
23 class StaticVarCompensator(RegulatingCondEq
):
24 """A facility for providing variable and controllable shunt reactive power. The SVC typically consists of a stepdown transformer, filter, thyristor-controlled reactor, and thyristor-switched capacitor arms. The SVC may operate in fixed MVar output mode or in voltage control mode. When in voltage control mode, the output of the SVC will be proportional to the deviation of voltage at the controlled bus from the voltage setpoint. The SVC characteristic slope defines the proportion. If the voltage at the controlled bus is equal to the voltage setpoint, the SVC MVar output is zero.
27 def __init__(self
, sVCControlMode
="reactivePower", voltageSetPoint
=0.0, capacitiveRating
=0.0, inductiveRating
=0.0, slope
=0.0, *args
, **kw_args
):
28 """Initialises a new 'StaticVarCompensator' instance.
30 @param sVCControlMode: SVC control mode. Values are: "reactivePower", "off", "voltage"
31 @param voltageSetPoint: The reactive power output of the SVC is proportional to the difference between the voltage at the regulated bus and the voltage setpoint. When the regulated bus voltage is equal to the voltage setpoint, the reactive power output is zero.
32 @param capacitiveRating: Maximum available capacitive reactive power
33 @param inductiveRating: Maximum available inductive reactive power
34 @param slope: The characteristics slope of an SVC defines how the reactive power output changes in proportion to the difference between the regulated bus voltage and the voltage setpoint.
36 #: SVC control mode. Values are: "reactivePower", "off", "voltage"
37 self
.sVCControlMode
= sVCControlMode
39 #: The reactive power output of the SVC is proportional to the difference between the voltage at the regulated bus and the voltage setpoint. When the regulated bus voltage is equal to the voltage setpoint, the reactive power output is zero.
40 self
.voltageSetPoint
= voltageSetPoint
42 #: Maximum available capacitive reactive power
43 self
.capacitiveRating
= capacitiveRating
45 #: Maximum available inductive reactive power
46 self
.inductiveRating
= inductiveRating
48 #: The characteristics slope of an SVC defines how the reactive power output changes in proportion to the difference between the regulated bus voltage and the voltage setpoint.
51 super(StaticVarCompensator
, self
).__init
__(*args
, **kw_args
)
53 _attrs
= ["sVCControlMode", "voltageSetPoint", "capacitiveRating", "inductiveRating", "slope"]
54 _attr_types
= {"sVCControlMode": str, "voltageSetPoint": float, "capacitiveRating": float, "inductiveRating": float, "slope": float}
55 _defaults
= {"sVCControlMode": "reactivePower", "voltageSetPoint": 0.0, "capacitiveRating": 0.0, "inductiveRating": 0.0, "slope": 0.0}
56 _enums
= {"sVCControlMode": "SVCControlMode"}