Class TStorage2Obj

Unit

Declaration

type TStorage2Obj = 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 StateDesired: Integer;
Public StorageVars: TStorage2Vars;
Public AVRMode: Boolean;
Public VBase: Double;
Public Vmaxpu: Double;
Public Vminpu: Double;
Public Connection: Integer;
Public DailyShapeObj: TLoadShapeObj;
Public DutyShapeObj: TLoadShapeObj;
Public YearlyShapeObj: TLoadShapeObj;
Public pctkWOut: Double;
Public pctkWIn: Double;
Public pctReserve: Double;
Public DispatchMode: Integer;
Public pctIdlekW: Double;
Public kvarRequested: Double;
Public kWRequested: Double;
Public kWOutIdling: Double;
Public pctIdlekvar: Double;
Public pctChargeEff: Double;
Public pctDischargeEff: Double;
Public DischargeTrigger: Double;
Public ChargeTrigger: Double;
Public ChargeTime: Double;
Public kWhBeforeUpdate: Double;
Public CurrentkvarLimit: Double;
Public CurrentkvarLimitNeg: Double;
Public CutOutkWAC: Double;
Public CutInkWAC: Double;
Public InverterCurveObj: TXYCurveObj;
Public FVWStateRequested: Boolean;
Public StorageClass: Integer;
Public VoltageModel: Integer;
Public PFNominal: Double;
Public Registers: array[1..NumStorage2Registers] of Double;
Public Derivatives: array[1..NumStorage2Registers] of Double;
Public VWMode: Boolean;
Public VVMode: Boolean;
Public DRCMode: Boolean;
Public WPMode: Boolean;
Public WVMode: Boolean;
Public InverterON: Boolean;
Public varMode: Integer;
Public VarFollowInverter: LongBool;

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 Set_ConductorClosed(Index: Integer; Value: Boolean); OVERRIDE;
Public procedure RecalcElementData(); OVERRIDE;
Public procedure CalcYPrim(); 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 Set_Maxkvar(const Value: Double);
Public procedure Set_Maxkvarneg(const Value: Double);
Public procedure SetNominalStorageOutput();
Public procedure Randomize(Opt: Integer);
Public procedure ResetRegisters;
Public procedure TakeSample();
Public procedure InitStateVars(); OVERRIDE;
Public procedure IntegrateStates(); OVERRIDE;
Public procedure InitHarmonics(); OVERRIDE;
Public procedure MakePosSequence(); OVERRIDE;
Public function UsingCIMDynamics(): Boolean;

Properties

Public property kW: Double READ Get_kW WRITE Set_kW;
Public property kWDesired: Double READ Get_kWDesired;
Public property PresentkW: Double READ Get_PresentkW;
Public property Presentkvar: Double READ Get_Presentkvar;
Public property PresentkV: Double READ Get_PresentkV;
Public property PowerFactor: Double READ PFNominal WRITE Set_PowerFactor;
Public property kVARating: Double READ StorageVars.FkVARating WRITE Set_kVARating;
Public property kvarLimit: Double READ StorageVars.Fkvarlimit WRITE Set_Maxkvar;
Public property kvarLimitneg: Double READ StorageVars.Fkvarlimitneg WRITE Set_Maxkvarneg;
Public property StorageState: Integer READ FState WRITE Set_StorageState;
Public property kWTotalLosses: Double READ Get_kWTotalLosses;
Public property kWIdlingLosses: Double READ Get_kWIdlingLosses;
Public property kWInverterLosses: Double READ Get_InverterLosses;
Public property kWChDchLosses: Double READ Get_kWChDchLosses;
Public property DCkW: Double READ Get_DCkW;
Public property MinModelVoltagePU: Double READ VminPu;

Description

Fields

Public StateDesired: Integer;
 
Public StorageVars: TStorage2Vars;

