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

Overview

Fields

Public IsFixed: LongBool;
Public Connection: Integer;
Public DailyDispShapeObj: TLoadShapeObj;
Public DutyShapeObj: TLoadShapeObj;
Public YearlyShapeObj: TLoadShapeObj;
Public DutyStart: Double;
Public GenClass: Integer;
Public GenModel: Integer;
Public GenVars: TGeneratorVars;
Public kvarBase: Double;
Public kvarMax: Double;
Public kvarMin: Double;
Public kWBase: Double;
Public PFNominal: Double;
Public Vpu: Double;
Public Vmaxpu: Double;
Public Vminpu: Double;
Public ForcedON: LongBool;
Public GenActive: Boolean;
Public UseFuel: LongBool;
Public FuelkWh: Double;
Public pctFuel: Double;
Public pctReserve: Double;
Public Registers: array[1..NumGenregisters] of Double;
Public Derivatives: array[1..NumGenregisters] of Double;

Methods

Protected procedure GetTerminalCurrents(Curr: pComplexArray); OVERRIDE;
Public constructor Create(ParClass: TDSSClass; const SourceName: String);
Public destructor Destroy; OVERRIDE;
Public procedure PropertySideEffects(Idx: Integer; previousIntVal: Integer = 0); override;
Public procedure MakeLike(OtherPtr: Pointer); override;
Public procedure RecalcElementData; OVERRIDE;
Public procedure CalcYPrim; OVERRIDE;
Public procedure Set_ConductorClosed(Index: Integer; Value: Boolean); OVERRIDE;
Public function InjCurrents: Integer; OVERRIDE;
Public function NumVariables: Integer; OVERRIDE;
Public procedure GetAllVariables(States: pDoubleArray); OVERRIDE;
Public function Get_Variable(i: Integer): Double; OVERRIDE;
Public procedure Set_Variable(i: Integer; Value: Double); OVERRIDE;
Public function VariableName(i: Integer): String; OVERRIDE;
Public procedure SetNominalGeneration;
Public procedure Randomize(Opt: Integer);
Public procedure ResetRegisters;
Public procedure TakeSample;
Public procedure InitDQDVCalc;
Public procedure BumpUpQ;
Public procedure RememberQV;
Public procedure CalcDQDV;
Public procedure ResetStartPoint;
Public procedure InitStateVars; OVERRIDE;
Public procedure IntegrateStates; OVERRIDE;
Public procedure InitHarmonics; OVERRIDE;
Public procedure MakePosSequence(); OVERRIDE;

Properties

Public property PresentkW: Double READ Get_PresentkW WRITE Set_PresentkW;
Public property PowerFactor: Double READ PFNominal WRITE Set_PowerFactor;
Public property PresentkV: Double READ Get_PresentkV WRITE Set_PresentkV;
Public property Presentkvar: Double READ Get_Presentkvar;

Description

Fields

Public IsFixed: LongBool;
 
Public Connection: Integer;

if Fixed, always at base value

Public DailyDispShapeObj: TLoadShapeObj;

0 = line-neutral; 1=Delta

Public DutyShapeObj: TLoadShapeObj;

Daily Generator Shape for this load

Public YearlyShapeObj: TLoadShapeObj;

Shape for this generator

Public DutyStart: Double;

Shape for this Generator

Public GenClass: Integer;

starting time offset into the DutyShape [hrs] for this generator

Public GenModel: Integer;
 
Public GenVars: TGeneratorVars;

Variation with voltage

Public kvarBase: Double;

State Variables

Public kvarMax: Double;
 
Public kvarMin: Double;
 
Public kWBase: Double;
 
Public PFNominal: Double;
 
Public Vpu: Double;
 
Public Vmaxpu: Double;

per unit Target voltage for generator with voltage control

Public Vminpu: Double;
 
Public ForcedON: LongBool;
 
Public GenActive: Boolean;

Fuel related variables

Public UseFuel: LongBool;
 
Public FuelkWh: Double;
 
Public pctFuel: Double;
 
Public pctReserve: Double;
 
Public Registers: array[1..NumGenregisters] of Double;
 
Public Derivatives: array[1..NumGenregisters] of Double;
 

Methods

Protected procedure GetTerminalCurrents(Curr: pComplexArray); OVERRIDE;
 
Public constructor Create(ParClass: TDSSClass; const SourceName: String);
 
Public destructor Destroy; OVERRIDE;
 
Public procedure PropertySideEffects(Idx: Integer; previousIntVal: Integer = 0); override;
 
Public procedure MakeLike(OtherPtr: Pointer); override;
 
Public procedure RecalcElementData; OVERRIDE;
 
Public procedure CalcYPrim; OVERRIDE;
 
Public procedure Set_ConductorClosed(Index: Integer; Value: Boolean); OVERRIDE;
 
Public function InjCurrents: Integer; OVERRIDE;
 
Public function NumVariables: Integer; OVERRIDE;
 
Public procedure GetAllVariables(States: pDoubleArray); OVERRIDE;
 
Public function Get_Variable(i: Integer): Double; OVERRIDE;
 
Public procedure Set_Variable(i: Integer; Value: Double); OVERRIDE;
 
Public function VariableName(i: Integer): String; OVERRIDE;
 
Public procedure SetNominalGeneration;
 
Public procedure Randomize(Opt: Integer);
 
Public procedure ResetRegisters;

0 = reset to 1.0; 1 = Gaussian around mean and std Dev ; // 2 = uniform

Public procedure TakeSample;
 
Public procedure InitDQDVCalc;

Procedures for setting the DQDV used by the Solution Object

Public procedure BumpUpQ;
 
Public procedure RememberQV;
 
Public procedure CalcDQDV;
 
Public procedure ResetStartPoint;
 
Public procedure InitStateVars; OVERRIDE;

Support for Dynamics Mode

Public procedure IntegrateStates; OVERRIDE;
 
Public procedure InitHarmonics; OVERRIDE;

Support for Harmonics Mode

Public procedure MakePosSequence(); OVERRIDE;
 

Properties

Public property PresentkW: Double READ Get_PresentkW WRITE Set_PresentkW;

Make a positive Sequence Model

Public property PowerFactor: Double READ PFNominal WRITE Set_PowerFactor;
 
Public property PresentkV: Double READ Get_PresentkV WRITE Set_PresentkV;

TODO: remove?

Public property Presentkvar: Double READ Get_Presentkvar;
 

Generated by PasDoc 0.16.0.