没有合适的资源?快使用搜索试试~ 我知道了~
资源详情
资源评论
资源推荐

OpenDSS Type Library Documentation
November 1, 2016
Version 7.6.5.25
Enumerations
enum MonitorModes
dssVI = 0, Monitor records Voltage and Current at the terminal (Default
dssPower = 1, Monitor records kW, kvar or kVA, angle values, etc. at the terminal to which it is
connected.
dssSequence = 16, Reports the monitored quantities as sequence quantities
dssMagnitude = 32, Reports the monitored quantities in Magnitude Only
dssPosOnly = 64, Reports the Positive Seq only or avg of all phases
dssTaps = 2, For monitoring Regulator and Transformer taps
dssStates = 3 For monitoring State Variables (for PC Elements only
enum SolveModes
dssSnapShot = 0, Solve a single snapshot power flow
dssDutyCycle = 6, Solve following Duty Cycle load shapes
dssDirect = 7, Solve direct (forced admittance model
dssDaily = 1, Solve following Daily load shapes
dssMonte1 = 3, Monte Carlo Mode 1
dssMonte2 = 10, Monte Carlo Mode 2
dssMonte3 = 11, Monte Carlo Mode 3
dssFaultStudy = 9, Fault study at all buses
dssYearly = 2, Solve following Yearly load shapes
dssMonteFault = 8, Monte carlo Fault Study
dssPeakDay = 5, Solves for Peak Day using Daily load curve
dssLD1 = 4, Load-duration Mode 1
dssLD2 = 12, Load-Duration Mode 2
dssAutoAdd = 13, Auto add generators or capacitors
dssHarmonic = 15, (no Help string available)
dssDynamic = 14 (no Help string available)
enum Options
dssPowerFlow = 1, Power Flow load model option

dssAdmittance = 2, Admittance load model option
dssNormalSolve = 0, Solution algorithm option - Normal solution mode
dssNewtonSolve = 1, Solution algorithm option - Newton solution
dssStatic = 0, Control Mode option - Static
dssEvent = 1, Control Mode Option - Event driven solution mode
dssTime = 2, Control mode option - Time driven mode
dssMultiphase = 0, Circuit model is multiphase (default
dssPositiveSeq = 1, Circuit model is positive sequence model only
dssGaussian = 1, Random mode = Gaussian
dssUniform = 2, Random mode = Uniform
dssLogNormal = 3, Random Mode = Log normal
dssAddGen = 1, Add generators in AutoAdd mode (AddType
dssAddCap = 2, Add capacitors in AutoAdd mode (Addtype
dssControlOFF = -1 Control Mode OFF = -1
enum CapControlModes
dssCapControlVoltage = 1, voltage control, ON and OFF settings on the PT secondary base
dssCapControlKVAR = 2, kVAR control, ON and OFF settings on PT / CT base
dssCapControlCurrent = 0, Current control, ON and OFF settings on CT secondary
dssCapControlPF = 4, ON and OFF settings are power factor, negative for leading
dssCapControlTime = 3 Time control, ON and OFF settings are seconds from midnight
enum ActionCodes
dssActionNone = 0, No action
dssActionOpen = 1, Open a switch
dssActionClose = 2, Close a switch
dssActionReset = 3, Reset to the shelf state (unlocked, closed for a switch
dssActionLock = 4, Lock a switch, prventing both manual and automatic operation
dssActionUnlock = 5, Unlock a switch, permitting both manual and automatic operation
dssActionTapUp = 6, Move a regulator tap up
dssActionTapDown = 7 Move a regulator tap down
enum LoadStatus
dssLoadVariable = 0, (no Help string available)
dssLoadFixed = 1, (no Help string available)
dssLoadExempt = 2 (no Help string available)
enum LoadModels

dssLoadConstPQ = 1, (no Help string available)
dssLoadConstZ = 2, (no Help string available)
dssLoadMotor = 3, (no Help string available)
dssLoadCVR = 4, (no Help string available)
dssLoadConstI = 5, (no Help string available)
dssLoadConstPFixedQ = 6, (no Help string available)
dssLoadConstPFixedX = 7, (no Help string available)
dssLoadZIPV = 8 (no Help string available)
enum LineUnits
dssLineUnitsNone = 0, No line length unit.
dssLineUnitsMiles = 1, Line length units in miles.
dssLineUnitskFt = 2, Line length units are in thousand feet.
dssLineUnitskm = 3, Line length units are km.
dssLineUnitsmeter = 4, Line length units are meters.
dssLineUnitsft = 5, Line units in feet.
dssLineUnitsinch = 6, Line length units are inches.
dssLineUnitscm = 7, Line units are cm.
dssLineUnitsmm = 8, Line length units are mm.
dssLineUnitsMaxnum = 9 Maximum number of line units constants.

Interfaces
Text Interface
Command [out, retval] Type: BSTR* Command; [Property (get)];
'value = Command ' -- Input command string for the DSS.
Command [in] Type: BSTR Command; [Property (put)];
' Command = value' -- Input command string for the DSS.
Result [out, retval] Type: BSTR* Result; [Property (get)];
'value = Result ' -- Result string for the last command.
DSSProperty Interface
Name [out, retval] Type: BSTR* Name; [Property (get)];
'value = Name ' -- Name of Property
Description [out, retval] Type: BSTR* Description; [Property (get)];
'value = Description ' -- Description of the property.
Val [out, retval] Type: BSTR* Value; [Property (get)];
'value = Val ' -- (no Help string available)
Val [in] Type: BSTR Value; [Property (put)];
' Val = value' -- (no Help string available)
CktElement Interface
Name [out, retval] Type: BSTR* Value; [Property (get)];
'value = Name ' -- Full Name of Active Circuit Element
NumTerminals [out, retval] Type: long* Value; [Property (get)];
'value = NumTerminals ' -- Number of Terminals this Circuit Element
NumConductors [out, retval] Type: long* Value; [Property (get)];
'value = NumConductors ' -- Number of Conductors per Terminal
NumPhases [out, retval] Type: long* Value; [Property (get)];
'value = NumPhases ' -- Number of Phases
BusNames [out, retval] Type: VARIANT* Value; [Property (get)];
'value = BusNames ' -- Variant array of strings. Get Bus definitions to which each terminal is connected.
0-based array.
BusNames [in] Type: VARIANT Value; [Property (put)];
' BusNames = value' -- Variant array of strings. Set Bus definitions for each terminal is connected.
Properties [in] Type: VARIANT Indx, [out, retval] Type: IDSSProperty** Value; [Property (get)];
'value = Properties ' -- Collection of Properties for this Circuit Element (0 based index, if numeric
Voltages [out, retval] Type: VARIANT* Value; [Property (get)];

'value = Voltages ' -- Complex array of voltages at terminals
Currents [out, retval] Type: VARIANT* Value; [Property (get)];
'value = Currents ' -- Complex array of currents into each conductor of each terminal
Powers [out, retval] Type: VARIANT* Value; [Property (get)];
'value = Powers ' -- Complex array of powers into each conductor of each terminal
Losses [out, retval] Type: VARIANT* Value; [Property (get)];
'value = Losses ' -- Total losses in the element: two-element complex array
PhaseLosses [out, retval] Type: VARIANT* Value; [Property (get)];
'value = PhaseLosses ' -- Complex array of losses by phase
SeqVoltages [out, retval] Type: VARIANT* Value; [Property (get)];
'value = SeqVoltages ' -- Double array of symmetrical component voltages at each 3-phase terminal
SeqCurrents [out, retval] Type: VARIANT* Value; [Property (get)];
'value = SeqCurrents ' -- Double array of symmetrical component currents into each 3-phase terminal
SeqPowers [out, retval] Type: VARIANT* Value; [Property (get)];
'value = SeqPowers ' -- Double array of sequence powers into each 3-phase teminal
Enabled [out, retval] Type: VARIANT_BOOL* Value; [Property (get)];
'value = Enabled ' -- Boolean indicating that element is currently in the circuit.
Enabled [in] Type: VARIANT_BOOL Value; [Property (put)];
' Enabled = value' -- Boolean indicating that element is currently in the circuit.
NormalAmps [out, retval] Type: double* Value; [Property (get)];
'value = NormalAmps ' -- Normal ampere rating for PD Elements
NormalAmps [in] Type: double Value; [Property (put)];
' NormalAmps = value' -- Normal ampere rating
EmergAmps [out, retval] Type: double* Value; [Property (get)];
'value = EmergAmps ' -- Emergency Ampere Rating for PD elements
EmergAmps [in] Type: double Value; [Property (put)];
' EmergAmps = value' -- Emergency Ampere Rating
Open [in] Type: long Term, [in] Type: long Phs; [Method];
' Open(arg list) ' -- Open the specified terminal and phase, if non-zero. Else all conductors at terminal.
Close [in] Type: long Term, [in] Type: long Phs; [Method];
' Close(arg list) ' -- Close the specified terminal and phase, if non-zero. Else all conductors at terminal.
IsOpen [in] Type: long Term, [in] Type: long Phs, [out, retval] Type: VARIANT_BOOL* Value;
[Method];
' IsOpen(arg list) ' -- Boolean indicating if the specified terminal and, optionally, phase is open.
NumProperties [out, retval] Type: long* Value; [Property (get)];
'value = NumProperties ' -- Number of Properties this Circuit Element.
AllPropertyNames [out, retval] Type: VARIANT* Value; [Property (get)];
'value = AllPropertyNames ' -- Variant array containing all property names of the active device.
Residuals [out, retval] Type: VARIANT* Value; [Property (get)];
'value = Residuals ' -- Residual currents for each terminal: (mag, angle
Yprim [out, retval] Type: VARIANT* Value; [Property (get)];
'value = Yprim ' -- YPrim matrix, column order, complex numbers (paired
剩余58页未读,继续阅读














时空随笔
- 粉丝: 34
- 资源: 4
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


会员权益专享
安全验证
文档复制为VIP权益,开通VIP直接复制

评论0