Stores desired state (before any change due to kWh limits or %CutIn/%CutOut

Public AVRMode: Boolean;
 
Public VBase: Double;

boolean indicating whether under AVR mode from ExpControl (or InvControl, but that does not seem to be implemented yet)

Public Vmaxpu: Double;

Base volts suitable for computing currents

Public Vminpu: Double;
 
Public Connection: Integer;
 
Public DailyShapeObj: TLoadShapeObj;

0 = line-neutral; 1=Delta

Public DutyShapeObj: TLoadShapeObj;

Daily Storage element Shape for this load

Public YearlyShapeObj: TLoadShapeObj;

Shape for this Storage element

Public pctkWOut: Double;

Shape for this Storage element

Public pctkWIn: Double;

percent of kW rated output currently dispatched

Public pctReserve: Double;
 
Public DispatchMode: Integer;
 
Public pctIdlekW: Double;
 
Public kvarRequested: Double;
 
Public kWRequested: Double;
 
Public kWOutIdling: Double;
 
Public pctIdlekvar: Double;
 
Public pctChargeEff: Double;
 
Public pctDischargeEff: Double;
 
Public DischargeTrigger: Double;
 
Public ChargeTrigger: Double;
 
Public ChargeTime: Double;
 
Public kWhBeforeUpdate: Double;
 
Public CurrentkvarLimit: Double;
 
Public CurrentkvarLimitNeg: Double;
 
Public CutOutkWAC: Double;
 
Public CutInkWAC: Double;

CutInkW reflected to the AC side of the inverter

Public InverterCurveObj: TXYCurveObj;

CutOutkW reflected to the AC side of the inverter Inverter efficiency curve

Public FVWStateRequested: Boolean;
 
Public StorageClass: Integer;

TEST Flag indicating if VW function has requested a specific state in last control iteration

Public VoltageModel: Integer;
 
Public PFNominal: Double;

Variation with voltage

Public Registers: array[1..NumStorage2Registers] of Double;
 
Public Derivatives: array[1..NumStorage2Registers] of Double;
 
Public VWMode: Boolean;

Variables for InvControl's Volt-Watt function

Public VVMode: Boolean;

boolean indicating if under volt-watt control mode from InvControl (not ExpControl)

Public DRCMode: Boolean;

boolean indicating if under volt-var mode from InvControl

Public WPMode: Boolean;

boolean indicating if under DRC mode from InvControl

Public WVMode: Boolean;

boolean indicating if under watt-pf mode from InvControl

Public InverterON: Boolean;

boolean indicating if under watt-var mode from InvControl

Public varMode: Integer;
 
Public VarFollowInverter: LongBool;
 

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 Set_ConductorClosed(Index: Integer; Value: Boolean); OVERRIDE;
 
Public procedure RecalcElementData(); OVERRIDE;
 
Public procedure CalcYPrim(); 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 Set_Maxkvar(const Value: Double);
 
Public procedure Set_Maxkvarneg(const Value: Double);
 
Public procedure SetNominalStorageOutput();
 
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 InitStateVars(); OVERRIDE;

Support for Dynamics Mode

Public procedure IntegrateStates(); OVERRIDE;
 
Public procedure InitHarmonics(); OVERRIDE;

Support for Harmonics Mode

Public procedure MakePosSequence(); OVERRIDE;
 
Public function UsingCIMDynamics(): Boolean;
 

Properties

Public property kW: Double READ Get_kW WRITE Set_kW;

Make a positive Sequence Model

Public property kWDesired: Double READ Get_kWDesired;
 
Public property PresentkW: Double READ Get_PresentkW;
 
Public property Presentkvar: Double READ Get_Presentkvar;

Present kW at inverter output

Public property PresentkV: Double READ Get_PresentkV;

Present kvar at inverter output

Public property PowerFactor: Double READ PFNominal WRITE Set_PowerFactor;
 
Public property kVARating: Double READ StorageVars.FkVARating WRITE Set_kVARating;
 
Public property kvarLimit: Double READ StorageVars.Fkvarlimit WRITE Set_Maxkvar;
 
Public property kvarLimitneg: Double READ StorageVars.Fkvarlimitneg WRITE Set_Maxkvarneg;
 
Public property StorageState: Integer READ FState WRITE Set_StorageState;
 
Public property kWTotalLosses: Double READ Get_kWTotalLosses;
 
Public property kWIdlingLosses: Double READ Get_kWIdlingLosses;
 
Public property kWInverterLosses: Double READ Get_InverterLosses;
 
Public property kWChDchLosses: Double READ Get_kWChDchLosses;
 
Public property DCkW: Double READ Get_DCkW;
 
Public property MinModelVoltagePU: Double READ VminPu;
 

Generated by PasDoc 0.16.0.