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
.Loads
.AggregateLoad
import AggregateLoad
19 class LoadStatic(AggregateLoad
):
20 """General Static Load Model. A static load model represents the sensitivity of the real and reactive power consumed by the load to the amplitude and frequency of the bus voltage.
23 def __init__(self
, staticLoadType
="ZIP1", ep1
=0.0, kp3
=0.0, eq3
=0.0, kp2
=0.0, eq2
=0.0, kqf
=0.0, kq4
=0.0, kq2
=0.0, kp1
=0.0, ep2
=0.0, eq1
=0.0, kpf
=0.0, kp4
=0.0, kq3
=0.0, ep3
=0.0, kq1
=0.0, *args
, **kw_args
):
24 """Initialises a new 'LoadStatic' instance.
26 @param staticLoadType: Type of static load model Values are: "ZIP1", "exponential", "ZIP2"
44 #: Type of static load model Values are: "ZIP1", "exponential", "ZIP2"
45 self
.staticLoadType
= staticLoadType
95 super(LoadStatic
, self
).__init
__(*args
, **kw_args
)
97 _attrs
= ["staticLoadType", "ep1", "kp3", "eq3", "kp2", "eq2", "kqf", "kq4", "kq2", "kp1", "ep2", "eq1", "kpf", "kp4", "kq3", "ep3", "kq1"]
98 _attr_types
= {"staticLoadType": str, "ep1": float, "kp3": float, "eq3": float, "kp2": float, "eq2": float, "kqf": float, "kq4": float, "kq2": float, "kp1": float, "ep2": float, "eq1": float, "kpf": float, "kp4": float, "kq3": float, "ep3": float, "kq1": float}
99 _defaults
= {"staticLoadType": "ZIP1", "ep1": 0.0, "kp3": 0.0, "eq3": 0.0, "kp2": 0.0, "eq2": 0.0, "kqf": 0.0, "kq4": 0.0, "kq2": 0.0, "kp1": 0.0, "ep2": 0.0, "eq1": 0.0, "kpf": 0.0, "kp4": 0.0, "kq3": 0.0, "ep3": 0.0, "kq1": 0.0}
100 _enums
= {"staticLoadType": "StaticLoadType"}