Generator#

( Circuit Element, PC Element )

EPRI’s OpenDSS Documentation for this component: https://opendss.epri.com/Generator.html

#

Name

Type

Default

Units

Description

1

Phases

integer

3

Number of Phases, this Generator. Power is evenly divided among phases.

2

Bus1

string
(bus def.)

Bus to which the Generator is connected. May include specific node specification.

3

kV

real

12.47

kV

Nominal rated (1.0 per unit) voltage, kV, for Generator. For 2- and 3-phase Generators, specify phase-phase kV. Otherwise, for phases=1 or phases>3, specify actual kV across each branch of the Generator. If wye (star), specify phase-neutral kV. If delta or phase-phase connected, specify phase-phase kV.

4

kW

real

Total base kW for the Generator. A positive value denotes power coming OUT of the element,
which is the opposite of a load. This value is modified depending on the dispatch mode. Unaffected by the global load multiplier and growth curves. If you want there to be more generation, you must add more generators or change this value.

5

PF

real

Generator power factor. Enter negative for leading powerfactor (when kW and kvar have opposite signs.)
A positive power factor for a generator signifies that the generator produces vars
as is typical for a synchronous generator. Induction machines would be
specified with a negative power factor.

6

kvar

real

Specify the base kvar. Alternative to specifying the power factor. Side effect: the power factor value is altered to agree based on present value of kW.

7

Model

integer
(from enum. Model)

1

Integer code for the model to use for generation variation with voltage. Valid values are:

1:Generator injects a constant kW at specified power factor.
2:Generator is modeled as a constant admittance.
3:Const kW, constant kV. Somewhat like a conventional transmission power flow P-V generator.
4:Const kW, Fixed Q (Q never varies)
5:Const kW, Fixed Q(as a constant reactance)
6:Compute load injection from User-written Model.(see usage of Xd, Xdp)
7:Constant kW, kvar, but current-limited below Vminpu. Approximates a simple inverter. See also Balanced.

8

VMinpu

real

0.9

Minimum per unit voltage for which the Model is assumed to apply. Below this value, the load model reverts to a constant impedance model. For model 7, the current is limited to the value computed for constant power at Vminpu.

9

VMaxpu

real

1.1

Maximum per unit voltage for which the Model is assumed to apply. Above this value, the load model reverts to a constant impedance model.

10

Yearly

string
(LoadShape name)

Dispatch shape to use for yearly simulations. Must be previously defined as a Loadshape object. If this is not specified, a constant value is assumed (no variation). If the generator is assumed to be ON continuously, specify Status=FIXED, or designate a curve that is 1.0 per unit at all times. Set to NONE to reset to no loadshape. Nominally for 8760 simulations. If there are fewer points in the designated shape than the number of points in the solution, the curve is repeated.

11

Daily

string
(LoadShape name)

Dispatch shape to use for daily simulations. Must be previously defined as a Loadshape object of 24 hrs, typically. If generator is assumed to be ON continuously, specify Status=FIXED, or designate a Loadshape object that is 1.0 per unit for all hours. Set to NONE to reset to no loadshape.

12

Duty

string
(LoadShape name)

Load shape to use for duty cycle dispatch simulations such as for wind generation. Must be previously defined as a Loadshape object. Typically would have time intervals less than 1 hr – perhaps, in seconds. Set Status=Fixed to ignore Loadshape designation. Set to NONE to reset to no loadshape. Designate the number of points to solve using the Set Number=xxxx command. If there are fewer points in the actual shape, the shape is assumed to repeat.

13

DispMode

string
(from enum. Dispatch Mode)

Default

Dispatch mode. In default mode, the generator is either always on or follows dispatch curve as specified. Otherwise, the gen comes on when either the global default load level (Loadshape “default”) or the price level exceeds the dispatch value.

14

DispValue

real

0.0

Dispatch value.
If = 0 (default) then Generator follow dispatch curves, if any.
If > 0 then Generator is ON only when either the price signal (in Price dispatch mode) exceeds this value or the active circuit load multiplier × “default” loadshape value * the default yearly growth factor exceeds this value. Then the generator follows dispatch curves (duty, daily, or yearly), if any (see also Status).

15

Conn

string
(from enum. Connection)

Wye

Generator connection. Default is wye.

16

Status

string
(from enum. Status)

Variable

If Fixed, then dispatch multipliers do not apply. The generator is alway at full power when it is ON. Default is Variable (follows curves).

17

Class

integer

1

An arbitrary integer number representing the class of Generator so that Generator values may be segregated by class.

18

Vpu

real

1.0

Per Unit voltage set point for Model = 3 (typical power flow model).

19

Maxkvar

real

Maximum kvar limit for Model = 3. Defaults to twice the specified load kvar. Always reset this if you change PF or kvar properties.

20

Minkvar

real

