TStorageObj

Type-access

Command

Description – (Specific class) otherwise generic

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

  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
  32. DoDynamicMode
  33. DoUserModel
  34. SetDragHandRegister
  35. Get_PresentkW
  36. Get_Presentkvar
  37. Get_PresentkV
  38. Set_PresentkV
  39. Set_Presentkvar
  40. Set_PresentkW
  41. Set_PowerFactor
  42. ComputeInverterPower
  43. ComputekWkvar
  44. Set_pf_wp_nominal
  45. Get_Varmode
  46. Set_Varmode
  47. Get_VWmode
  48. Set_VVmode
  49. Get_VVmode
  50. Set_DRCmode
  51. Get_DRCmode
  52. Set_AVRmode
  53. Get_AVRmode
  54. Set_VWmode
  55. kWOut_Calc
  56. Get_WPmode
  57. Set_WPmode
  58. Get_WVmode
  59. Set_WVmode
  60. Get_InverterON
  61. Set_InverterON
  62. Get_VarFollowInverter
  63. Set_VarFollowInverter
  64. Set_Maxkvar
  65. Set_Maxkvarneg
  66. ResetRegisters
  67. TakeSample

Method- private

ComputePresentkW

Calculates the present power output considering the model features.

Method- private

ComputeDCkW

Computes actual DC power (kW) to Update Storage State of Charge (SoC).

Method- private

CalcStorageModelContribution

Calculates Storage element current and adds it properly into the injcurrent array routines may also compute ITerminal  (ITerminalUpdated flag).

Method- private

DoConstantPQStorageObj

Compute total terminal current for Constant PQ model.

Method- private

DoConstantZStorageObj

Compute total terminal current for constant Z model.

Method- private

DoDynaModel

Implements the routine for doing the user written dynamics model.

Method- private

CheckStateTriggerLevel

This is where we set the state of the Storage element.

Method- private

UpdateStorage

Updates Storage elements based on present kW and IntervalHrs variable.

Property- private

NormalizeToTOD

Normalizes time to a floating-point number representing time of day If Hour > 24, time should be 0 to 24.

Property- private

InterpretState

Interprets the present state of the storage device (charging, discharging, idle).

Property- private

DecodeState

Returns the name of the storage state (charging, discharging, idle) as string.

Property- private

Get_kvarRequested

Returns the present kvar requested.

Property- private

Get_kWRequested

Returns the present kW requested.

Method- private

Set_kW

Sets the present kW rating.

Property- private

Get_kW

Returns the present kW rating.

Method- private

Set_kWRequested

Sets the present kW requested.

Method- private

Set_kvarRequested

Sets the present kvar requested.

Method- private

Set_StorageState

Sets the storage state using the given integer.

Method- private

Set_pctkWOut

Sets the discharging efficiency for the storage.

Method- private

Set_pctkWIn

Sets the charging efficiency for the storage.

Property- private

Get_DCkW

Returns the DC power rating for the storage.

Property- private

Get_kWTotalLosses

Returns total losses: Idling + inverter + interface losses.

Property- private

Get_InverterLosses

Returns the inverter losses.

Property- private

Get_kWIdlingLosses

Returns Idling losses.

Property- private

Get_kWChDchLosses

Returns the DC/AC interface losses.

Method- private

Update_EfficiencyFactor

Updates the efficiency factor in time.

Method- private

Set_StateDesired

Sets the state for the storage device using the given integer.

Property- private

Get_kWDesired

Returns the kW desired, normally set by a controller.

Method- private

Set_pctkWrated

Sets the kW rating as percentage of the nominal kW.

Property- private

Get_CutOutkWAC

Gets the cutout limit for the inverter generation threshold. 

Property- private

Get_CutInkWAC

Gets the cut in limit for the inverter charging threshold. 

Method-public

SetNominalStorageOutput

Sets the power output for the storage according to its present features.