@@ -176,6 +176,136 @@ def kvar(*args):
176
176
CheckForError (lib .Generators_Set_kvar (Value ))
177
177
178
178
179
+ def daily (* args ):
180
+ """
181
+ Name of the loadshape for a daily generation profile.
182
+
183
+ (API Extension)
184
+ """
185
+ # Getter
186
+ if len (args ) == 0 :
187
+ return get_string (CheckForError (lib .Generators_Get_daily ()))
188
+
189
+ # Setter
190
+ Value , = args
191
+ if type (Value ) is not bytes :
192
+ Value = Value .encode (codec )
193
+ CheckForError (lib .Generators_Set_daily (Value ))
194
+
195
+
196
+ def duty (* args ):
197
+ """
198
+ Name of the loadshape for a duty cycle simulation.
199
+
200
+ (API Extension)
201
+ """
202
+ # Getter
203
+ if len (args ) == 0 :
204
+ return get_string (CheckForError (lib .Generators_Get_duty ()))
205
+
206
+ # Setter
207
+ Value , = args
208
+ if type (Value ) is not bytes :
209
+ Value = Value .encode (codec )
210
+ CheckForError (lib .Generators_Set_duty (Value ))
211
+
212
+
213
+ def Yearly (* args ):
214
+ """
215
+ Name of yearly loadshape
216
+
217
+ (API Extension)
218
+ """
219
+ # Getter
220
+ if len (args ) == 0 :
221
+ return get_string (CheckForError (lib .Generators_Get_Yearly ()))
222
+
223
+ # Setter
224
+ Value , = args
225
+ if type (Value ) is not bytes :
226
+ Value = Value .encode (codec )
227
+ CheckForError (lib .Generators_Set_Yearly (Value ))
228
+
229
+
230
+ def Status (* args ):
231
+ """
232
+ Response to dispatch multipliers: Fixed=1 (dispatch multipliers do not apply), Variable=0 (follows curves).
233
+
234
+ Related enumeration: GeneratorStatus
235
+
236
+ (API Extension)
237
+ """
238
+ # Getter
239
+ if len (args ) == 0 :
240
+ return CheckForError (lib .Generators_Get_Status ())
241
+
242
+ # Setter
243
+ Value , = args
244
+ CheckForError (lib .Generators_Set_Status (Value ))
245
+
246
+
247
+ def IsDelta (* args ):
248
+ """
249
+ Generator connection. True/1 if delta connection, False/0 if wye.
250
+
251
+ (API Extension)
252
+ """
253
+ # Getter
254
+ if len (args ) == 0 :
255
+ return CheckForError (lib .Generators_Get_IsDelta ()) != 0
256
+
257
+ # Setter
258
+ Value , = args
259
+ CheckForError (lib .Generators_Set_IsDelta (Value ))
260
+
261
+
262
+ def kva (* args ):
263
+ """
264
+ kVA rating of electrical machine. Applied to machine or inverter definition for Dynamics mode solutions.
265
+
266
+ (API Extension)
267
+ """
268
+ # Getter
269
+ if len (args ) == 0 :
270
+ return CheckForError (lib .Generators_Get_kva ())
271
+
272
+ # Setter
273
+ Value , = args
274
+ CheckForError (lib .Generators_Set_kva (Value ))
275
+
276
+
277
+ def Class (* args ):
278
+ """
279
+ An arbitrary integer number representing the class of Generator so that Generator values may be segregated by class.
280
+
281
+ (API Extension)
282
+ """
283
+ # Getter
284
+ if len (args ) == 0 :
285
+ return CheckForError (lib .Generators_Get_Class_ ())
286
+
287
+ # Setter
288
+ Value , = args
289
+ CheckForError (lib .Generators_Set_Class_ (Value ))
290
+
291
+
292
+ def Bus1 (* args ):
293
+ """
294
+ Bus to which the Generator is connected. May include specific node specification.
295
+
296
+ (API Extension)
297
+ """
298
+ # Getter
299
+ if len (args ) == 0 :
300
+ return get_string (CheckForError (lib .Generators_Get_Bus1 ()))
301
+
302
+ # Setter
303
+ Value , = args
304
+ if type (Value ) is not bytes :
305
+ Value = Value .encode (codec )
306
+ CheckForError (lib .Generators_Set_Bus1 (Value ))
307
+
308
+
179
309
_columns = [
180
310
"ForcedON" ,
181
311
"Model" ,
@@ -191,6 +321,14 @@ def kvar(*args):
191
321
"kVARated" ,
192
322
"kW" ,
193
323
"kvar" ,
324
+ "Bus1" ,
325
+ "Class" ,
326
+ "kva" ,
327
+ "IsDelta" ,
328
+ "Status" ,
329
+ "daily" ,
330
+ "duty" ,
331
+ "Yearly" ,
194
332
]
195
333
__all__ = [
196
334
"AllNames" ,
@@ -211,4 +349,12 @@ def kvar(*args):
211
349
"kVARated" ,
212
350
"kW" ,
213
351
"kvar" ,
352
+ "daily" ,
353
+ "duty" ,
354
+ "Yearly" ,
355
+ "Status" ,
356
+ "IsDelta" ,
357
+ "kva" ,
358
+ "Class" ,
359
+ "Bus1" ,
214
360
]
0 commit comments