Class TDSSCktElement
Unit
Declaration
type TDSSCktElement = class(TDSSObject)
Description
this is a GUID compliant to RFC 4122, v4
Hierarchy
- TObject
- TNamedObject
- TDSSObject
- TDSSCktElement
Overview
Fields
FEnabled: Boolean; |
|
Fnterms: Int8; |
|
Fnconds: Int8; |
|
Fnphases: Integer; |
|
ComplexBuffer: pComplexArray; |
|
IterminalSolutionCount: Integer; |
|
BusIndex: Integer; |
|
YPrim_Series: TCMatrix; |
|
YPrim_Shunt: TCMatrix; |
|
YPrim: TCMatrix; |
|
FYprimFreq: Double; |
|
NodeRef: pIntegerArray; |
|
Yorder: Integer; |
|
ControlElementList: TDSSPointerList; |
|
Iterminal: pComplexArray; |
|
Vterminal: pComplexArray; |
|
BaseFrequency: Double; |
|
Terminals: Array of TPowerTerminal; |
|
TerminalsChecked: Array of Boolean; |
|
ActiveTerminal: ˆTPowerTerminal; |
|
PublicDataSize: Integer; |
|
PublicDataStruct: Pointer; |
Methods
procedure Set_Enabled(Value: Boolean); VIRTUAL; |
|
procedure Set_ConductorClosed(Index: Integer; Value: Boolean); VIRTUAL; |
|
procedure Set_NTerms(Value: Int8); |
|
procedure Set_Handle(Value: Integer); |
|
constructor Create(ParClass: TDSSClass); |
|
destructor Destroy; OVERRIDE; |
|
procedure MakeLike(OtherObj: Pointer); override; |
|
function GetYPrim(var Ymatrix: TCmatrix; Opt: Integer): Integer; VIRTUAL; |
|
function GetYPrimValues(Opt: Integer): pComplexArray; VIRTUAL; |
|
function MaxTerminalOneIMag: Double; |
|
procedure ComputeIterminal; VIRTUAL; |
|
procedure ComputeVterminal; |
|
procedure ZeroITerminal; inline; |
|
procedure GetCurrents(Curr: pComplexArray); VIRTUAL; ABSTRACT; |
|
function InjCurrents: Integer; VIRTUAL; |
|
function GetBus(i: Integer): String; |
|
procedure SetBus(i: Integer; const s: String); virtual; |
|
procedure SetNodeRef(iTerm: Integer; NodeRefArray: pIntegerArray); VIRTUAL; |
|
procedure RecalcElementData; VIRTUAL; ABSTRACT; |
|
procedure CalcYPrim; VIRTUAL; |
|
procedure MakePosSequence(); VIRTUAL; |
|
procedure GetTermVoltages(iTerm: Integer; VBuffer: PComplexArray); |
|
procedure GetPhasePower(PowerBuffer: pComplexArray); VIRTUAL; |
|
procedure GetPhaseLosses(var Num_Phases: Integer; LossBuffer: pComplexArray); VIRTUAL; |
|
procedure GetLosses(var TotalLosses, LoadLosses, NoLoadLosses: Complex); VIRTUAL; |
|
procedure GetSeqLosses(var PosSeqLosses, NegSeqLosses, ZeroModeLosses: complex); VIRTUAL; |
|
procedure DumpProperties(F: TFileStream; Complete: Boolean; Leaf: Boolean = False); OVERRIDE; |
|
procedure SumCurrents; |
|
procedure Get_Current_Mags(cMBuffer: pDoubleArray); |
Properties
property Handle: Integer READ FHandle WRITE Set_Handle; |
|
property Enabled: Boolean READ FEnabled WRITE Set_Enabled; |
|
property YPrimInvalid: Boolean READ FYPrimInvalid WRITE set_YprimInvalid; |
|
property YPrimFreq: Double READ FYprimFreq WRITE Set_Freq; |
|
property NTerms: Int8 READ Fnterms WRITE Set_NTerms; |
|
property NConds: Int8 READ Fnconds WRITE Set_Nconds; |
|
property NPhases: Integer READ Fnphases; |
|
property FirstBus: String READ Get_FirstBus; |
|
property NextBus: String READ Get_NextBus; |
|
property Losses: Complex READ Get_Losses; |
|
property Power[idxTerm:Integer]: Complex READ Get_Power; |
|
property MaxPower[idxTerm:Integer]: Complex READ Get_MaxPower; |
|
property MaxCurrent[idxTerm:Integer]: Double READ Get_MaxCurrent; |
|
property MaxVoltage[idxTerm:Integer]: Double READ Get_MaxVoltage; |
|
property ActiveTerminalIdx: Int8 READ Get_ActiveTerminal WRITE Set_ActiveTerminal; |
|
property Closed[Index:Integer]: Boolean READ Get_ConductorClosed WRITE Set_ConductorClosed; |
|
property MaxCurrentAng[idxTerm:Integer]: Double READ Get_MaxCurrentAng; |
|
property MaxVoltageAng[idxTerm:Integer]: Double READ Get_MaxVoltageAng; |
|
property PCEValue[Index:Integer;ValType:Integer]: Double READ Get_PCE_Value; |
Description
Fields
FEnabled: Boolean; |
|
Fnterms: Int8; |
|
Fnconds: Int8; |
|
Fnphases: Integer; |
|
no. conductors per terminal |
ComplexBuffer: pComplexArray; |
|
Phases, this device – TODO: Int8 someday... |
IterminalSolutionCount: Integer; |
|
BusIndex: Integer; |
|
YPrim_Series: TCMatrix; |
|
YPrim_Shunt: TCMatrix; |
|
YPrim: TCMatrix; |
|
FYprimFreq: Double; |
|
Order will be NTerms * Ncond |
NodeRef: pIntegerArray; |
|
Total Noderef array for element |
Yorder: Integer; |
|
Need fast access to this |
ControlElementList: TDSSPointerList; |
|
LastTerminalChecked: Int8; // Flag used in tree searches – UNUSED |
Iterminal: pComplexArray; |
|
Pointer to control for this device |
Vterminal: pComplexArray; |
|
Others need this |
BaseFrequency: Double; |
|
Terminals: Array of TPowerTerminal; |
|
TerminalsChecked: Array of Boolean; |
|
ActiveTerminal: ˆTPowerTerminal; |
|
PublicDataSize: Integer; |
|
PublicDataStruct: Pointer; |
|
size of PublicDataStruct |
Methods
procedure Set_Enabled(Value: Boolean); VIRTUAL; |
|
Frequency at which YPrim has been computed |
procedure Set_ConductorClosed(Index: Integer; Value: Boolean); VIRTUAL; |
|
procedure Set_NTerms(Value: Int8); |
|
procedure Set_Handle(Value: Integer); |
|
constructor Create(ParClass: TDSSClass); |
|
Generic Pointer to public data Block that may be access by other classes of elements Accessing app has to know the structure Inited to Nil. If Nil, accessing app should ignore |
destructor Destroy; OVERRIDE; |
|
procedure MakeLike(OtherObj: Pointer); override; |
|
function GetYPrim(var Ymatrix: TCmatrix; Opt: Integer): Integer; VIRTUAL; |
|
function GetYPrimValues(Opt: Integer): pComplexArray; VIRTUAL; |
|
returns values of array |
function MaxTerminalOneIMag: Double; |
|
procedure ComputeIterminal; VIRTUAL; |
|
Max of Iterminal 1 phase currents |
procedure ComputeVterminal; |
|
Computes Iterminal for this device |
procedure ZeroITerminal; inline; |
|
procedure GetCurrents(Curr: pComplexArray); VIRTUAL; ABSTRACT; |
|
function InjCurrents: Integer; VIRTUAL; |
|
Get present value of terminal Curr for reports |
function GetBus(i: Integer): String; |
|
Applies to PC Elements Puts straight into Solution Array |
procedure SetBus(i: Integer; const s: String); virtual; |
|
Get bus name by index |
procedure SetNodeRef(iTerm: Integer; NodeRefArray: pIntegerArray); VIRTUAL; |
|
Set bus name by index |
procedure RecalcElementData; VIRTUAL; ABSTRACT; |
|
Set NodeRef Array for fast solution with intrinsics |
procedure CalcYPrim; VIRTUAL; |
|
procedure MakePosSequence(); VIRTUAL; |
|
procedure GetTermVoltages(iTerm: Integer; VBuffer: PComplexArray); |
|
Make a positive Sequence Model |
procedure GetPhasePower(PowerBuffer: pComplexArray); VIRTUAL; |
|
procedure GetPhaseLosses(var Num_Phases: Integer; LossBuffer: pComplexArray); VIRTUAL; |
|
procedure GetLosses(var TotalLosses, LoadLosses, NoLoadLosses: Complex); VIRTUAL; |
|
procedure GetSeqLosses(var PosSeqLosses, NegSeqLosses, ZeroModeLosses: complex); VIRTUAL; |
|
procedure DumpProperties(F: TFileStream; Complete: Boolean; Leaf: Boolean = False); OVERRIDE; |
|
procedure SumCurrents; |
|
procedure Get_Current_Mags(cMBuffer: pDoubleArray); |
|
Properties
property Handle: Integer READ FHandle WRITE Set_Handle; |
|
property Enabled: Boolean READ FEnabled WRITE Set_Enabled; |
|
property YPrimInvalid: Boolean READ FYPrimInvalid WRITE set_YprimInvalid; |
|
property YPrimFreq: Double READ FYprimFreq WRITE Set_Freq; |
|
property NTerms: Int8 READ Fnterms WRITE Set_NTerms; |
|
property NConds: Int8 READ Fnconds WRITE Set_Nconds; |
|
property NPhases: Integer READ Fnphases; |
|
property FirstBus: String READ Get_FirstBus; |
|
property NextBus: String READ Get_NextBus; |
|
property Losses: Complex READ Get_Losses; |
|
null string if no more values |
property Power[idxTerm:Integer]: Complex READ Get_Power; |
|
property MaxPower[idxTerm:Integer]: Complex READ Get_MaxPower; |
|
Total power in active terminal |
property MaxCurrent[idxTerm:Integer]: Double READ Get_MaxCurrent; |
|
Total power in active terminal |
property MaxVoltage[idxTerm:Integer]: Double READ Get_MaxVoltage; |
|
Max current in active terminal |
property ActiveTerminalIdx: Int8 READ Get_ActiveTerminal WRITE Set_ActiveTerminal; |
|
Max voltage in active terminal |
property Closed[Index:Integer]: Boolean READ Get_ConductorClosed WRITE Set_ConductorClosed; |
|
property MaxCurrentAng[idxTerm:Integer]: Double READ Get_MaxCurrentAng; |
|
property MaxVoltageAng[idxTerm:Integer]: Double READ Get_MaxVoltageAng; |
|
Max current in active terminal |
property PCEValue[Index:Integer;ValType:Integer]: Double READ Get_PCE_Value; |
|
Max current in active terminal |
Generated by PasDoc 0.16.0.