TGeneratorObj

Type-access

Command

Description – (Specific class) otherwise generic

Implements the following properties/methods as in TLoadObj and TIndMach012Obj:

  1. RecalcElementData
  2. CalcYPrim
  3. MakePosSequence
  4. InjCurrents
  5. GetInjCurrents
  6. GetCurrents
  7. InitPropertyValues
  8. DumpProperties
  9. CalcDailyMult
  10. CalcDutyMult
  11. CalcYearlyMult
  12. GetPropertyValue
  13. CalcYPrimMatrix
  14. CalcInjCurrentArray
  15. GetTerminalCurrents
  16. DoHarmonicMode
  17. InitHarmonics
  18. Integrate
  19. StickCurrInTerminalArray
  20. WriteTraceRecord
  21. Set_ConductorClosed
  22. VariableName
  23. NumVariables
  24. GetAllVariables
  25. Get_Variable
  26. Set_Variable
  27. VariableName
  28. Randomize
  29. InitStateVars
  30. IntegrateStates
  31. CalcVTerminalPhase

Method- private

CalcGenModelContribution

Calculates the injection currents for the element based on the model type.

Method- private

CalcVterminal

Calculates and uploads the voltage at the element’s terminals using the model and connection type as reference.

Method- private

CalcVthev_Dyn

Calculates the Thevenin voltage equivalent for dynamics simulation.

Method- private

DoConstantPQGen

Implements the routine for calculating the injection currents for generator model when working in constant PQ mode.

Method- private

DoConstantZGen

Implements the routine for calculating the injection currents for generator model when working as constant admittance.

Method- private

DoCurrentLimitedPQ

Implements the routine for calculating the injection currents for generator model when working as constant kW, kvar, but current-limited below Vminpu. Approximates a simple inverter.

Method- private

DoDynamicMode

Implements the routine for calculating the injection currents for generator model when working in dynamics simulation mode.

Method- private

DoFixedQGen

Implements the routine for calculating the injection currents for generator model when working as constant kW, fixed Q.

Method- private

DoFixedQZGen

Implements the routine for calculating the injection currents for generator model when working as constant kW, fixed Q (as a constant reactance).

Method- private

DoPVTypeGen

Implements the routine for calculating the injection currents for generator model when working as constant kW, constant kV.  Somewhat like a conventional transmission power flow P-V generator.

Method- private

DoUserModel

Implements the routine for calculating the injection currents for a user generator model (DLL).

Property- private

CheckOnFuel

Returns a boolean flag indicating if the fuel tank (if any) is empty.

Method- private

SetDragHandRegister

Moves the internal shift register according to the given value.

Method- private

SyncUpPowerQuantities

Keeps kvar nominal up to date with kW and PF.

Property- private

Get_PresentkW

Returns the present kW delivered by the model.

Property- private

Get_Presentkvar

Returns the present kvar delivered/absorbed by the model.

Property- private

Get_PresentkV

Returns the present kV at the terminals of the model. Considers the connection mode (wye/delta).

Method- private

Set_PresentkV

Sets the present kV at the terminals of the model. Considers the connection mode (wye/delta).

Method- private

Set_Presentkvar

Sets the present kvar delivered/absorbed by the model.

Method- private

Set_PresentkW

Sets the present kW delivered by the model. 

Method- private

Set_PowerFactor

Sets the present power factor delivered by the model. 

Method- private

SetkWkvar

Sets the present kW and kvar for the model.

Method- public

SetNominalGeneration

Implements the calls for calculating the injection currents for the model considering its features.

Method- public

ResetRegisters

Resets all the registers needed for integration and the local energy meter.

Method- public

TakeSample

Commands the local energy meter to take a sample.

Method- public

InitDQDVCalc

Initializes DQ DV registers.

Method- public

BumpUpQ

Bump up vars by 10% of range for next calculation.

Method- public

RememberQV

Stores Q and V for further use.

Method- public

CalcDQDV

Calculates DQ and DV.

Method- public

ResetStartPoint

Resets the Q nominal per phase to the initial (default) value.

Property- public

CheckIfDynVar

Evaluates if the value provided corresponds to a constant value or to an operand for calculating the value using the simulation results, this is useful when a DynamicExp is linked to the generator.

Method- public

SetDynOutput

Obtains the indexes of the given variables to use them as reference for setting the dynamic output for the generator when using DynamicExp with the generator.

Property- public

PresentkW

PA Get_PresentkW and Set_PresentkW.

Property- public

Presentkvar

PA Get_Presentkvar and Set_Presentkvar.

Property- public

ForcedON

PA FForcedON (variable).

Property- public

PresentkV

PA Get_PresentkV and Set_PresentkV.

Property- public

PowerFactor

PA PFNominal (variable) and Set_PowerFactor.