Class TGeneratorObj
Unit
Declaration
type TGeneratorObj = class(TPCElement)
Description
No description available, ancestor TPCElement description follows
No description available, ancestor TDSSCktElement description follows
No description available, ancestor TDSSObject description follows
No description available, ancestor TNamedObject description follows
this is a GUID compliant to RFC 4122, v4
Hierarchy
- TObject
- TNamedObject
- TDSSObject
- TDSSCktElement
- TPCElement
- TGeneratorObj
Overview
Fields
IsFixed: LongBool; |
|
Connection: Integer; |
|
DailyDispShapeObj: TLoadShapeObj; |
|
DutyShapeObj: TLoadShapeObj; |
|
YearlyShapeObj: TLoadShapeObj; |
|
DutyStart: Double; |
|
GenClass: Integer; |
|
GenModel: Integer; |
|
GenVars: TGeneratorVars; |
|
kvarBase: Double; |
|
kvarMax: Double; |
|
kvarMin: Double; |
|
kWBase: Double; |
|
PFNominal: Double; |
|
Vpu: Double; |
|
Vmaxpu: Double; |
|
Vminpu: Double; |
|
ForcedON: LongBool; |
|
GenActive: Boolean; |
|
UseFuel: LongBool; |
|
FuelkWh: Double; |
|
pctFuel: Double; |
|
pctReserve: Double; |
|
Registers: array[1..NumGenregisters] of Double; |
|
Derivatives: array[1..NumGenregisters] of Double; |
Methods
procedure GetTerminalCurrents(Curr: pComplexArray); OVERRIDE; |
|
constructor Create(ParClass: TDSSClass; const SourceName: String); |
|
destructor Destroy; OVERRIDE; |
|
procedure PropertySideEffects(Idx: Integer; previousIntVal: Integer = 0); override; |
|
procedure MakeLike(OtherPtr: Pointer); override; |
|
procedure RecalcElementData; OVERRIDE; |
|
procedure CalcYPrim; OVERRIDE; |
|
procedure Set_ConductorClosed(Index: Integer; Value: Boolean); OVERRIDE; |
|
function InjCurrents: Integer; OVERRIDE; |
|
function NumVariables: Integer; OVERRIDE; |
|
procedure GetAllVariables(States: pDoubleArray); OVERRIDE; |
|
function Get_Variable(i: Integer): Double; OVERRIDE; |
|
procedure Set_Variable(i: Integer; Value: Double); OVERRIDE; |
|
function VariableName(i: Integer): String; OVERRIDE; |
|
procedure SetNominalGeneration; |
|
procedure Randomize(Opt: Integer); |
|
procedure ResetRegisters; |
|
procedure TakeSample; |
|
procedure InitDQDVCalc; |
|
procedure BumpUpQ; |
|
procedure RememberQV; |
|
procedure CalcDQDV; |
|
procedure ResetStartPoint; |
|
procedure InitStateVars; OVERRIDE; |
|
procedure IntegrateStates; OVERRIDE; |
|
procedure InitHarmonics; OVERRIDE; |
|
procedure MakePosSequence(); OVERRIDE; |
Properties
property PresentkW: Double READ Get_PresentkW WRITE Set_PresentkW; |
|
property PowerFactor: Double READ PFNominal WRITE Set_PowerFactor; |
|
property PresentkV: Double READ Get_PresentkV WRITE Set_PresentkV; |
|
property Presentkvar: Double READ Get_Presentkvar; |
Description
Fields
IsFixed: LongBool; |
|
Connection: Integer; |
|
if Fixed, always at base value |
DailyDispShapeObj: TLoadShapeObj; |
|
0 = line-neutral; 1=Delta |
DutyShapeObj: TLoadShapeObj; |
|
Daily Generator Shape for this load |
YearlyShapeObj: TLoadShapeObj; |
|
Shape for this generator |
DutyStart: Double; |
|
Shape for this Generator |
GenClass: Integer; |
|
starting time offset into the DutyShape [hrs] for this generator |
GenModel: Integer; |
|
GenVars: TGeneratorVars; |
|
Variation with voltage |
kvarBase: Double; |
|
State Variables |
kvarMax: Double; |
|
kvarMin: Double; |
|
kWBase: Double; |
|
PFNominal: Double; |
|
Vpu: Double; |
|
Vmaxpu: Double; |
|
per unit Target voltage for generator with voltage control |
Vminpu: Double; |
|
ForcedON: LongBool; |
|
GenActive: Boolean; |
|
Fuel related variables |
UseFuel: LongBool; |
|
FuelkWh: Double; |
|
pctFuel: Double; |
|
pctReserve: Double; |
|
Registers: array[1..NumGenregisters] of Double; |
|
Derivatives: array[1..NumGenregisters] of Double; |
|
Methods
procedure GetTerminalCurrents(Curr: pComplexArray); OVERRIDE; |
|
constructor Create(ParClass: TDSSClass; const SourceName: String); |
|
destructor Destroy; OVERRIDE; |
|
procedure PropertySideEffects(Idx: Integer; previousIntVal: Integer = 0); override; |
|
procedure MakeLike(OtherPtr: Pointer); override; |
|
procedure RecalcElementData; OVERRIDE; |
|
procedure CalcYPrim; OVERRIDE; |
|
procedure Set_ConductorClosed(Index: Integer; Value: Boolean); OVERRIDE; |
|
function InjCurrents: Integer; OVERRIDE; |
|
function NumVariables: Integer; OVERRIDE; |
|
procedure GetAllVariables(States: pDoubleArray); OVERRIDE; |
|
function Get_Variable(i: Integer): Double; OVERRIDE; |
|
procedure Set_Variable(i: Integer; Value: Double); OVERRIDE; |
|
function VariableName(i: Integer): String; OVERRIDE; |
|
procedure SetNominalGeneration; |
|
procedure Randomize(Opt: Integer); |
|
procedure ResetRegisters; |
|
0 = reset to 1.0; 1 = Gaussian around mean and std Dev ; // 2 = uniform |
procedure TakeSample; |
|
procedure InitDQDVCalc; |
|
Procedures for setting the DQDV used by the Solution Object |
procedure BumpUpQ; |
|
procedure RememberQV; |
|
procedure CalcDQDV; |
|
procedure ResetStartPoint; |
|
procedure InitStateVars; OVERRIDE; |
|
Support for Dynamics Mode |
procedure IntegrateStates; OVERRIDE; |
|
procedure InitHarmonics; OVERRIDE; |
|
Support for Harmonics Mode |
procedure MakePosSequence(); OVERRIDE; |
|
Properties
property PresentkW: Double READ Get_PresentkW WRITE Set_PresentkW; |
|
Make a positive Sequence Model |
property PowerFactor: Double READ PFNominal WRITE Set_PowerFactor; |
|
property PresentkV: Double READ Get_PresentkV WRITE Set_PresentkV; |
|
TODO: remove? |
property Presentkvar: Double READ Get_Presentkvar; |
|
Generated by PasDoc 0.16.0.