Click or drag to resize

CktElement Class

[This is preliminary documentation and is subject to change.]

[Missing <summary> documentation for "T:dss_sharp.CktElement"]

Inheritance Hierarchy

Namespace:  dss_sharp
Assembly:  dss_sharp (in dss_sharp.dll) Version: 1.0.0
Syntax
public class CktElement : ContextState

The CktElement type exposes the following members.

Constructors
  NameDescription
Public methodCktElement
Initializes a new instance of the CktElement class
Top
Properties
  NameDescription
Public propertyAllPropertyNames
Array containing all property names of the active device.
Public propertyAllVariableNames
Array of strings listing all the published variable names, if a PCElement. Otherwise, null string.
Public propertyAllVariableValues
Array of doubles. Values of state variables of active element if PC element.
Public propertyBusNames
Array of strings. Get Bus definitions to which each terminal is connected.
Public propertyCplxSeqCurrents
Complex double array of Sequence Currents for all conductors of all terminals of active circuit element.
Public propertyCplxSeqVoltages
Complex double array of Sequence Voltage for all terminals of active circuit element.
Public propertyCurrents
Complex array of currents into each conductor of each terminal
Public propertyCurrentsMagAng
Currents in magnitude, angle format as a array of doubles.
Public propertyDisplayName
Display name of the object (not necessarily unique)
Public propertyEmergAmps
Emergency Ampere Rating for PD elements
Public propertyEnabled
Boolean indicating that element is currently in the circuit.
Public propertyEnergyMeter
Name of the Energy Meter this element is assigned to.
Public propertyGUID
globally unique identifier for this object
Public propertyHandle
Pointer to this object
Public propertyHasOCPDevice
True if a recloser, relay, or fuse controlling this ckt element. OCP = Overcurrent Protection
Public propertyHasSwitchControl
This element has a SwtControl attached.
Public propertyHasVoltControl
This element has a CapControl or RegControl attached.
Public propertyIsIsolated
Returns true if the current active element is isolated. Note that this only fetches the current value. See also the Topology interface.
Public propertyLosses
Total losses in the element: two-element complex array
Public propertyName
Full Name of Active Circuit Element
Public propertyNodeOrder
Array of integer containing the node numbers (representing phases, for example) for each conductor of each terminal.
Public propertyNodeRef
Array of integers, a copy of the internal NodeRef of the CktElement.
Public propertyNormalAmps
Normal ampere rating for PD Elements
Public propertyNumConductors
Number of Conductors per Terminal
Public propertyNumControls
Number of controls connected to this device. Use to determine valid range for index into Controller array.
Public propertyNumPhases
Number of Phases
Public propertyNumProperties
Number of Properties this Circuit Element.
Public propertyNumTerminals
Number of Terminals this Circuit Element
Public propertyOCPDevIndex
Index into Controller list of OCP Device controlling this CktElement
Public propertyOCPDevType
0=None; 1=Fuse; 2=Recloser; 3=Relay; Type of OCP controller device
Public propertyPhaseLosses
Complex array of losses by phase
Public propertyPowers
Complex array of powers into each conductor of each terminal
Public propertyResiduals
Residual currents for each terminal: (mag, angle)
Public propertySeqCurrents
Double array of symmetrical component currents into each 3-phase terminal
Public propertySeqPowers
Double array of sequence powers into each 3-phase teminal
Public propertySeqVoltages
Double array of symmetrical component voltages at each 3-phase terminal
Public propertyTotalPowers
Returns the total powers (complex) at ALL terminals of the active circuit element.
Public propertyVoltages
Complex array of voltages at terminals
Public propertyVoltagesMagAng
Voltages at each conductor in magnitude, angle form as array of doubles.
Public propertyYprim
YPrim matrix, column order, complex numbers (paired)
Top
Methods
  NameDescription
Protected methodCheckForError (Inherited from ContextState.)
Public methodClose
Public methodController
Full name of the i-th controller attached to this element. Ex: str = Controller(2). See NumControls to determine valid index range
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetContextHandle
Returns the low-level handle of the current OpenDSS/DSS-CAPI instance.
(Inherited from ContextState.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodIsOpen
Protected methodMemberwiseClone (Inherited from Object.)
Public methodOpen
Public methodToString (Inherited from Object.)
Public methodVariable
Value as return and error code in Code parameter. For PCElement, get the value of a variable by name. If Code>0 then no variable by this name or not a PCelement.
Public methodVariableByIndex(Int32, Int32)
Value as return and error code in Code parameter. For PCElement, get the value of a variable by integer index. If Code>0 then no variable by this index or not a PCelement.
Public methodVariableByIndex(Int32, Int32, Double)
Set the Value of a variable by indx if a PCElement. If Code>0 then no variable by this index or not a PCelement.
Public methodVariableByName(String, Int32)
Value as return and error code in Code parameter. For PCElement, get the value of a variable by name. If Code>0 then no variable by this name or not a PCelement.
Public methodVariableByName(String, Int32, Double)
Set the Value of a variable by name if a PCElement. If Code>0 then no variable by this name or not a PCelement.
Public methodVariablei
Value as return and error code in Code parameter. For PCElement, get the value of a variable by integer index. If Code>0 then no variable by this index or not a PCelement.
Top
Fields
  NameDescription
Protected fieldapiutil (Inherited from ContextState.)
Protected fieldctx (Inherited from ContextState.)
Public fieldProperties
Top
See Also