Minimum kvar limit for Model = 3. Enter a negative number if generator can absorb vars. Defaults to negative of Maxkvar. Always reset this if you change PF or kvar properties.

21

PVFactor

real

0.1

Deceleration factor for P-V generator model (Model=3). Default is 0.1. If the circuit converges easily, you may want to use a higher number such as 1.0. Use a lower number if solution diverges. Use Debugtrace=yes to create a file that will trace the convergence of a generator model.

22

ForceOn

boolean

False

Forces generator ON despite requirements of other dispatch modes. Stays ON until this property is set to NO, or an internal algorithm cancels the forced ON state.

23

kVA

real

kVA rating of electrical machine. Defaults to 1.2 × kW if not specified. Applied to machine or inverter definition for Dynamics mode solutions.

24

MVA

real

MVA rating of electrical machine. Alternative to using kVA=.
Redundant with kVA

25

Xd

real

1.0

Per unit synchronous reactance of machine. Presently used only for Thevenin impedance for power flow calcs of user models (model=6). Typically use a value 0.4 to 1.0. Default is 1.0

26

Xdp

real

0.28

Per unit transient reactance of the machine. Used for Dynamics mode and Fault studies. Default is 0.27.For user models, this value is used for the Thevenin/Norton impedance for Dynamics Mode.

27

Xdpp

real

0.2

Per unit subtransient reactance of the machine. Used for Harmonics. Default is 0.20.

28

H

real

1.0

Per unit mass constant of the machine. MW-sec/MVA. Default is 1.0.

29

D

real

1.0

Damping constant. Usual range is 0 to 4. Default is 1.0. Adjust to get damping

30

UserModel

string

Name of DLL containing user-written model, which computes the terminal currents for Dynamics studies, overriding the default model. Set to “none” to negate previous setting.

31

UserData

string

String (in quotes or parentheses) that gets passed to user-written model for defining the data required for that model.

32

ShaftModel

string

Name of user-written DLL containing a Shaft model, which models the prime mover and determines the power on the shaft for Dynamics studies. Models additional mass elements other than the single-mass model in the DSS default model. Set to “none” to negate previous setting.

33

ShaftData

string

String (in quotes or parentheses) that gets passed to user-written shaft dynamic model for defining the data for that model.

34

DutyStart

real

0.0

hour

Starting time offset [hours] into the duty cycle shape for this generator, defaults to 0

35

DebugTrace

boolean

False

Turn this on to capture the progress of the generator model for each iteration. Creates a separate file for each generator named “GEN_name.csv”.

36

Balanced

boolean

False

For Model=7, force balanced current only for 3-phase generators. Force zero- and negative-sequence to zero.

37

XRdp

real

20.0

X/R ratio for Xdp property for FaultStudy and Dynamic modes.

38

UseFuel

boolean

False

Activates the use of fuel for the operation of the generator. When the fuel level reaches the reserve level, the generator stops until it gets refueled. By default, the generator is connected to a continuous fuel supply, Use this mode to mimic dependency on fuel level for different generation technologies.

39

FuelkWh

real

0.0

The nominal level of fuel for the generator (kWh). It only applies if UseFuel = True

40

%Fuel

real

It is a number between 0 and 100 representing the current amount of fuel available in percentage of FuelkWh. It only applies if UseFuel = True

41

%Reserve

real

It is a number between 0 and 100 representing the reserve level in percentage of FuelkWh. It only applies if UseFuel = True

42

Refuel

boolean
(action)

False

Setting a true value manually refuels the generator when needed. It only applies if UseFuel = True

43

DynamicEq

string
(DynamicExp name)

The name of the dynamic equation (DynamicExp) that will be used for defining the dynamic behavior of the generator. if not defined, the generator dynamics will follow the built-in dynamic equation.

44

DynOut

array of strings

The name of the variables within the Dynamic equation that will be used to govern the generator dynamics.This generator model requires 2 outputs from the dynamic equation:

1. Shaft speed (velocity) relative to synchronous speed.
2. Shaft, or power, angle (relative to synchronous reference frame).

The output variables need to be defined in tha strict order.

45

Spectrum

string
(Spectrum name)

defaultgen

Name of harmonic voltage or current spectrum for this generator. Voltage behind Xd” for machine - default. Current injection for inverter.

46

BaseFreq

real

Hz

Base Frequency for ratings.

47

Enabled

boolean

True

Indicates whether this element is enabled.

48

Like

string
(Generator name)
deprecated

Make like another object, e.g.:

New Capacitor.C2 like=c1 …

Enumerations#

Generator: Dispatch Mode#

Value

Default

LoadLevel

Price

Generator: Model#

Value

Description

1

Constant PQ

2

Constant Z

3

Constant P|V|

4

Constant P, fixed Q

5

Constant P, fixed X

6

User model

7

Approximate inverter model

Generator: Status#

Value

Variable

Fixed