Main API (module DSS)
The dss
function is the main function for passing commands to OpenDSS. You can pass multi-line commands with dss
. You can also splice in Julia values with string interpolation. Here is an example of using dss
:
using OpenDSSDirect
filename = "C:/OpenDSS/electricdss/IEEETestCases/8500-Node/Master.dss"
dss("""
clear
compile "$filename"
""")
Several functions are available for setting OpenDSS variables, getting values, and initiating commands. Each of these is in one of several modules. Here is an example to set the kW
of the active load element:
Loads.kW(50.)
Here is an example setting some loads:
using OpenDSSDirect
filename = "C:/OpenDSS/electricdss/IEEETestCases/8500-Node/Master.dss"
dss("""
clear
compile "$filename"
""")
loadnumber = Loads.First()
while loadnumber > 0
Loads.kW(50.)
Loads.kvar(20.)
loadnumber = Loads.Next()
end
println(Loads.Count())
To use this API, you can either use import OpenDSSDirect
and prepend all calls with OpenDSSDirect
, or you can run using OpenDSSDirect
and use the functions within each module directly. The following two are equivalent:
import OpenDSSDirect
OpenDSSDirect.Circuit.TotalPower()
Importing the DSS module:
using OpenDSSDirect
Circuit.TotalPower()
Many of the functions that return arrays convert to complex numbers where appropriate. Here is an example session:
julia> using OpenDSSDirect
julia> filename = joinpath(Pkg.dir(), "OpenDSSDirect", "examples", "8500-Node", "Master.dss");
julia> dss("""
clear
compile "$filename"
""")
julia> Solution.Solve();
julia> Circuit.Losses()
1.218242333223247e6 + 2.798391857088721e6im
julia> Circuit.TotalPower()
-12004.740450109337 - 1471.1749507157301im
julia> Circuit.SetActiveElement("Capacitor.CAPBank3")
6075
julia> CktElement.Voltages()
6-element Array{Complex{Float64},1}:
5390.82-4652.32im
-6856.89-2274.93im
1284.62+7285.18im
0.0+0.0im
0.0+0.0im
0.0+0.0im
To find the functions available in each module, use Julia's help for each module (initiated by hitting ?
). See below for an example.
julia> using OpenDSSDirect
help?> Circuit
search: Circuit
module Circuit – Functions for interfacing with the active OpenDSS circuit.
Circuit.NumCktElements() – Number of CktElements in the circuit
Circuit.NumBuses() – Total number of Buses in the circuit
Circuit.NumNodes() – Total number of Nodes in the circuit
Circuit.FirstPCElement() – Sets the first enabled Power Conversion (PC) element in the circuit to be active; if not successful returns a 0
Circuit.NextPCElement() – Sets the next enabled Power Conversion (PC) element in the circuit to be active; if not successful returns a 0
Circuit.FirstPDElement() – Sets the first enabled Power Delivery (PD) element in the circuit to be active; if not successful returns a 0
Circuit.NextPDElement() – Sets the next enabled Power Delivery (PD) element in the circuit to be active; if not successful returns a 0
{truncated...}
Besides that, the methods
function can be helpful to list the alternatives. Besides the getter (no value arguments) and setter (when a value argument provided), most functions allow passing a dss::DSSContext
argument. For example:
julia> using OpenDSSDirect
julia> methods(OpenDSSDirect.Loads.Name)
# 4 methods for generic function "Name":
[1] Name() in OpenDSSDirect.Loads at /home/user/.julia/packages/OpenDSSDirect/5wwHs/src/loads.jl:144
[2] Name(dss::DSSContext) in OpenDSSDirect.Loads at /home/user/.julia/packages/OpenDSSDirect/5wwHs/src/loads.jl:141
[3] Name(dss::DSSContext, Value::String) in OpenDSSDirect.Loads at /home/user/.julia/packages/OpenDSSDirect/5wwHs/src/loads.jl:147
[4] Name(Value::String) in OpenDSSDirect.Loads at /home/user/.julia/packages/OpenDSSDirect/5wwHs/src/loads.jl:150
For typical usage with a single circuit, users can use the variations without this argument. For using multiple DSS circuits and potentially multiple circuits, provide the context explicitly.
Here is a list of modules supported by this API. Each module has several functions.
Functions or modules that are not present in the official OpenDSS implementation are marked "(API Extension)".
dss
OpenDSSDirect.dss
— FunctionCommand(dss::DSSContext) -> String
Input command string for the DSS. (Getter)
Command(dss::DSSContext, Value::String) -> String
Input command string for the DSS. (Setter)
Command(dss::DSSContext, Value::Vector{String})
Runs a list of commands all at once in the engine. Ignores potential intermediate output in the global result.
(API Extension)
ActiveClass
OpenDSSDirect.ActiveClass.ActiveClassName
— MethodActiveClassName(dss::DSSContext) -> String
Returns name of active class.
OpenDSSDirect.ActiveClass.ActiveClassParent
— MethodActiveClassParent(dss::DSSContext) -> String
Returns the name of the parent class of the active class.
OpenDSSDirect.ActiveClass.AllNames
— MethodAllNames(dss::DSSContext) -> Vector{String}
Array of strings consisting of all element names in the active class.
OpenDSSDirect.ActiveClass.Count
— MethodCount(dss::DSSContext) -> Int64
Number of elements in Active Class. Same as NumElements Property.
OpenDSSDirect.ActiveClass.First
— MethodFirst(dss::DSSContext) -> Int64
Sets first element in the active class to be the active DSS object. If object is a CktElement, ActiveCktELment also points to this element. Returns 0 if none.
OpenDSSDirect.ActiveClass.Name
— MethodName(dss::DSSContext, Value::String)
Name of the Active Element of the Active Class (Setter)
OpenDSSDirect.ActiveClass.Name
— MethodName(dss::DSSContext) -> String
Name of the Active Element of the Active Class (Getter)
OpenDSSDirect.ActiveClass.Next
— MethodNext(dss::DSSContext) -> Int64
Sets next element in active class to be the active DSS object. If object is a CktElement, ActiveCktElement also points to this element. Returns 0 if no more.
OpenDSSDirect.ActiveClass.NumElements
— MethodNumElements(dss::DSSContext) -> Int64
Number of elements in this class. Same as Count property.
OpenDSSDirect.ActiveClass.ToJSON
— MethodToJSON(dss::DSSContext, Flags::Int32) -> String
Returns the data (as a list) of all elements from the active class as a JSON-encoded string.
The options
parameter contains bit-flags to toggle specific features. See Obj_ToJSON
(C-API) for more.
Additionally, the ExcludeDisabled
flag can be used to exclude disabled elements from the output.
(API Extension)
Basic
OpenDSSDirect.Basic.AllowChangeDir
— MethodAllowChangeDir(dss::DSSContext, Value::Bool)
If disabled, the engine will not change the active working directory during execution. E.g. a "compile" command will not "chdir" to the file path.
If you have issues with long paths, enabling this might help in some scenarios.
Defaults to True (allow changes, backwards compatible) in the 0.10.x versions of DSS C-API. This might change to False in future versions.
This can also be set through the environment variable DSS_CAPI_ALLOW_CHANGE_DIR
. Set it to 0 to disallow changing the active working directory.
(Setter) (API Extension)
OpenDSSDirect.Basic.AllowChangeDir
— MethodAllowChangeDir(dss::DSSContext) -> Bool
If disabled, the engine will not change the active working directory during execution. E.g. a "compile" command will not "chdir" to the file path.
If you have issues with long paths, enabling this might help in some scenarios.
Defaults to True (allow changes, backwards compatible) in the 0.10.x versions of DSS C-API. This might change to False in future versions.
This can also be set through the environment variable DSS_CAPI_ALLOW_CHANGE_DIR
. Set it to 0 to disallow changing the active working directory.
(Getter) (API Extension)
OpenDSSDirect.Basic.AllowDOScmd
— MethodAllowDOScmd(dss::DSSContext, Value::Bool)
If enabled, the DOScmd command is allowed. Otherwise, an error is reported if the user tries to use it.
Defaults to False/0 (disabled state). Users should consider DOScmd deprecated on DSS Extensions.
This can also be set through the environment variable DSS_CAPI_LEGACY_MODELS
. Setting it to 1 enables the legacy components, using the old models from the start.
(Setter) (API Extension)
OpenDSSDirect.Basic.AllowDOScmd
— MethodAllowDOScmd(dss::DSSContext) -> Bool
If enabled, the DOScmd command is allowed. Otherwise, an error is reported if the user tries to use it.
Defaults to False/0 (disabled state). Users should consider DOScmd deprecated on DSS Extensions.
This can also be set through the environment variable DSS_CAPI_LEGACY_MODELS
. Setting it to 1 enables the legacy components, using the old models from the start.
(Getter) (API Extension)
OpenDSSDirect.Basic.AllowEditor
— MethodAllowEditor(dss::DSSContext, Value::Bool)
Gets/sets whether running the external editor for "Show" is allowed
AllowEditor controls whether the external editor is used in commands like "Show". If you set to 0 (false), the editor is not executed. Note that other side effects, such as the creation of files, are not affected.
(Setter) (API Extension)
OpenDSSDirect.Basic.AllowEditor
— MethodAllowEditor(dss::DSSContext) -> Bool
Gets/sets whether running the external editor for "Show" is allowed
AllowEditor controls whether the external editor is used in commands like "Show". If you set to 0 (false), the editor is not executed. Note that other side effects, such as the creation of files, are not affected.
(Getter) (API Extension)
OpenDSSDirect.Basic.AllowForms
— MethodAllowForms(dss::DSSContext, Value::Bool)
Gets/sets whether text output is allowed (Setter)
OpenDSSDirect.Basic.AllowForms
— MethodAllowForms(dss::DSSContext) -> Bool
Gets/sets whether text output is allowed (Getter)
OpenDSSDirect.Basic.COMErrorResults
— MethodCOMErrorResults(dss::DSSContext, Value::Bool)
If enabled, in case of errors or empty arrays, the API returns arrays with values compatible with the official OpenDSS COM interface.
For example, consider the function LoadsGetZIPV. If there is no active circuit or active load element:
- In the disabled state (COMErrorResults=False), the function will return "[]", an array with 0 elements.
- In the enabled state (COMErrorResults=True), the function will return "[0.0]" instead. This should be compatible with the return value of the official COM interface.
Defaults to True/1 (enabled state) in the v0.12.x series. This will change to false in future series.
This can also be set through the environment variable DSS_CAPI_COM_DEFAULTS
. Setting it to 0 disables the legacy/COM behavior. The value can be toggled through the API at any time.
(Setter) (API Extension)
OpenDSSDirect.Basic.COMErrorResults
— MethodCOMErrorResults(dss::DSSContext) -> Bool
If enabled, in case of errors or empty arrays, the API returns arrays with values compatible with the official OpenDSS COM interface.
For example, consider the function LoadsGetZIPV. If there is no active circuit or active load element:
- In the disabled state (COMErrorResults=False), the function will return "[]", an array with 0 elements.
- In the enabled state (COMErrorResults=True), the function will return "[0.0]" instead. This should be compatible with the return value of the official COM interface.
Defaults to True/1 (enabled state) in the v0.12.x series. This will change to false in future series.
This can also be set through the environment variable DSS_CAPI_COM_DEFAULTS
. Setting it to 0 disables the legacy/COM behavior. The value can be toggled through the API at any time.
(Getter) (API Extension)
OpenDSSDirect.Basic.Classes
— MethodClasses(dss::DSSContext) -> Vector{String}
List of DSS intrinsic classes (names of the classes)
OpenDSSDirect.Basic.ClearAll
— MethodClearAll(dss::DSSContext)
Clear All
OpenDSSDirect.Basic.CompatFlags
— MethodCompatFlags(
dss::DSSContext,
Value::Union{UInt32, OpenDSSDirect.Lib.DSSCompatFlags}
)
Controls some compatibility flags introduced to toggle some behavior from the official OpenDSS. The current bit flags are:
- 0x1 (bit 0): If enabled, don't check for NaNs in the inner solution loop. This can lead to various errors.
This flag is useful for legacy applications that don't handle OpenDSS API errors properly. Through the
development of DSS Extensions, we noticed this is actually a quite common issue.
- 0x2 (bit 1): Toggle worse precision for certain aspects of the engine. For example, the sequence-to-phase
(`As2p`) and sequence-to-phase (`Ap2s`) transform matrices. On DSS C-API, we fill the matrix explicitly
using higher precision, while numerical inversion of an initially worse precision matrix is used in the
official OpenDSS. We will introduce better precision for other aspects of the engine in the future,
so this flag can be used to toggle the old/bad values where feasible.
- 0x4 (bit 2): Toggle some InvControl behavior introduced in OpenDSS 9.6.1.1. It could be a regression
but needs further investigation, so we added this flag in the time being.
These flags may change for each version of DSS C-API, but the same value will not be reused. That is, when we remove a compatibility flag, it will have no effect but will also not affect anything else besides raising an error if the user tries to toggle a flag that was available in a previous version.
We expect to keep a very limited number of flags. Since the flags are more transient than the other options/flags, it was preferred to add this generic function instead of a separate function per flag.
These flags are global, affecting any DSS context in the process.
Related enumeration: DSSCompatFlags
(API Extension)
OpenDSSDirect.Basic.DataPath
— MethodDataPath(dss::DSSContext, Value::String)
DSS Data File Path. Default path for reports, etc. from DSS (Setter)
OpenDSSDirect.Basic.DataPath
— MethodDataPath(dss::DSSContext) -> String
DSS Data File Path. Default path for reports, etc. from DSS (Getter)
OpenDSSDirect.Basic.DefaultEditor
— MethodDefaultEditor(dss::DSSContext) -> String
Returns the path name for the default text editor.
OpenDSSDirect.Basic.DisposeContext
— MethodDisposeContext(dss::DSSContext)
Disposes a DSS engine context. Cannot be called with the prime instance. (API Extension)
OpenDSSDirect.Basic.LegacyModels
— MethodLegacyModels(dss::DSSContext, Value::Bool)
Gets/sets the state of the Legacy Models mechanism (Setter)
If enabled, the legacy/deprecated models for PVSystem, InvControl, Storage and StorageControl are used. WARNING: Changing the active value runs a "Clear" command, discarding the current circuit.
Defaults to false (disabled state).
This can also be set through the environment variable DSS_CAPI_LEGACY_MODELS
. Setting it to 1 enables the legacy components, using the old models from the start.
(API Extension)
OpenDSSDirect.Basic.LegacyModelsLegacyModels
— MethodLegacyModelsLegacyModels(dss::DSSContext) -> Bool
Gets/sets the state of the Legacy Models mechanism (Getter)
If enabled, the legacy/deprecated models for PVSystem, InvControl, Storage and StorageControl are used. WARNING: Changing the active value runs a "Clear" command, discarding the current circuit.
Defaults to false (disabled state).
This can also be set through the environment variable DSS_CAPI_LEGACY_MODELS
. Setting it to 1 enables the legacy components, using the old models from the start.
(API Extension)
OpenDSSDirect.Basic.NewCircuit
— MethodNewCircuit(dss::DSSContext, name::String) -> String
Create a new circuit
OpenDSSDirect.Basic.NewContext
— MethodNewContext() -> DSSContext
Create a new DSS engine context. (API Extension)
OpenDSSDirect.Basic.NumCircuits
— MethodNumCircuits(dss::DSSContext) -> Int64
Number of Circuits currently defined
OpenDSSDirect.Basic.NumClasses
— MethodNumClasses(dss::DSSContext) -> Int64
Number of DSS intrinsic classes
OpenDSSDirect.Basic.NumUserClasses
— MethodNumUserClasses(dss::DSSContext) -> Int64
Number of user-defined classes
OpenDSSDirect.Basic.Reset
— MethodReset(dss::DSSContext)
Reset
OpenDSSDirect.Basic.SetActiveClass
— MethodSetActiveClass(dss::DSSContext, ClassName::String) -> Int64
Set the Active Class
OpenDSSDirect.Basic.Start
— MethodStart(dss::DSSContext, code::Int64) -> Bool
Set the start code
OpenDSSDirect.Basic.UserClasses
— MethodUserClasses(dss::DSSContext) -> Vector{String}
List of user-defined classes
OpenDSSDirect.Basic.Version
— MethodVersion(dss::DSSContext) -> String
Get version string for the DSS.
Bus
OpenDSSDirect.Bus.AllPCEatBus
— MethodAllPCEatBus(dss::DSSContext) -> Vector{String}
Array with the names of all PCE connected to the active bus
OpenDSSDirect.Bus.AllPDEatBus
— MethodAllPDEatBus(dss::DSSContext) -> Vector{String}
Array with the names of all PDE connected to the active bus
OpenDSSDirect.Bus.Coorddefined
— MethodCoorddefined(dss::DSSContext) -> Bool
Indicates whether a coordinate has been defined for this bus
OpenDSSDirect.Bus.CplxSeqVoltages
— MethodCplxSeqVoltages(dss::DSSContext) -> Vector{ComplexF64}
Complex Double array of Sequence Voltages (0, 1, 2) at this Bus.
OpenDSSDirect.Bus.Cust_Duration
— MethodCust_Duration(dss::DSSContext) -> Float64
Accumulated customer outage durations
OpenDSSDirect.Bus.Cust_Interrupts
— MethodCust_Interrupts(dss::DSSContext) -> Float64
Annual number of customer-interruptions from this bus
OpenDSSDirect.Bus.Distance
— MethodDistance(dss::DSSContext) -> Float64
Distance from energymeter (if non-zero)
OpenDSSDirect.Bus.GetUniqueNodeNumber
— MethodGetUniqueNodeNumber(
dss::DSSContext,
StartNumber::Int64
) -> Int64
Get unique node number
OpenDSSDirect.Bus.Int_Duration
— MethodInt_Duration(dss::DSSContext) -> Float64
Average interruption duration, hr.
OpenDSSDirect.Bus.Isc
— MethodIsc(dss::DSSContext) -> Vector{ComplexF64}
Short circuit currents at bus; Complex Array.
OpenDSSDirect.Bus.Lambda
— MethodLambda(dss::DSSContext) -> Float64
Accumulated failure rate downstream from this bus; faults per year
OpenDSSDirect.Bus.LineList
— MethodLineList(dss::DSSContext) -> Vector{String}
Array of strings: Full Names of LINE elements connected to the active bus.
OpenDSSDirect.Bus.LoadList
— MethodLoadList(dss::DSSContext) -> Vector{String}
Array of strings: Full Names of LOAD elements connected to the active bus.
OpenDSSDirect.Bus.N_Customers
— MethodN_Customers(dss::DSSContext) -> Int64
Total numbers of customers served downline from this bus
OpenDSSDirect.Bus.N_interrupts
— MethodN_interrupts(dss::DSSContext) -> Float64
Number of interruptions this bus per year
OpenDSSDirect.Bus.Name
— MethodName(dss::DSSContext) -> String
Name of Bus
OpenDSSDirect.Bus.Next
— MethodNext(dss::DSSContext) -> Int64
Activates the next bus
OpenDSSDirect.Bus.Nodes
— MethodNodes(dss::DSSContext) -> Vector{Int64}
Integer Array of Node Numbers defined at the bus in same order as the voltages.
OpenDSSDirect.Bus.NumNodes
— MethodNumNodes(dss::DSSContext) -> Int64
Number of Nodes this bus.
OpenDSSDirect.Bus.PuVoltage
— MethodPuVoltage(dss::DSSContext) -> Vector{ComplexF64}
Complex Array of pu voltages at the bus.
OpenDSSDirect.Bus.SectionID
— MethodSectionID(dss::DSSContext) -> Int64
Integer ID of the feeder section in which this bus is located.
OpenDSSDirect.Bus.SeqVoltages
— MethodSeqVoltages(dss::DSSContext) -> Vector{Float64}
Double Array of sequence voltages at this bus.
OpenDSSDirect.Bus.TotalMiles
— MethodTotalMiles(dss::DSSContext) -> Float64
Total length of line downline from this bus, in miles. For recloser siting algorithm.
OpenDSSDirect.Bus.VLL
— MethodVLL(dss::DSSContext) -> Vector{ComplexF64}
For 2- and 3-phase buses, returns array of complex numbers representing L-L voltages in volts. Returns -1.0 for 1-phase bus. If more than 3 phases, returns only first 3.
OpenDSSDirect.Bus.VMagAngle
— MethodVMagAngle(dss::DSSContext) -> Vector{Float64}
Variant Array of doubles containing voltages in Magnitude (VLN), angle (deg)
OpenDSSDirect.Bus.Voc
— MethodVoc(dss::DSSContext) -> Vector{ComplexF64}
Open circuit voltage; Complex array.
OpenDSSDirect.Bus.Voltages
— MethodVoltages(dss::DSSContext) -> Vector{ComplexF64}
Complex array of voltages at this bus.
OpenDSSDirect.Bus.X
— MethodX(dss::DSSContext, Value::Float64)
X Coordinate for bus (double) (Setter)
OpenDSSDirect.Bus.X
— MethodX(dss::DSSContext) -> Float64
X Coordinate for bus (double) (Getter)
OpenDSSDirect.Bus.Y
— MethodY(dss::DSSContext, Value::Float64)
Y coordinate for bus (double)
OpenDSSDirect.Bus.Y
— MethodY(dss::DSSContext) -> Float64
Y coordinate for bus (double) (Getter)
OpenDSSDirect.Bus.YscMatrix
— MethodYscMatrix(dss::DSSContext) -> Vector{ComplexF64}
Complex array of Ysc matrix at bus. Column by column.
OpenDSSDirect.Bus.ZSC012Matrix
— MethodZSC012Matrix(dss::DSSContext) -> Matrix{ComplexF64}
3x3 complex matrix containing the complete 012 Zsc matrix
OpenDSSDirect.Bus.Zsc0
— MethodZsc0(dss::DSSContext) -> ComplexF64
Complex Zero-Sequence short circuit impedance at bus.
OpenDSSDirect.Bus.Zsc1
— MethodZsc1(dss::DSSContext) -> ComplexF64
Complex Positive-Sequence short circuit impedance at bus..
OpenDSSDirect.Bus.ZscMatrix
— MethodZscMatrix(dss::DSSContext) -> Vector{ComplexF64}
Complex array of Zsc matrix at bus. Column by column.
OpenDSSDirect.Bus.ZscRefresh
— MethodZscRefresh(dss::DSSContext) -> Bool
Check if DoZscRefresh is set
OpenDSSDirect.Bus.kVBase
— MethodkVBase(dss::DSSContext) -> Float64
Base voltage at bus in kV
OpenDSSDirect.Bus.puVLL
— MethodpuVLL(dss::DSSContext) -> Vector{ComplexF64}
Returns Complex array of pu L-L voltages for 2- and 3-phase buses. Returns -1.0 for 1-phase bus. If more than 3 phases, returns only 3 phases.
OpenDSSDirect.Bus.puVmagAngle
— MethodpuVmagAngle(dss::DSSContext) -> Vector{Float64}
Array of doubles containing voltage magnitude, angle pairs in per unit
Capacitors
OpenDSSDirect.Capacitors.AddStep
— MethodAddStep(dss::DSSContext) -> Bool
Check if Capacitor AddStep is set
OpenDSSDirect.Capacitors.AllNames
— MethodAllNames(dss::DSSContext) -> Vector{String}
Array of strings with all Capacitor names in the circuit.
OpenDSSDirect.Capacitors.AvailableSteps
— MethodAvailableSteps(dss::DSSContext) -> Int64
Number of Steps available in cap bank to be switched ON.
OpenDSSDirect.Capacitors.Close
— MethodClose(dss::DSSContext)
Close all phases of Capacitor
OpenDSSDirect.Capacitors.Count
— MethodCount(dss::DSSContext) -> Int64
Number of Capacitor objects in active circuit.
OpenDSSDirect.Capacitors.First
— MethodFirst(dss::DSSContext) -> Int64
Sets the first Capacitor active. Returns 0 if no more.
OpenDSSDirect.Capacitors.Idx
— MethodIdx(dss::DSSContext, Value::Int64)
Capacitor Index (Setter)
OpenDSSDirect.Capacitors.Idx
— MethodIdx(dss::DSSContext) -> Int64
Capacitor Index (Getter)
OpenDSSDirect.Capacitors.IsDelta
— MethodIsDelta(dss::DSSContext, Value::Bool)
Delta connection or wye? (Setter)
OpenDSSDirect.Capacitors.IsDelta
— MethodIsDelta(dss::DSSContext) -> Bool
Delta connection or wye? (Getter)
OpenDSSDirect.Capacitors.Name
— MethodName(dss::DSSContext, Value::String)
Sets the active Capacitor by Name. (Setter)
OpenDSSDirect.Capacitors.Name
— MethodName(dss::DSSContext) -> String
Sets the active Capacitor by Name. (Getter)
OpenDSSDirect.Capacitors.Next
— MethodNext(dss::DSSContext) -> Int64
Sets the next Capacitor active. Returns 0 if no more.
OpenDSSDirect.Capacitors.NumSteps
— MethodNumSteps(dss::DSSContext, Value::Int64)
Number of steps (default 1) for distributing and switching the total bank kVAR. (Setter)
OpenDSSDirect.Capacitors.NumSteps
— MethodNumSteps(dss::DSSContext) -> Int64
Number of steps (default 1) for distributing and switching the total bank kVAR. (Getter)
OpenDSSDirect.Capacitors.Open
— MethodOpen(dss::DSSContext)
Open all phases of Capacitor
OpenDSSDirect.Capacitors.States
— MethodStates(dss::DSSContext, Value)
Array of integer [0 ..numSteps-1] indicating the state of each step. (Setter)
OpenDSSDirect.Capacitors.States
— MethodStates(dss::DSSContext) -> Vector{Int64}
Array of integer [0..numsteps-1] indicating state of each step. If value is -1 an error has occurred. (Getter)
OpenDSSDirect.Capacitors.SubtractStep
— MethodSubtractStep(dss::DSSContext) -> Bool
Check if Capacitor SubtractStep is set
OpenDSSDirect.Capacitors.kV
— MethodkV(dss::DSSContext, Value::Float64)
Bank kV rating. Use LL for 2 or 3 phases, or actual can rating for 1 phase. (Setter)
OpenDSSDirect.Capacitors.kV
— MethodkV(dss::DSSContext) -> Float64
Bank kV rating. Use LL for 2 or 3 phases, or actual can rating for 1 phase. (Getter)
OpenDSSDirect.Capacitors.kvar
— Methodkvar(dss::DSSContext, Value::Float64)
Total bank KVAR, distributed equally among phases and steps. (Setter)
OpenDSSDirect.Capacitors.kvar
— Methodkvar(dss::DSSContext) -> Float64
Total bank KVAR, distributed equally among phases and steps. (Getter)
CapControls
OpenDSSDirect.CapControls.AllNames
— MethodAllNames(dss::DSSContext) -> Vector{String}
Array of strings with all CapControl names.
OpenDSSDirect.CapControls.CTRatio
— MethodCTRatio(dss::DSSContext, Value::Float64)
Transducer ratio from pirmary current to control current. (Setter)
OpenDSSDirect.CapControls.CTRatio
— MethodCTRatio(dss::DSSContext) -> Float64
Transducer ratio from pirmary current to control current. (Getter)
OpenDSSDirect.CapControls.Capacitor
— MethodCapacitor(dss::DSSContext, Value::String)
Name of the Capacitor that is controlled. (Setter)
OpenDSSDirect.CapControls.Capacitor
— MethodCapacitor(dss::DSSContext) -> String
Name of the Capacitor that is controlled. (Getter)
OpenDSSDirect.CapControls.Count
— MethodCount(dss::DSSContext) -> Int64
Number of CapControls in Active Circuit
OpenDSSDirect.CapControls.DeadTime
— MethodDeadTime(dss::DSSContext, Value::Float64)
Dead Time for Capacitor Control (Setter)
OpenDSSDirect.CapControls.DeadTime
— MethodDeadTime(dss::DSSContext) -> Float64
Dead Time for Capacitor Control (Getter)
OpenDSSDirect.CapControls.Delay
— MethodDelay(dss::DSSContext, Value::Float64)
Time delay [s] to switch on after arming. Control may reset before actually switching. (Setter)
OpenDSSDirect.CapControls.Delay
— MethodDelay(dss::DSSContext) -> Float64
Time delay [s] to switch on after arming. Control may reset before actually switching. (Getter)
OpenDSSDirect.CapControls.DelayOff
— MethodDelayOff(dss::DSSContext, Value::Float64)
Time delay [s] before switching off a step. Control may reset before actually switching. (Setter)
OpenDSSDirect.CapControls.DelayOff
— MethodDelayOff(dss::DSSContext) -> Float64
Time delay [s] before switching off a step. Control may reset before actually switching. (Getter)
OpenDSSDirect.CapControls.First
— MethodFirst(dss::DSSContext) -> Int64
Sets the first CapControl as active. Return 0 if none.
OpenDSSDirect.CapControls.Idx
— MethodIdx(dss::DSSContext, Value::Int64)
CapControl Index (Setter)
OpenDSSDirect.CapControls.Idx
— MethodIdx(dss::DSSContext) -> Int64
CapControl Index (Getter)
OpenDSSDirect.CapControls.Mode
— MethodMode(
dss::DSSContext,
Value::Union{Int64, OpenDSSDirect.Lib.CapControlModes}
)
Type of automatic controller. (Setter)
OpenDSSDirect.CapControls.Mode
— MethodMode(dss::DSSContext) -> OpenDSSDirect.Lib.CapControlModes
Type of automatic controller. (Getter)
OpenDSSDirect.CapControls.MonitoredObj
— MethodMonitoredObj(dss::DSSContext, Value::String)
Full name of the element that PT and CT are connected to. (Setter)
OpenDSSDirect.CapControls.MonitoredObj
— MethodMonitoredObj(dss::DSSContext) -> String
Full name of the element that PT and CT are connected to. (Getter)
OpenDSSDirect.CapControls.MonitoredTerm
— MethodMonitoredTerm(dss::DSSContext, Value::Int64)
Terminal number on the element that PT and CT are connected to. (Setter)
OpenDSSDirect.CapControls.MonitoredTerm
— MethodMonitoredTerm(dss::DSSContext) -> Int64
Terminal number on the element that PT and CT are connected to. (Getter)
OpenDSSDirect.CapControls.Name
— MethodName(dss::DSSContext, Value::String)
Sets a CapControl active by name. (Setter)
OpenDSSDirect.CapControls.Name
— MethodName(dss::DSSContext) -> String
Sets a CapControl active by name. (Getter)
OpenDSSDirect.CapControls.Next
— MethodNext(dss::DSSContext) -> Int64
Gets the next CapControl in the circut. Returns 0 if none.
OpenDSSDirect.CapControls.OFFSetting
— MethodOFFSetting(dss::DSSContext, Value::Int64)
Threshold to switch off a step. See Mode for units. (Setter)
OpenDSSDirect.CapControls.OFFSetting
— MethodOFFSetting(dss::DSSContext) -> Int64
Threshold to switch off a step. See Mode for units. (Getter)
OpenDSSDirect.CapControls.ONSetting
— MethodONSetting(dss::DSSContext, Value::Int64)
Threshold to arm or switch on a step. See Mode for units. (Setter)
OpenDSSDirect.CapControls.ONSetting
— MethodONSetting(dss::DSSContext) -> Int64
Threshold to arm or switch on a step. See Mode for units. (Getter)
OpenDSSDirect.CapControls.PTRatio
— MethodPTRatio(dss::DSSContext, Value::Float64)
Transducer ratio from primary feeder to control voltage. (Setter)
OpenDSSDirect.CapControls.PTRatio
— MethodPTRatio(dss::DSSContext) -> Float64
Transducer ratio from primary feeder to control voltage. (Getter)
OpenDSSDirect.CapControls.Reset
— MethodReset(dss::DSSContext)
Reset Capacitor Controls
OpenDSSDirect.CapControls.UseVoltOverride
— MethodUseVoltOverride(dss::DSSContext, Value::Bool)
Enables Vmin and Vmax to override the control Mode (Setter)
OpenDSSDirect.CapControls.UseVoltOverride
— MethodUseVoltOverride(dss::DSSContext) -> Bool
Enables Vmin and Vmax to override the control Mode (Getter)
OpenDSSDirect.CapControls.Vmax
— MethodVmax(dss::DSSContext, Value::Float64)
With VoltOverride, swtich off whenever PT voltage exceeds this level. (Setter)
OpenDSSDirect.CapControls.Vmax
— MethodVmax(dss::DSSContext) -> Float64
With VoltOverride, swtich off whenever PT voltage exceeds this level. (Getter)
OpenDSSDirect.CapControls.Vmin
— MethodVmin(dss::DSSContext, Value::Float64)
With VoltOverride, switch ON whenever PT voltage drops below this level. (Setter)
OpenDSSDirect.CapControls.Vmin
— MethodVmin(dss::DSSContext) -> Float64
With VoltOverride, switch ON whenever PT voltage drops below this level. (Getter)
Circuit
OpenDSSDirect.Circuit.AllBusDistances
— MethodAllBusDistances(dss::DSSContext) -> Vector{Float64}
Returns distance from each bus to parent EnergyMeter. Corresponds to sequence in AllBusNames.
OpenDSSDirect.Circuit.AllBusMagPu
— MethodAllBusMagPu(dss::DSSContext) -> Vector{Float64}
Double Array of all bus voltages (each node) magnitudes in Per unit
OpenDSSDirect.Circuit.AllBusNames
— MethodAllBusNames(dss::DSSContext) -> Vector{String}
Array of strings containing names of all buses in circuit (see AllNodeNames).
OpenDSSDirect.Circuit.AllBusVMag
— MethodAllBusVMag(dss::DSSContext) -> Vector{Float64}
Array of magnitudes (doubles) of voltages at all buses
OpenDSSDirect.Circuit.AllBusVolts
— MethodAllBusVolts(dss::DSSContext) -> Vector{ComplexF64}
Complex array of all bus, node voltages from most recent solution
OpenDSSDirect.Circuit.AllElementLosses
— MethodAllElementLosses(dss::DSSContext) -> Vector{Float64}
Array of total losses (complex) in each circuit element
OpenDSSDirect.Circuit.AllElementNames
— MethodAllElementNames(dss::DSSContext) -> Vector{String}
Array of strings containing Full Name of all elements.
OpenDSSDirect.Circuit.AllNodeDistances
— MethodAllNodeDistances(dss::DSSContext) -> Vector{Float64}
Returns an array of distances from parent EnergyMeter for each Node. Corresponds to AllBusVMag sequence.
OpenDSSDirect.Circuit.AllNodeDistancesByPhase
— MethodAllNodeDistancesByPhase(
dss::DSSContext,
Phase::Int64
) -> Vector{Float64}
Returns an array of doubles representing the distances to parent EnergyMeter. Sequence of array corresponds to other node ByPhase properties.
OpenDSSDirect.Circuit.AllNodeNames
— MethodAllNodeNames(dss::DSSContext) -> Vector{String}
Array of strings containing full name of each node in system in same order as returned by AllBusVolts, etc.
OpenDSSDirect.Circuit.AllNodeNamesByPhase
— MethodAllNodeNamesByPhase(
dss::DSSContext,
Phase::Int64
) -> Vector{String}
Return array of strings of the node names for the By Phase criteria. Sequence corresponds to other ByPhase properties.
OpenDSSDirect.Circuit.AllNodeVmagByPhase
— MethodAllNodeVmagByPhase(
dss::DSSContext,
Phase::Int64
) -> Vector{Float64}
Returns Array of doubles represent voltage magnitudes for nodes on the specified phase.
OpenDSSDirect.Circuit.AllNodeVmagPUByPhase
— MethodAllNodeVmagPUByPhase(
dss::DSSContext,
Phase::Int64
) -> Vector{Float64}
Returns array of per unit voltage magnitudes for each node by phase
OpenDSSDirect.Circuit.Capacity
— MethodCapacity(dss::DSSContext, Start, Increment) -> Float64
Compute capacity
OpenDSSDirect.Circuit.Disable
— MethodDisable(dss::DSSContext, Name::String)
Disable circuit
OpenDSSDirect.Circuit.ElementLosses
— MethodElementLosses(dss::DSSContext, Idx::Vector{Int32})
Array of total losses (complex) in a selection of elements. Use the element indices (starting at 1) as parameter.
(API Extension)
OpenDSSDirect.Circuit.Enable
— MethodEnable(dss::DSSContext, Name::String)
Enable circuit
OpenDSSDirect.Circuit.EndOfTimeStepUpdate
— MethodEndOfTimeStepUpdate(dss::DSSContext)
Do end of time step update and cleanup
OpenDSSDirect.Circuit.FirstElement
— MethodFirstElement(dss::DSSContext) -> Int64
Set first element in active class to be active
OpenDSSDirect.Circuit.FirstPCElement
— MethodFirstPCElement(dss::DSSContext) -> Int64
Set first PCElement to be active
OpenDSSDirect.Circuit.FirstPDElement
— MethodFirstPDElement(dss::DSSContext) -> Int64
Set first PDElement to be active
OpenDSSDirect.Circuit.FromJSON
— MethodFromJSON(dss::DSSContext, circ::String, options::Int32)
EXPERIMENTAL: Loads a full circuit from a JSON-encoded string. The data must be encoded using the proposed AltDSS Schema, see https://github.com/dss-extensions/altdss-schema/ and https://github.com/orgs/dss-extensions/discussions/ for links to docs and to provide feedback for future revisions.
The options argument is an integer bitset from the enum DSSJSONFlags
.
(API Extension)
OpenDSSDirect.Circuit.LineLosses
— MethodLineLosses(dss::DSSContext) -> ComplexF64
Complex total line losses in the circuit
OpenDSSDirect.Circuit.Losses
— MethodLosses(dss::DSSContext) -> ComplexF64
Total losses in active circuit, complex number (two-element array of double).
OpenDSSDirect.Circuit.Name
— MethodName(dss::DSSContext) -> String
Name of the active circuit.
OpenDSSDirect.Circuit.NextElement
— MethodNextElement(dss::DSSContext) -> Int64
Set next element in active class to be active
OpenDSSDirect.Circuit.NextPCElement
— MethodNextPCElement(dss::DSSContext) -> Int64
Set next PCElement to be active
OpenDSSDirect.Circuit.NextPDElement
— MethodNextPDElement(dss::DSSContext) -> Int64
Set next PDElement to be active
OpenDSSDirect.Circuit.NumBuses
— MethodNumBuses(dss::DSSContext) -> Int64
Total number of Buses in the circuit.
OpenDSSDirect.Circuit.NumCktElements
— MethodNumCktElements(dss::DSSContext) -> Int64
Number of CktElements in the circuit.
OpenDSSDirect.Circuit.NumNodes
— MethodNumNodes(dss::DSSContext) -> Int64
Total number of nodes in the circuit.
OpenDSSDirect.Circuit.ParentPDElement
— MethodParentPDElement(dss::DSSContext) -> Int64
Sets Parent PD element, if any, to be the active circuit element and returns index>0; Returns 0 if it fails or not applicable.
OpenDSSDirect.Circuit.Sample
— MethodSample(dss::DSSContext)
Sample all meters and monitors
OpenDSSDirect.Circuit.Save
— MethodSave(
dss::DSSContext,
dirOrFilePath::String,
saveFlags::Int32
) -> String
Equivalent of the "save circuit" DSS command, but allows customization through the saveFlags
argument, which is a set of bit flags. See the DSSSaveFlags
enumeration for available flags:
CalcVoltageBases
: Include the command CalcVoltageBases.SetVoltageBases
: Include commands to set the voltage bases individually.IncludeOptions
: Include most of the options (from the Set/Get DSS commands).IncludeDisabled
: Include disabled circuit elements (and LoadShapes).ExcludeDefault
: Exclude default DSS items if they are not modified by the user.SingleFile
: Use a single file instead of a folder for output.KeepOrder
: Save the circuit elements in the order they were loaded in the active circuit. Guarantees better reproducibility, especially when the system is ill-conditioned. Requires "SingleFile" flag.ExcludeMeterZones
: Do not export meter zones (as "feeders") separately. Has no effect when using a single file.IsOpen
: Export commands to open terminals of elements.ToString
: to the result string. Requires "SingleFile" flag.
If SingleFile
is enabled, the path name argument (dirOrFilePath
) is the file path, otherwise it is the folder path. For string output, the argument is not used.
(API Extension)
OpenDSSDirect.Circuit.SaveSample
— MethodSaveSample(dss::DSSContext)
Save all all meters and monitors registers and buffers
OpenDSSDirect.Circuit.SetActiveBus
— MethodSetActiveBus(dss::DSSContext, BusName::String) -> Int64
Set active bus name
OpenDSSDirect.Circuit.SetActiveBusi
— MethodSetActiveBusi(dss::DSSContext, BusIndex::Int64) -> Int64
Set active bus index
OpenDSSDirect.Circuit.SetActiveClass
— MethodSetActiveClass(dss::DSSContext, ClassName::String) -> Int64
Set active class name
OpenDSSDirect.Circuit.SetActiveElement
— MethodSetActiveElement(dss::DSSContext, FullName::String) -> Int64
Set active element full name
OpenDSSDirect.Circuit.SetCktElement
— MethodSetCktElement(dss::DSSContext, Idx::Int64)
Activates a circuit element by the given index
OpenDSSDirect.Circuit.SetCktElement
— MethodSetCktElement(dss::DSSContext, Name::String)
Activates a circuit element by the given name
OpenDSSDirect.Circuit.SubstationLosses
— MethodSubstationLosses(dss::DSSContext) -> ComplexF64
Complex losses in all transformers designated to substations.
OpenDSSDirect.Circuit.SystemY
— MethodSystemY(dss::DSSContext) -> Matrix{ComplexF64}
System Y matrix (after a solution has been performed) Deprecated, consider using YMatrix.getYsparse() instead
OpenDSSDirect.Circuit.ToJSON
— MethodToJSON(dss::DSSContext, options::Int32) -> String
EXPERIMENTAL: Returns the general circuit data, including all DSS objects, as a JSON-encoded string. The data is encoded using the proposed AltDSS Schema, see https://github.com/dss-extensions/altdss-schema/ and https://github.com/orgs/dss-extensions/discussions/ for links to docs and to provide feedback for future revisions.
The options argument is an integer bitset from the enum DSSJSONFlags
.
(API Extension)
OpenDSSDirect.Circuit.TotalPower
— MethodTotalPower(dss::DSSContext) -> ComplexF64
Total power, watts delivered to the circuit
OpenDSSDirect.Circuit.UpdateStorage
— MethodUpdateStorage(dss::DSSContext)
Update storage
OpenDSSDirect.Circuit.YCurrents
— MethodYCurrents(dss::DSSContext) -> Vector{ComplexF64}
Array of doubles containing complex injection currents for the present solution. Is is the "I" vector of I=YV
OpenDSSDirect.Circuit.YNodeOrder
— MethodYNodeOrder(dss::DSSContext) -> Vector{String}
Array of strings containing the names of the nodes in the same order as the Y matrix
OpenDSSDirect.Circuit.YNodeVArray
— MethodYNodeVArray(dss::DSSContext) -> Vector{ComplexF64}
Complex array of actual node voltages in same order as SystemY matrix.
CktElement
OpenDSSDirect.CktElement.AllPropertyNames
— MethodAllPropertyNames(dss::DSSContext) -> Vector{String}
Array containing all property names of the active device.
OpenDSSDirect.CktElement.AllVariableNames
— MethodAllVariableNames(dss::DSSContext) -> Vector{String}
Array of strings listing all the published variable names, if a PCElement. Otherwise, null string.
OpenDSSDirect.CktElement.AllVariableValues
— MethodAllVariableValues(dss::DSSContext) -> Vector{Float64}
Array of doubles. Values of state variables of active element if PC element.
OpenDSSDirect.CktElement.BusNames
— MethodBusNames(dss::DSSContext, Value::Vector{String})
Array of strings. Set Bus definitions for each terminal is connected.
OpenDSSDirect.CktElement.BusNames
— MethodBusNames(dss::DSSContext) -> Vector{String}
Array of strings. Get Bus definitions to which each terminal is connected. 0-based array.
OpenDSSDirect.CktElement.Close
— MethodClose(dss::DSSContext, Term::Int64, Phs::Int64)
Close phase of terminal for active circuit element
OpenDSSDirect.CktElement.Controller
— MethodController(dss::DSSContext, idx::Int64) -> String
Full name of the i-th controller attached to this element. Ex: str = Controller(2). See NumControls to determine valid index range
OpenDSSDirect.CktElement.CplxSeqCurrents
— MethodCplxSeqCurrents(dss::DSSContext) -> Vector{ComplexF64}
Complex double array of Sequence Currents for all conductors of all terminals of active circuit element.
OpenDSSDirect.CktElement.CplxSeqVoltages
— MethodCplxSeqVoltages(dss::DSSContext) -> Vector{ComplexF64}
Complex double array of Sequence Voltage for all terminals of active circuit element.
OpenDSSDirect.CktElement.Currents
— MethodCurrents(dss::DSSContext) -> Vector{ComplexF64}
Complex array of currents into each conductor of each terminal
OpenDSSDirect.CktElement.CurrentsMagAng
— MethodCurrentsMagAng(dss::DSSContext) -> Matrix{Float64}
Currents in magnitude, angle format as a array of doubles.
OpenDSSDirect.CktElement.DisplayName
— MethodDisplayName(dss::DSSContext, Value::String)
Display name of the object (not necessarily unique) (Setter)
OpenDSSDirect.CktElement.DisplayName
— MethodDisplayName(dss::DSSContext) -> String
Display name of the object (not necessarily unique) (Getter)
OpenDSSDirect.CktElement.EmergAmps
— MethodEmergAmps(dss::DSSContext, Value::Float64)
Emergency Ampere Rating for PD elements (Setter)
OpenDSSDirect.CktElement.EmergAmps
— MethodEmergAmps(dss::DSSContext) -> Float64
Emergency Ampere Rating for PD elements (Getter)
OpenDSSDirect.CktElement.Enabled
— MethodEnabled(dss::DSSContext, Value::Bool)
Boolean indicating that element is currently in the circuit. (Setter)
OpenDSSDirect.CktElement.Enabled
— MethodEnabled(dss::DSSContext) -> Bool
Boolean indicating that element is currently in the circuit. (Getter)
OpenDSSDirect.CktElement.EnergyMeter
— MethodEnergyMeter(dss::DSSContext) -> String
Name of the Energy Meter this element is assigned to.
OpenDSSDirect.CktElement.GUID
— MethodGUID(dss::DSSContext) -> String
globally unique identifier for this object
OpenDSSDirect.CktElement.Handle
— MethodHandle(dss::DSSContext) -> Int64
Pointer to this object
OpenDSSDirect.CktElement.HasOCPDevice
— MethodHasOCPDevice(dss::DSSContext) -> Bool
True if a recloser, relay, or fuse controlling this ckt element. OCP = Overcurrent Protection
OpenDSSDirect.CktElement.HasSwitchControl
— MethodHasSwitchControl(dss::DSSContext) -> Bool
This element has a SwtControl attached.
OpenDSSDirect.CktElement.HasVoltControl
— MethodHasVoltControl(dss::DSSContext) -> Bool
This element has a CapControl or RegControl attached.
OpenDSSDirect.CktElement.IsIsolated
— MethodIsIsolated(dss::DSSContext) -> Bool
Returns true if the current active element is isolated. Note that this only fetches the current value. See also the Topology interface.
OpenDSSDirect.CktElement.IsOpen
— MethodIsOpen(dss::DSSContext, Term::Int64, Phs::Int64) -> Bool
Check if open phase of terminal for active circuit element
OpenDSSDirect.CktElement.Losses
— MethodLosses(dss::DSSContext) -> Vector{ComplexF64}
Total losses in the element: two-element complex array
OpenDSSDirect.CktElement.Name
— MethodName(dss::DSSContext) -> String
Full Name of Active Circuit Element
OpenDSSDirect.CktElement.NodeOrder
— MethodNodeOrder(dss::DSSContext) -> Vector{Int64}
Array of integer containing the node numbers (representing phases, for example) for each conductor of each terminal.
OpenDSSDirect.CktElement.NodeRef
— MethodNodeRef(dss::DSSContext) -> Vector{Int64}
Array of integers, a copy of the internal NodeRef of the CktElement.
(API Extension)
OpenDSSDirect.CktElement.NormalAmps
— MethodNormalAmps(dss::DSSContext, Value::Float64)
Normal ampere rating for PD Elements (Setter)
OpenDSSDirect.CktElement.NormalAmps
— MethodNormalAmps(dss::DSSContext) -> Float64
Normal ampere rating for PD Elements (Getter)
OpenDSSDirect.CktElement.NumConductors
— MethodNumConductors(dss::DSSContext) -> Int64
Number of Conductors per Terminal
OpenDSSDirect.CktElement.NumControls
— MethodNumControls(dss::DSSContext) -> Int64
Number of controls connected to this device. Use to determine valid range for index into Controller array.
OpenDSSDirect.CktElement.NumPhases
— MethodNumPhases(dss::DSSContext) -> Int64
Number of Phases
OpenDSSDirect.CktElement.NumProperties
— MethodNumProperties(dss::DSSContext) -> Int64
Number of Properties this Circuit Element.
OpenDSSDirect.CktElement.NumTerminals
— MethodNumTerminals(dss::DSSContext) -> Int64
Number of Terminals this Circuit Element
OpenDSSDirect.CktElement.OCPDevIndex
— MethodOCPDevIndex(dss::DSSContext) -> Int64
Index into Controller list of OCP Device controlling this CktElement
OpenDSSDirect.CktElement.OCPDevType
— MethodOCPDevType(dss::DSSContext) -> Int64
0=None; 1=Fuse; 2=Recloser; 3=Relay; Type of OCP controller device
OpenDSSDirect.CktElement.Open
— MethodOpen(dss::DSSContext, Term::Int64, Phs::Int64)
Open phase of terminal for active circuit element
OpenDSSDirect.CktElement.PhaseLosses
— MethodPhaseLosses(dss::DSSContext) -> Vector{ComplexF64}
Complex array of losses by phase
OpenDSSDirect.CktElement.Powers
— MethodPowers(dss::DSSContext) -> Vector{ComplexF64}
Complex array of powers into each conductor of each terminal
OpenDSSDirect.CktElement.Residuals
— MethodResiduals(dss::DSSContext) -> Matrix{Float64}
Residual currents for each terminal: (mag, angle)
OpenDSSDirect.CktElement.SeqCurrents
— MethodSeqCurrents(dss::DSSContext) -> Vector{Float64}
Double array of symmetrical component currents into each 3-phase terminal
OpenDSSDirect.CktElement.SeqPowers
— MethodSeqPowers(dss::DSSContext) -> Vector{ComplexF64}
Double array of sequence powers into each 3-phase teminal
OpenDSSDirect.CktElement.SeqVoltages
— MethodSeqVoltages(dss::DSSContext) -> Vector{Float64}
Double array of symmetrical component voltages at each 3-phase terminal
OpenDSSDirect.CktElement.TotalPowers
— MethodTotalPowers(dss::DSSContext) -> Vector{ComplexF64}
Returns the total powers (complex) at ALL terminals of the active circuit element.
OpenDSSDirect.CktElement.Variable
— MethodVariable(
dss::DSSContext,
MyVarName::String,
Unused::Int64,
Value::Float64
)
For PCElement, set the value of a variable by name. (Setter)
OpenDSSDirect.CktElement.Variable
— MethodVariable(
dss::DSSContext,
MyVarName::String,
Unused::Int64
) -> Float64
For PCElement, get the value of a variable by name. (Getter)
OpenDSSDirect.CktElement.Variablei
— MethodVariablei(
dss::DSSContext,
Idx::Int64,
Unused::Int64,
Value::Float64
)
For PCElement, set the value of a variable by integer index. (Setter)
OpenDSSDirect.CktElement.Variablei
— MethodVariablei(
dss::DSSContext,
Idx::Int64,
Unused::Int64
) -> Float64
For PCElement, get the value of a variable by integer index. (Getter)
OpenDSSDirect.CktElement.Voltages
— MethodVoltages(dss::DSSContext) -> Vector{ComplexF64}
Complex array of voltages at terminals
OpenDSSDirect.CktElement.VoltagesMagAng
— MethodVoltagesMagAng(dss::DSSContext) -> Matrix{Float64}
Voltages at each conductor in magnitude, angle form as array of doubles.
OpenDSSDirect.CktElement.YPrim
— MethodYPrim(dss::DSSContext) -> Matrix{ComplexF64}
YPrim matrix, column order, complex numbers (paired)
CNData
OpenDSSDirect.CNData.AllNames
— MethodAllNames(dss::DSSContext) -> Vector{String}
Array of names of all CNData objects.
OpenDSSDirect.CNData.Count
— MethodCount(dss::DSSContext) -> Int64
Number of CNData Objects in Active Circuit
OpenDSSDirect.CNData.DiaCable
— MethodDiaCable(dss::DSSContext, Value::Float64)
DiaCable (Setter)
OpenDSSDirect.CNData.DiaCable
— MethodDiaCable(dss::DSSContext) -> Float64
DiaCable (Getter)
OpenDSSDirect.CNData.DiaIns
— MethodDiaIns(dss::DSSContext, Value::Float64)
DiaIns (Setter)
OpenDSSDirect.CNData.DiaIns
— MethodDiaIns(dss::DSSContext) -> Float64
DiaIns (Getter)
OpenDSSDirect.CNData.DiaStrand
— MethodDiaStrand(dss::DSSContext, Value::Float64)
DiaStrand (Setter)
OpenDSSDirect.CNData.DiaStrand
— MethodDiaStrand(dss::DSSContext) -> Float64
DiaStrand (Getter)
OpenDSSDirect.CNData.Diameter
— MethodDiameter(dss::DSSContext, Value::Float64)
Diameter (Setter)
OpenDSSDirect.CNData.Diameter
— MethodDiameter(dss::DSSContext) -> Float64
Diameter (Getter)
OpenDSSDirect.CNData.EmergAmps
— MethodEmergAmps(dss::DSSContext, Value::Float64)
Emergency ampere rating (Setter)
OpenDSSDirect.CNData.EmergAmps
— MethodEmergAmps(dss::DSSContext) -> Float64
Emergency ampere rating (Getter)
OpenDSSDirect.CNData.EpsR
— MethodEpsR(dss::DSSContext, Value::Float64)
EpsR (Setter)
OpenDSSDirect.CNData.EpsR
— MethodEpsR(dss::DSSContext) -> Float64
EpsR (Getter)
OpenDSSDirect.CNData.First
— MethodFirst(dss::DSSContext) -> Int64
Sets first CNData to be active. Returns 0 if none.
OpenDSSDirect.CNData.GMRUnits
— MethodGMRUnits(
dss::DSSContext,
Value::Union{Int64, OpenDSSDirect.Lib.LineUnits}
)
GMRUnits (Setter)
OpenDSSDirect.CNData.GMRUnits
— MethodGMRUnits(dss::DSSContext) -> OpenDSSDirect.Lib.LineUnits
GMRUnits (Getter)
OpenDSSDirect.CNData.GMRac
— MethodGMRac(dss::DSSContext, Value::Float64)
GMRac (Setter)
OpenDSSDirect.CNData.GMRac
— MethodGMRac(dss::DSSContext) -> Float64
GMRac (Getter)
OpenDSSDirect.CNData.GmrStrand
— MethodGmrStrand(dss::DSSContext, Value::Float64)
GmrStrand (Setter)
OpenDSSDirect.CNData.GmrStrand
— MethodGmrStrand(dss::DSSContext) -> Float64
GmrStrand (Getter)
OpenDSSDirect.CNData.Idx
— MethodIdx(dss::DSSContext, Value::Int64)
Active CNData by index. 1..Count (Setter)
OpenDSSDirect.CNData.Idx
— MethodIdx(dss::DSSContext) -> Int64
Active CNData by index. 1..Count (Getter)
OpenDSSDirect.CNData.InsLayer
— MethodInsLayer(dss::DSSContext, Value::Float64)
InsLayer (Setter)
OpenDSSDirect.CNData.InsLayer
— MethodInsLayer(dss::DSSContext) -> Float64
InsLayer (Getter)
OpenDSSDirect.CNData.Name
— MethodName(dss::DSSContext, Value::String)
Sets a CNData active by name.
OpenDSSDirect.CNData.Name
— MethodName(dss::DSSContext) -> String
Sets a CNData active by name.
OpenDSSDirect.CNData.Next
— MethodNext(dss::DSSContext) -> Int64
Sets next CNData to be active. Returns 0 if no more.
OpenDSSDirect.CNData.NormAmps
— MethodNormAmps(dss::DSSContext, Value::Float64)
Normal Ampere rating (Setter)
OpenDSSDirect.CNData.NormAmps
— MethodNormAmps(dss::DSSContext) -> Float64
Normal Ampere rating (Getter)
OpenDSSDirect.CNData.RStrand
— MethodRStrand(dss::DSSContext, Value::Float64)
RStrand (Setter)
OpenDSSDirect.CNData.RStrand
— MethodRStrand(dss::DSSContext) -> Float64
RStrand (Getter)
OpenDSSDirect.CNData.Rac
— MethodRac(dss::DSSContext, Value::Float64)
Rac (Setter)
OpenDSSDirect.CNData.Rac
— MethodRac(dss::DSSContext) -> Float64
Rac (Getter)
OpenDSSDirect.CNData.Radius
— MethodRadius(dss::DSSContext, Value::Float64)
Radius (Setter)
OpenDSSDirect.CNData.Radius
— MethodRadius(dss::DSSContext) -> Float64
Radius (Getter)
OpenDSSDirect.CNData.RadiusUnits
— MethodRadiusUnits(
dss::DSSContext,
Value::Union{Int64, OpenDSSDirect.Lib.LineUnits}
)
RadiusUnits (Setter)
OpenDSSDirect.CNData.RadiusUnits
— MethodRadiusUnits(dss::DSSContext) -> OpenDSSDirect.Lib.LineUnits
RadiusUnits (Getter)
OpenDSSDirect.CNData.Rdc
— MethodRdc(dss::DSSContext, Value::Float64)
Rdc (Setter)
OpenDSSDirect.CNData.Rdc
— MethodRdc(dss::DSSContext) -> Float64
Rdc (Getter)
OpenDSSDirect.CNData.ResistanceUnits
— MethodResistanceUnits(
dss::DSSContext,
Value::Union{Int64, OpenDSSDirect.Lib.LineUnits}
)
ResistanceUnits (Setter)
OpenDSSDirect.CNData.ResistanceUnits
— MethodResistanceUnits(
dss::DSSContext
) -> OpenDSSDirect.Lib.LineUnits
ResistanceUnits (Getter)
OpenDSSDirect.CNData.k
— Methodk(dss::DSSContext, Value::Float64)
k (Setter)
OpenDSSDirect.CNData.k
— Methodk(dss::DSSContext) -> Float64
k (Getter)
CtrlQueue
OpenDSSDirect.CtrlQueue.Action
— MethodAction(dss::DSSContext, Param1::Int64)
(write-only) Set the active action by index
OpenDSSDirect.CtrlQueue.ActionCode
— MethodActionCode(dss::DSSContext) -> OpenDSSDirect.Lib.ActionCodes
Code for the active action. Long integer code to tell the control device what to do
OpenDSSDirect.CtrlQueue.ClearActions
— MethodClearActions(dss::DSSContext)
Clear actions for Control Queue
OpenDSSDirect.CtrlQueue.ClearQueue
— MethodClearQueue(dss::DSSContext)
Clear queue for Control Queue
OpenDSSDirect.CtrlQueue.Delete
— MethodDelete(dss::DSSContext, ActionHandle::Int64)
Delete action handle for Control Queue
OpenDSSDirect.CtrlQueue.DeviceHandle
— MethodDeviceHandle(dss::DSSContext) -> Int64
Handle (User defined) to device that must act on the pending action.
OpenDSSDirect.CtrlQueue.DoAllQueue
— MethodDoAllQueue(dss::DSSContext)
Do all actions
OpenDSSDirect.CtrlQueue.NumActions
— MethodNumActions(dss::DSSContext) -> Int64
Number of Actions on the current actionlist (that have been popped off the control queue by CheckControlActions)
OpenDSSDirect.CtrlQueue.PopAction
— MethodPopAction(dss::DSSContext) -> Int64
Pops next action off the action list and makes it the active action. Returns zero if none.
OpenDSSDirect.CtrlQueue.Push
— MethodPush(
dss::DSSContext,
Hour::Int32,
Seconds::Float64,
ActionCode::Union{Int32, OpenDSSDirect.Lib.ActionCodes},
DeviceHandle::Int32
) -> Int64
Push a control action onto the DSS control queue by time, action code, and device handle (user defined). Returns Control Queue handle.
OpenDSSDirect.CtrlQueue.Queue
— MethodQueue(dss::DSSContext) -> Vector{String}
Array of strings containing the entire queue in CSV format
OpenDSSDirect.CtrlQueue.QueueSize
— MethodQueueSize(dss::DSSContext) -> Int64
Number of items on the OpenDSS control Queue
OpenDSSDirect.CtrlQueue.Show
— MethodShow(dss::DSSContext)
Show queue
Element
OpenDSSDirect.Element.AllPropertyNames
— MethodAllPropertyNames(dss::DSSContext) -> Vector{String}
Array of strings containing the names of all properties for the active DSS object.
OpenDSSDirect.Element.Name
— MethodName(dss::DSSContext) -> String
Full Name of Active DSS Object (general element or circuit element).
OpenDSSDirect.Element.NumProperties
— MethodNumProperties(dss::DSSContext) -> Int64
Number of Properties for the active DSS object.
OpenDSSDirect.Element.ToJSON
— MethodToJSON(dss::DSSContext, Flags::Int32) -> String
Returns the properties of the active DSS object as a JSON-encoded string.
The options
parameter contains bit-flags to toggle specific features. See Obj_ToJSON
(C-API) for more.
(API Extension)
Error
OpenDSSDirect.Error.Description
— MethodDescription(dss::DSSContext) -> String
Description of error for last operation
OpenDSSDirect.Error.EarlyAbort
— MethodEarlyAbort(dss::DSSContext, Value::Bool)
EarlyAbort controls whether all errors halts the DSS script processing (Compile/Redirect), defaults to True. (Setter)
(API Extension)
OpenDSSDirect.Error.EarlyAbort
— MethodEarlyAbort(dss::DSSContext) -> Bool
EarlyAbort controls whether all errors halts the DSS script processing (Compile/Redirect), defaults to True. (Getter)
(API Extension)
OpenDSSDirect.Error.ExtendedErrors
— MethodExtendedErrors(dss::DSSContext, Value::Bool)
Get/set the state of the Legacy Models mechanism (Setter)
If enabled, the legacy/deprecated models for PVSystem, InvControl, Storage and StorageControl are used. WARNING: Changing the active value runs a "Clear" command, discarding the current circuit.
Defaults to false (disabled state).
This can also be set through the environment variable DSS_CAPI_LEGACY_MODELS
. Setting it to 1 enables the legacy components, using the old models from the start.
(API Extension)
OpenDSSDirect.Error.ExtendedErrors
— MethodExtendedErrors(dss::DSSContext) -> Bool
Get/set the state of the Legacy Models mechanism (Getter)
If enabled, the legacy/deprecated models for PVSystem, InvControl, Storage and StorageControl are used. WARNING: Changing the active value runs a "Clear" command, discarding the current circuit.
Defaults to false (disabled state).
This can also be set through the environment variable DSS_CAPI_LEGACY_MODELS
. Setting it to 1 enables the legacy components, using the old models from the start.
(API Extension)
OpenDSSDirect.Error.Number
— MethodNumber(dss::DSSContext) -> Int64
Error Number
Executive
OpenDSSDirect.Executive.Command
— MethodCommand(dss::DSSContext, i::Int64) -> String
Get i-th command
OpenDSSDirect.Executive.CommandHelp
— MethodCommandHelp(dss::DSSContext, i::Int64) -> String
Get help string for i-th command
OpenDSSDirect.Executive.NumCommands
— MethodNumCommands(dss::DSSContext) -> Int64
Number of DSS Executive Commands
OpenDSSDirect.Executive.NumOptions
— MethodNumOptions(dss::DSSContext) -> Int64
Number of DSS Executive Options
OpenDSSDirect.Executive.Option
— MethodOption(dss::DSSContext, i::Int64) -> String
Get i-th option
OpenDSSDirect.Executive.OptionHelp
— MethodOptionHelp(dss::DSSContext, i::Int64) -> String
Get help string for i-th option
OpenDSSDirect.Executive.OptionValue
— MethodOptionValue(dss::DSSContext, i::Int64) -> String
Get present value of i-th option
Fuses
OpenDSSDirect.Fuses.AllNames
— MethodAllNames(dss::DSSContext) -> Vector{String}
Array of strings containing names of all Fuses in the circuit
OpenDSSDirect.Fuses.Close
— MethodClose(dss::DSSContext)
Reset fuse
OpenDSSDirect.Fuses.Count
— MethodCount(dss::DSSContext) -> Int64
Number of Fuse elements in the circuit
OpenDSSDirect.Fuses.Delay
— MethodDelay(dss::DSSContext, Value::Float64)
A fixed delay time in seconds added to the fuse blowing time determined by the TCC curve. Default is 0. (Setter)
OpenDSSDirect.Fuses.Delay
— MethodDelay(dss::DSSContext) -> Float64
A fixed delay time in seconds added to the fuse blowing time determined by the TCC curve. Default is 0. (Getter)
OpenDSSDirect.Fuses.First
— MethodFirst(dss::DSSContext) -> Int64
Set the first Fuse to be the active fuse. Returns 0 if none.
OpenDSSDirect.Fuses.Idx
— MethodIdx(dss::DSSContext, Value::Int64)
Active fuse by index into the list of fuses. 1 indexed based. 1..count (Setter)
OpenDSSDirect.Fuses.Idx
— MethodIdx(dss::DSSContext) -> Int64
Active fuse by index into the list of fuses. 1 indexed based. 1..count (Getter)
OpenDSSDirect.Fuses.IsBlown
— MethodIsBlown(dss::DSSContext) -> Bool
Check if the fuse is blown for any phase
OpenDSSDirect.Fuses.MonitoredObj
— MethodMonitoredObj(dss::DSSContext, Value::String)
Full name of the circuit element to which the fuse is connected.
OpenDSSDirect.Fuses.MonitoredObj
— MethodMonitoredObj(dss::DSSContext) -> String
Full name of the circuit element to which the fuse is connected.
OpenDSSDirect.Fuses.MonitoredTerm
— MethodMonitoredTerm(dss::DSSContext, Value::Int64)
Terminal number to which the fuse is connected. (Setter)
OpenDSSDirect.Fuses.MonitoredTerm
— MethodMonitoredTerm(dss::DSSContext) -> Int64
Terminal number to which the fuse is connected. (Getter)
OpenDSSDirect.Fuses.Name
— MethodName(dss::DSSContext, Value::String)
Name of the active Fuse element (Setter)
OpenDSSDirect.Fuses.Name
— MethodName(dss::DSSContext) -> String
Name of the active Fuse element (Getter)
OpenDSSDirect.Fuses.Next
— MethodNext(dss::DSSContext) -> Int64
Advance the active Fuse element pointer to the next fuse. Returns 0 if no more fuses.
OpenDSSDirect.Fuses.NormalState
— MethodNormalState(dss::DSSContext, Value::Array{String})
Array of strings ('open' or 'closed') indicating the normal state of each phase of the fuse. (Setter)
OpenDSSDirect.Fuses.NormalState
— MethodNormalState(dss::DSSContext) -> Vector{String}
Array of strings ('open' or 'closed') indicating the normal state of each phase of the fuse. (Getter)
OpenDSSDirect.Fuses.NumPhases
— MethodNumPhases(dss::DSSContext) -> Int64
Number of phases, this fuse.
OpenDSSDirect.Fuses.Open
— MethodOpen(dss::DSSContext)
Open all phases
OpenDSSDirect.Fuses.RatedCurrent
— MethodRatedCurrent(dss::DSSContext, Value::Float64)
Multiplier or actual amps for the TCCcurve object. Defaults to 1.0. Multipliy current values of TCC curve by this to get actual amps. Has to correspond to the Current axis of TCCcurve object. (Setter)
OpenDSSDirect.Fuses.RatedCurrent
— MethodRatedCurrent(dss::DSSContext) -> Float64
Multiplier or actual amps for the TCCcurve object. Defaults to 1.0. Multipliy current values of TCC curve by this to get actual amps. Has to correspond to the Current axis of TCCcurve object. (Getter)
OpenDSSDirect.Fuses.Reset
— MethodReset(dss::DSSContext)
Reset fuse to normal state.
OpenDSSDirect.Fuses.State
— MethodState(dss::DSSContext, Value::Array{String})
Array of strings ('open' or 'closed') indicating the state of each phase of the fuse. (Setter)
OpenDSSDirect.Fuses.State
— MethodState(dss::DSSContext) -> Vector{String}
Array of strings ('open' or 'closed') indicating the state of each phase of the fuse. (Getter)
OpenDSSDirect.Fuses.SwitchedObj
— MethodSwitchedObj(dss::DSSContext, Value::String)
Full name of the circuit element switch that the fuse controls. Defaults to the MonitoredObj. (Setter)
OpenDSSDirect.Fuses.SwitchedObj
— MethodSwitchedObj(dss::DSSContext) -> String
Full name of the circuit element switch that the fuse controls. Defaults to the MonitoredObj. (Getter)
OpenDSSDirect.Fuses.SwitchedTerm
— MethodSwitchedTerm(dss::DSSContext, Value::Int64)
Number of the terminal of the controlled element containing the switch controlled by the fuse. (Setter)
OpenDSSDirect.Fuses.SwitchedTerm
— MethodSwitchedTerm(dss::DSSContext) -> Int64
Number of the terminal of the controlled element containing the switch controlled by the fuse. (Getter)
OpenDSSDirect.Fuses.TCCCurve
— MethodTCCCurve(dss::DSSContext, Value::String)
Name of the TCCcurve object that determines fuse blowing. (Setter)
OpenDSSDirect.Fuses.TCCCurve
— MethodTCCCurve(dss::DSSContext) -> String
Name of the TCCcurve object that determines fuse blowing. (Getter)
Generators
OpenDSSDirect.Generators.AllNames
— MethodAllNames(dss::DSSContext) -> Vector{String}
Array of names of all Generator objects.
OpenDSSDirect.Generators.Bus1
— MethodBus1(dss::DSSContext, Value::String)
Bus to which the Generator is connected. May include specific node specification. (Setter)
(API Extension)
OpenDSSDirect.Generators.Bus1
— MethodBus1(dss::DSSContext) -> String
Bus to which the Generator is connected. May include specific node specification. (Getter)
(API Extension)
OpenDSSDirect.Generators.Class
— MethodClass(dss::DSSContext, Value::Int64)
An arbitrary integer number representing the class of Generator so that Generator values may be segregated by class. (Setter)
(API Extension)
OpenDSSDirect.Generators.Class
— MethodClass(dss::DSSContext) -> Int64
An arbitrary integer number representing the class of Generator so that Generator values may be segregated by class. (Getter)
(API Extension)
OpenDSSDirect.Generators.Count
— MethodCount(dss::DSSContext) -> Int64
Number of Generator Objects in Active Circuit
OpenDSSDirect.Generators.First
— MethodFirst(dss::DSSContext) -> Int64
Sets first Generator to be active. Returns 0 if none.
OpenDSSDirect.Generators.ForcedON
— MethodForcedON(dss::DSSContext, Value::Bool)
Indicates whether the generator is forced ON regardles of other dispatch criteria.
OpenDSSDirect.Generators.ForcedON
— MethodForcedON(dss::DSSContext) -> Bool
Indicates whether the generator is forced ON regardles of other dispatch criteria.
OpenDSSDirect.Generators.Idx
— MethodIdx(dss::DSSContext, Value::Int64)
Active Generator by index into generators list. 1..Count (Setter)
OpenDSSDirect.Generators.Idx
— MethodIdx(dss::DSSContext) -> Int64
Active Generator by index into generators list. 1..Count (Getter)
OpenDSSDirect.Generators.IsDelta
— MethodIsDelta(dss::DSSContext, Value::Bool)
Generator connection. True/1 if delta connection, False/0 if wye. (Setter)
(API Extension)
OpenDSSDirect.Generators.IsDelta
— MethodIsDelta(dss::DSSContext) -> Bool
Generator connection. True/1 if delta connection, False/0 if wye. (Getter)
(API Extension)
OpenDSSDirect.Generators.Model
— MethodModel(dss::DSSContext, Value::Int64)
Generator Model
OpenDSSDirect.Generators.Model
— MethodModel(dss::DSSContext) -> Int64
Generator Model
OpenDSSDirect.Generators.Name
— MethodName(dss::DSSContext, Value::String)
Sets a generator active by name.
OpenDSSDirect.Generators.Name
— MethodName(dss::DSSContext) -> String
Sets a generator active by name.
OpenDSSDirect.Generators.Next
— MethodNext(dss::DSSContext) -> Int64
Sets next Generator to be active. Returns 0 if no more.
OpenDSSDirect.Generators.PF
— MethodPF(dss::DSSContext, Value::Float64)
Power factor (pos. = producing vars). Updates kvar based on present kW value.
OpenDSSDirect.Generators.PF
— MethodPF(dss::DSSContext) -> Float64
Power factor (pos. = producing vars). Updates kvar based on present kW value.
OpenDSSDirect.Generators.Phases
— MethodPhases(dss::DSSContext, Value::Int64)
Number of phases
OpenDSSDirect.Generators.Phases
— MethodPhases(dss::DSSContext) -> Int64
Number of phases
OpenDSSDirect.Generators.RegisterNames
— MethodRegisterNames(dss::DSSContext) -> Vector{String}
Array of Names of all generator energy meter registers
OpenDSSDirect.Generators.RegisterValues
— MethodRegisterValues(dss::DSSContext) -> Vector{Float64}
Array of valus in generator energy meter registers.
OpenDSSDirect.Generators.Status
— MethodStatus(
dss::DSSContext,
Value::Union{Int64, OpenDSSDirect.Lib.GeneratorStatus}
)
Response to dispatch multipliers Fixed=1 (dispatch multipliers do not apply), Variable=0 (follows curves). (Setter)
Related enumeration: GeneratorStatus
(API Extension)
OpenDSSDirect.Generators.Status
— MethodStatus(dss::DSSContext)
Response to dispatch multipliers Fixed=1 (dispatch multipliers do not apply), Variable=0 (follows curves). (Getter)
Related enumeration: GeneratorStatus
(API Extension)
OpenDSSDirect.Generators.Vmaxpu
— MethodVmaxpu(dss::DSSContext, Value::Float64)
Vmaxpu for generator model
OpenDSSDirect.Generators.Vmaxpu
— MethodVmaxpu(dss::DSSContext) -> Float64
Vmaxpu for generator model
OpenDSSDirect.Generators.Vminpu
— MethodVminpu(dss::DSSContext, Value::Float64)
Vminpu for Generator model
OpenDSSDirect.Generators.Vminpu
— MethodVminpu(dss::DSSContext) -> Float64
Vminpu for Generator model
OpenDSSDirect.Generators.Yearly
— MethodYearly(dss::DSSContext, Value::String)
Name of yearly loadshape (Setter)
(API Extension)
OpenDSSDirect.Generators.Yearly
— MethodYearly(dss::DSSContext) -> String
Name of yearly loadshape (Getter)
(API Extension)
OpenDSSDirect.Generators.daily
— Methoddaily(dss::DSSContext, Value::String)
Name of the loadshape for the daily generation profile. (Setter)
(API Extension)
OpenDSSDirect.Generators.daily
— Methoddaily(dss::DSSContext) -> String
Name of the loadshape for the daily generation profile. (Getter)
(API Extension)
OpenDSSDirect.Generators.duty
— Methodduty(dss::DSSContext, Value::String)
Name of the loadshape for a duty cycle simulation. (Setter)
(API Extension)
OpenDSSDirect.Generators.duty
— Methodduty(dss::DSSContext) -> String
Name of the loadshape for a duty cycle simulation. (Getter)
(API Extension)
OpenDSSDirect.Generators.kV
— MethodkV(dss::DSSContext, Value::Float64)
Voltage base for the active generator, kV (Setter)
OpenDSSDirect.Generators.kV
— MethodkV(dss::DSSContext) -> Float64
Voltage base for the active generator, kV (Getter)
OpenDSSDirect.Generators.kVARated
— MethodkVARated(dss::DSSContext, Value::Float64)
kVA rating of the generator (Setter)
OpenDSSDirect.Generators.kVARated
— MethodkVARated(dss::DSSContext) -> Float64
kVA rating of the generator (Getter)
OpenDSSDirect.Generators.kW
— MethodkW(dss::DSSContext, Value::Float64)
kW output for the active generator. kvar is updated for current power factor. (Setter)
OpenDSSDirect.Generators.kW
— MethodkW(dss::DSSContext) -> Float64
kW output for the active generator. kvar is updated for current power factor. (Getter)
OpenDSSDirect.Generators.kva
— Methodkva(dss::DSSContext, Value::Float64)
kVA rating of electrical machine. Applied to machine or inverter definition for Dynamics mode solutions. (Setter)
(API Extension)
OpenDSSDirect.Generators.kva
— Methodkva(dss::DSSContext) -> Float64
kVA rating of electrical machine. Applied to machine or inverter definition for Dynamics mode solutions. (Getter)
(API Extension)
OpenDSSDirect.Generators.kvar
— Methodkvar(dss::DSSContext, Value::Float64)
kvar output for the active generator. Updates power factor based on present kW value. (Setter)
OpenDSSDirect.Generators.kvar
— Methodkvar(dss::DSSContext) -> Float64
kvar output for the active generator. Updates power factor based on present kW value. (Getter)
GICSources
OpenDSSDirect.GICSources.AllNames
— MethodAllNames(dss::DSSContext) -> Vector{String}
Array of names of all GICSource objects.
OpenDSSDirect.GICSources.Bus1
— MethodBus1(dss::DSSContext) -> String
First bus name of GICSource (Created name)
OpenDSSDirect.GICSources.Bus2
— MethodBus2(dss::DSSContext) -> String
Second bus name
OpenDSSDirect.GICSources.Count
— MethodCount(dss::DSSContext) -> Int64
Number of GICSource Objects in Active Circuit
OpenDSSDirect.GICSources.EE
— MethodEE(dss::DSSContext, Value::Float64)
Eastward E Field, V/km (Setter)
OpenDSSDirect.GICSources.EE
— MethodEE(dss::DSSContext) -> Float64
Eastward E Field, V/km (Getter)
OpenDSSDirect.GICSources.EN
— MethodEN(dss::DSSContext, Value::Float64)
Northward E Field V/km (Setter)
OpenDSSDirect.GICSources.EN
— MethodEN(dss::DSSContext) -> Float64
Northward E Field V/km (Getter)
OpenDSSDirect.GICSources.First
— MethodFirst(dss::DSSContext) -> Int64
Sets first GICSource to be active. Returns 0 if none.
OpenDSSDirect.GICSources.Idx
— MethodIdx(dss::DSSContext, Value::Int64)
Active GICSource by index. 1..Count (Setter)
OpenDSSDirect.GICSources.Idx
— MethodIdx(dss::DSSContext) -> Int64
Active GICSource by index. 1..Count (Getter)
OpenDSSDirect.GICSources.Lat1
— MethodLat1(dss::DSSContext, Value::Float64)
Latitude of Bus1 (degrees) (Setter)
OpenDSSDirect.GICSources.Lat1
— MethodLat1(dss::DSSContext) -> Float64
Latitude of Bus1 (degrees) (Getter)
OpenDSSDirect.GICSources.Lat2
— MethodLat2(dss::DSSContext, Value::Float64)
Latitude of Bus2 (degrees) (Setter)
OpenDSSDirect.GICSources.Lat2
— MethodLat2(dss::DSSContext) -> Float64
Latitude of Bus2 (degrees) (Getter)
OpenDSSDirect.GICSources.Lon1
— MethodLon1(dss::DSSContext, Value::Float64)
Longitude of Bus1 (Setter)
OpenDSSDirect.GICSources.Lon1
— MethodLon1(dss::DSSContext) -> Float64
Longitude of Bus1 (Getter)
OpenDSSDirect.GICSources.Lon2
— MethodLon2(dss::DSSContext, Value::Float64)
Longitude of Bus2 (Setter)
OpenDSSDirect.GICSources.Lon2
— MethodLon2(dss::DSSContext) -> Float64
Longitude of Bus2 (Getter)
OpenDSSDirect.GICSources.Name
— MethodName(dss::DSSContext, Value::String)
Sets a GICSource active by name.
OpenDSSDirect.GICSources.Name
— MethodName(dss::DSSContext) -> String
Sets a GICSource active by name.
OpenDSSDirect.GICSources.Next
— MethodNext(dss::DSSContext) -> Int64
Sets next GICSource to be active. Returns 0 if no more.
OpenDSSDirect.GICSources.Phases
— MethodPhases(dss::DSSContext, Value::Int64)
Phases (Setter)
OpenDSSDirect.GICSources.Phases
— MethodPhases(dss::DSSContext) -> Int64
Phases (Getter)
OpenDSSDirect.GICSources.Volts
— MethodVolts(dss::DSSContext, Value::Float64)
Specify dc voltage directly (Setter)
OpenDSSDirect.GICSources.Volts
— MethodVolts(dss::DSSContext) -> Float64
Specify dc voltage directly (Getter)
Isource
OpenDSSDirect.Isource.AllNames
— MethodAllNames(dss::DSSContext) -> Vector{String}
Array of strings containing names of all ISOURCE elements.
OpenDSSDirect.Isource.Amps
— MethodAmps(dss::DSSContext, Value::Float64)
Magnitude of the ISOURCE in amps
OpenDSSDirect.Isource.Amps
— MethodAmps(dss::DSSContext) -> Float64
Magnitude of the ISOURCE in amps
OpenDSSDirect.Isource.AngleDeg
— MethodAngleDeg(dss::DSSContext, Value::Float64)
Phase angle for ISOURCE, degrees (Setter)
OpenDSSDirect.Isource.AngleDeg
— MethodAngleDeg(dss::DSSContext) -> Float64
Phase angle for ISOURCE, degrees (Getter)
OpenDSSDirect.Isource.Count
— MethodCount(dss::DSSContext) -> Int64
Count: Number of ISOURCE elements.
OpenDSSDirect.Isource.First
— MethodFirst(dss::DSSContext) -> Int64
Set the First ISOURCE to be active; returns Zero if none.
OpenDSSDirect.Isource.Frequency
— MethodFrequency(dss::DSSContext, Value::Float64)
The present frequency of the ISOURCE, Hz (Setter)
OpenDSSDirect.Isource.Frequency
— MethodFrequency(dss::DSSContext) -> Float64
The present frequency of the ISOURCE, Hz (Getter)
OpenDSSDirect.Isource.Idx
— MethodIdx(dss::DSSContext, Value::Int64)
ISOURCE Index (Setter)
OpenDSSDirect.Isource.Idx
— MethodIdx(dss::DSSContext) -> Int64
ISOURCE Index (Getter)
OpenDSSDirect.Isource.Name
— MethodName(dss::DSSContext, Value::String)
Name of Active ISOURCE (Setter)
OpenDSSDirect.Isource.Name
— MethodName(dss::DSSContext) -> String
Name of Active ISOURCE (Getter)
OpenDSSDirect.Isource.Next
— MethodNext(dss::DSSContext) -> Int64
Sets the next ISOURCE element to be the active one. Returns Zero if no more.
LineCodes
OpenDSSDirect.LineCodes.AllNames
— MethodAllNames(dss::DSSContext) -> Vector{String}
Array of strings with names of all devices
OpenDSSDirect.LineCodes.C0
— MethodC0(dss::DSSContext, Value::Float64)
Zero-sequence capacitance, nF per unit length (Setter)
OpenDSSDirect.LineCodes.C0
— MethodC0(dss::DSSContext) -> Float64
Zero-sequence capacitance, nF per unit length (Getter)
OpenDSSDirect.LineCodes.C1
— MethodC1(dss::DSSContext, Value::Float64)
Positive-sequence capacitance, nF per unit length (Setter)
OpenDSSDirect.LineCodes.C1
— MethodC1(dss::DSSContext) -> Float64
Positive-sequence capacitance, nF per unit length (Getter)
OpenDSSDirect.LineCodes.Cmatrix
— MethodCmatrix(dss::DSSContext, Value::Vector{Float64})
Capacitance matrix, nF per unit length (Setter)
OpenDSSDirect.LineCodes.Cmatrix
— MethodCmatrix(dss::DSSContext) -> Matrix{Float64}
Capacitance matrix, nF per unit length (Getter)
OpenDSSDirect.LineCodes.Cmatrix
— MethodCmatrix(Value::Matrix{Float64})
Capacitance matrix, nF per unit length (Setter)
OpenDSSDirect.LineCodes.Count
— MethodCount(dss::DSSContext) -> Int64
Number of LineCodes
OpenDSSDirect.LineCodes.EmergAmps
— MethodEmergAmps(dss::DSSContext, Value::Float64)
Emergency ampere rating (Setter)
OpenDSSDirect.LineCodes.EmergAmps
— MethodEmergAmps(dss::DSSContext) -> Float64
Emergency ampere rating (Getter)
OpenDSSDirect.LineCodes.Idx
— MethodIdx(dss::DSSContext, Value::Int64)
LineCode Index (Setter)
OpenDSSDirect.LineCodes.Idx
— MethodIdx(dss::DSSContext) -> Int64
LineCode Index (Getter)
OpenDSSDirect.LineCodes.IsZ1Z0
— MethodIsZ1Z0(dss::DSSContext) -> Bool
Flag denoting whether impedance data were entered in symmetrical components
OpenDSSDirect.LineCodes.Name
— MethodName(dss::DSSContext, Value::String)
Name of active LineCode (Setter)
OpenDSSDirect.LineCodes.Name
— MethodName(dss::DSSContext) -> String
Name of active LineCode (Getter)
OpenDSSDirect.LineCodes.NormAmps
— MethodNormAmps(dss::DSSContext, Value::Float64)
Normal Ampere rating (Setter)
OpenDSSDirect.LineCodes.NormAmps
— MethodNormAmps(dss::DSSContext) -> Float64
Normal Ampere rating (Getter)
OpenDSSDirect.LineCodes.Phases
— MethodPhases(dss::DSSContext, Value::Int64)
Number of Phases (Setter)
OpenDSSDirect.LineCodes.Phases
— MethodPhases(dss::DSSContext) -> Int64
Number of Phases (Getter)
OpenDSSDirect.LineCodes.R0
— MethodR0(dss::DSSContext, Value::Float64)
Zero-Sequence Resistance, ohms per unit length (Setter)
OpenDSSDirect.LineCodes.R0
— MethodR0(dss::DSSContext) -> Float64
Zero-Sequence Resistance, ohms per unit length (Getter)
OpenDSSDirect.LineCodes.R1
— MethodR1(dss::DSSContext, Value::Float64)
Positive-sequence resistance ohms per unit length (Setter)
OpenDSSDirect.LineCodes.R1
— MethodR1(dss::DSSContext) -> Float64
Positive-sequence resistance ohms per unit length (Getter)
OpenDSSDirect.LineCodes.Rmatrix
— MethodRmatrix(dss::DSSContext, Value::Vector{Float64})
Resistance matrix, ohms per unit length (Setter)
OpenDSSDirect.LineCodes.Rmatrix
— MethodRmatrix(dss::DSSContext) -> Matrix{Float64}
Resistance matrix, ohms per unit length (Getter)
OpenDSSDirect.LineCodes.Rmatrix
— MethodRmatrix(Value::Matrix{Float64})
Resistance matrix, ohms per unit length (Setter)
OpenDSSDirect.LineCodes.Units
— MethodUnits(
dss::DSSContext,
Value::Union{Int64, OpenDSSDirect.Lib.LineUnits}
)
Units of Line Code (Setter)
OpenDSSDirect.LineCodes.Units
— MethodUnits(dss::DSSContext) -> OpenDSSDirect.Lib.LineUnits
Units of Line Code (Getter)
OpenDSSDirect.LineCodes.X0
— MethodX0(dss::DSSContext, Value::Float64)
Zero Sequence Reactance, ohms per unit length (Setter)
OpenDSSDirect.LineCodes.X0
— MethodX0(dss::DSSContext) -> Float64
Zero Sequence Reactance, ohms per unit length (Getter)
OpenDSSDirect.LineCodes.X1
— MethodX1(dss::DSSContext, Value::Float64)
Positive-sequence reactance, ohms per unit length (Setter)
OpenDSSDirect.LineCodes.X1
— MethodX1(dss::DSSContext) -> Float64
Positive-sequence reactance, ohms per unit length (Getter)
OpenDSSDirect.LineCodes.Xmatrix
— MethodXmatrix(dss::DSSContext, Value::Vector{Float64})
Reactance matrix, ohms per unit length (Setter)
OpenDSSDirect.LineCodes.Xmatrix
— MethodXmatrix(dss::DSSContext) -> Matrix{Float64}
Reactance matrix, ohms per unit length (Getter)
OpenDSSDirect.LineCodes.Xmatrix
— MethodXmatrix(Value::Matrix{Float64})
Reactance matrix, ohms per unit length (Setter)
OpenDSSDirect.LineCodes.Zmatrix
— MethodZmatrix(Value::Matrix{ComplexF64})
Reactance matrix, ohms per unit length (Setter)
OpenDSSDirect.LineCodes.Zmatrix
— MethodZmatrix() -> Matrix{ComplexF64}
Reactance matrix, ohms per unit length (Getter)
LineGeometries
OpenDSSDirect.LineGeometries.AllNames
— MethodAllNames(dss::DSSContext) -> Vector{String}
Array of names of all LineGeometry objects.
OpenDSSDirect.LineGeometries.Cmatrix
— MethodCmatrix(
dss::DSSContext,
Frequency::Float64,
Length::Float64,
Units::Union{Int32, OpenDSSDirect.Lib.LineUnits}
) -> Vector{Float64}
Capacitance matrix, nF
OpenDSSDirect.LineGeometries.Conductors
— MethodConductors(dss::DSSContext)
Array of strings with names of all conductors in the active LineGeometry object
OpenDSSDirect.LineGeometries.Count
— MethodCount(dss::DSSContext) -> Int64
Number of LineGeometry Objects in Active Circuit
OpenDSSDirect.LineGeometries.EmergAmps
— MethodEmergAmps(dss::DSSContext, Value::Float64)
Emergency ampere rating (Setter)
OpenDSSDirect.LineGeometries.EmergAmps
— MethodEmergAmps(dss::DSSContext) -> Float64
Emergency ampere rating (Getter)
OpenDSSDirect.LineGeometries.First
— MethodFirst(dss::DSSContext) -> Int64
Sets first LineGeometry to be active. Returns 0 if none.
OpenDSSDirect.LineGeometries.Idx
— MethodIdx(dss::DSSContext, Value::Int64)
Active LineGeometry by index. 1..Count (Setter)
OpenDSSDirect.LineGeometries.Idx
— MethodIdx(dss::DSSContext) -> Int64
Active LineGeometry by index. 1..Count (Getter)
OpenDSSDirect.LineGeometries.Name
— MethodName(dss::DSSContext, Value::String)
Sets a LineGeometry active by name.
OpenDSSDirect.LineGeometries.Name
— MethodName(dss::DSSContext) -> String
Sets a LineGeometry active by name.
OpenDSSDirect.LineGeometries.Nconds
— MethodNconds(dss::DSSContext, Value::Int64)
Nconds (Setter)
OpenDSSDirect.LineGeometries.Nconds
— MethodNconds(dss::DSSContext) -> Int64
Nconds (Getter)
OpenDSSDirect.LineGeometries.Next
— MethodNext(dss::DSSContext) -> Int64
Sets next LineGeometry to be active. Returns 0 if no more.
OpenDSSDirect.LineGeometries.NormAmps
— MethodNormAmps(dss::DSSContext, Value::Float64)
Normal ampere rating (Setter)
OpenDSSDirect.LineGeometries.NormAmps
— MethodNormAmps(dss::DSSContext) -> Float64
Normal ampere rating (Getter)
OpenDSSDirect.LineGeometries.Phases
— MethodPhases(dss::DSSContext, Value::Int64)
Number of Phases (Setter)
OpenDSSDirect.LineGeometries.Phases
— MethodPhases(dss::DSSContext) -> Int64
Number of Phases (Getter)
OpenDSSDirect.LineGeometries.Reduce
— MethodReduce(dss::DSSContext, Value::Bool) -> Bool
Reduce (Setter)
OpenDSSDirect.LineGeometries.Reduce
— MethodReduce(dss::DSSContext) -> Bool
Reduce (Getter)
OpenDSSDirect.LineGeometries.RhoEarth
— MethodRhoEarth(dss::DSSContext, Value::Float64)
RhoEarth (Setter)
OpenDSSDirect.LineGeometries.RhoEarth
— MethodRhoEarth(dss::DSSContext) -> Float64
RhoEarth (Getter)
OpenDSSDirect.LineGeometries.Rmatrix
— MethodRmatrix(
dss::DSSContext,
Frequency::Float64,
Length::Float64,
Units::Union{Int32, OpenDSSDirect.Lib.LineUnits}
) -> Vector{Float64}
Resistance matrix, ohms
OpenDSSDirect.LineGeometries.Units
— MethodUnits(dss::DSSContext, Value::Array{Int64})
Units (Setter)
OpenDSSDirect.LineGeometries.Units
— MethodUnits(dss::DSSContext) -> Array{Int64}
Units (Getter)
OpenDSSDirect.LineGeometries.Xcoords
— MethodXcoords(dss::DSSContext, Value::Float64)
Get/Set the X (horizontal) coordinates of the conductors (Setter)
OpenDSSDirect.LineGeometries.Xcoords
— MethodXcoords(dss::DSSContext) -> Vector{Float64}
Get/Set the X (horizontal) coordinates of the conductors (Getter)
OpenDSSDirect.LineGeometries.Xmatrix
— MethodXmatrix(
dss::DSSContext,
Frequency::Float64,
Length::Float64,
Units::Union{Int32, OpenDSSDirect.Lib.LineUnits}
) -> Vector{Float64}
Reactance matrix, ohms
OpenDSSDirect.LineGeometries.Ycoords
— MethodYcoords(dss::DSSContext, Value::Array{Float64})
Get/Set the Y (vertical/height) coordinates of the conductors (Setter)
OpenDSSDirect.LineGeometries.Ycoords
— MethodYcoords(dss::DSSContext) -> Vector{Float64}
Get/Set the Y (vertical/height) coordinates of the conductors (Getter)
OpenDSSDirect.LineGeometries.Zmatrix
— MethodZmatrix(
dss::DSSContext,
Frequency::Float64,
Length::Float64,
Units::Union{Int32, OpenDSSDirect.Lib.LineUnits}
) -> Vector{ComplexF64}
Complex impedance matrix, ohms
Lines
OpenDSSDirect.Lines.AllNames
— MethodAllNames(dss::DSSContext) -> Vector{String}
Names of all Line Objects
OpenDSSDirect.Lines.Bus1
— MethodBus1(dss::DSSContext, Value::String)
Name of bus for terminal 1. (Setter)
OpenDSSDirect.Lines.Bus1
— MethodBus1(dss::DSSContext) -> String
Name of bus for terminal 1. (Getter)
OpenDSSDirect.Lines.Bus2
— MethodBus2(dss::DSSContext, Value::String)
Name of bus for terminal 2. (Setter)
OpenDSSDirect.Lines.Bus2
— MethodBus2(dss::DSSContext) -> String
Name of bus for terminal 2. (Getter)
OpenDSSDirect.Lines.C0
— MethodC0(dss::DSSContext, Value::Float64)
Zero Sequence capacitance, nanofarads per unit length. (Setter)
OpenDSSDirect.Lines.C0
— MethodC0(dss::DSSContext) -> Float64
Zero Sequence capacitance, nanofarads per unit length. (Getter)
OpenDSSDirect.Lines.C1
— MethodC1(dss::DSSContext, Value::Float64)
Positive Sequence capacitance, nanofarads per unit length. (Setter)
OpenDSSDirect.Lines.C1
— MethodC1(dss::DSSContext) -> Float64
Positive Sequence capacitance, nanofarads per unit length. (Getter)
OpenDSSDirect.Lines.CMatrix
— MethodCMatrix(dss::DSSContext, Value::Vector{Float64})
Capacitance matrix, nF per unit length (Setter)
OpenDSSDirect.Lines.CMatrix
— MethodCMatrix(dss::DSSContext) -> Matrix{Float64}
Capacitance matrix, nF per unit length (Getter)
OpenDSSDirect.Lines.CMatrix
— MethodCMatrix(Value::Matrix{Float64})
Capacitance matrix, nF per unit length (Setter)
OpenDSSDirect.Lines.Count
— MethodCount(dss::DSSContext) -> Int64
Number of Line objects in Active Circuit.
OpenDSSDirect.Lines.EmergAmps
— MethodEmergAmps(dss::DSSContext, Value::Float64)
Emergency (maximum) ampere rating of Line. (Setter)
OpenDSSDirect.Lines.EmergAmps
— MethodEmergAmps(dss::DSSContext) -> Float64
Emergency (maximum) ampere rating of Line. (Getter)
OpenDSSDirect.Lines.First
— MethodFirst(dss::DSSContext) -> Int64
Invoking this property sets the first element active. Returns 0 if no lines. Otherwise, index of the line element.
OpenDSSDirect.Lines.Geometry
— MethodGeometry(dss::DSSContext, Value::String)
Line geometry code (Setter)
OpenDSSDirect.Lines.Geometry
— MethodGeometry(dss::DSSContext) -> String
Line geometry code (Getter)
OpenDSSDirect.Lines.Idx
— MethodIdx(dss::DSSContext, Value::Int64)
Line Index (Setter)
OpenDSSDirect.Lines.Idx
— MethodIdx(dss::DSSContext) -> Int64
Line Index (Getter)
OpenDSSDirect.Lines.IsSwitch
— MethodIsSwitch(dss::DSSContext, Value::Bool)
Sets/gets the Line element switch status. Setting it has side-effects to the line parameters. (Setter)
OpenDSSDirect.Lines.IsSwitch
— MethodIsSwitch(dss::DSSContext) -> Bool
Sets/gets the Line element switch status. Setting it has side-effects to the line parameters. (Getter)
OpenDSSDirect.Lines.Length
— MethodLength(dss::DSSContext, Value::Float64)
Length of line section in units compatible with the LineCode definition. (Setter)
OpenDSSDirect.Lines.Length
— MethodLength(dss::DSSContext) -> Float64
Length of line section in units compatible with the LineCode definition. (Getter)
OpenDSSDirect.Lines.LineCode
— MethodLineCode(dss::DSSContext, Value::String)
Name of LineCode object that defines the impedances. (Setter)
OpenDSSDirect.Lines.LineCode
— MethodLineCode(dss::DSSContext) -> String
Name of LineCode object that defines the impedances. (Getter)
OpenDSSDirect.Lines.Name
— MethodName(dss::DSSContext, Value::String)
Specify the name of the Line element to set it active. (Setter)
OpenDSSDirect.Lines.Name
— MethodName(dss::DSSContext) -> String
Specify the name of the Line element to set it active. (Getter)
OpenDSSDirect.Lines.New
— MethodNew(dss::DSSContext, Name::String) -> Int64
Create new Line object
OpenDSSDirect.Lines.Next
— MethodNext(dss::DSSContext) -> Int64
Invoking this property advances to the next Line element active. Returns 0 if no more lines. Otherwise, index of the line element.
OpenDSSDirect.Lines.NormAmps
— MethodNormAmps(dss::DSSContext, Value::Float64)
Normal ampere rating of Line. (Setter)
OpenDSSDirect.Lines.NormAmps
— MethodNormAmps(dss::DSSContext) -> Float64
Normal ampere rating of Line. (Getter)
OpenDSSDirect.Lines.NumCust
— MethodNumCust(dss::DSSContext) -> Int64
Number of customers on this line section.
OpenDSSDirect.Lines.Parent
— MethodParent(dss::DSSContext) -> Int64
Sets Parent of the active Line to be the active line. Returns 0 if no parent or action fails.
OpenDSSDirect.Lines.Phases
— MethodPhases(dss::DSSContext, Value::Int64)
Number of Phases, this Line element. (Setter)
OpenDSSDirect.Lines.Phases
— MethodPhases(dss::DSSContext) -> Int64
Number of Phases, this Line element. (Getter)
OpenDSSDirect.Lines.R0
— MethodR0(dss::DSSContext, Value::Float64)
Zero Sequence resistance, ohms per unit length. (Setter)
OpenDSSDirect.Lines.R0
— MethodR0(dss::DSSContext) -> Float64
Zero Sequence resistance, ohms per unit length. (Getter)
OpenDSSDirect.Lines.R1
— MethodR1(dss::DSSContext, Value::Float64)
Positive Sequence resistance, ohms per unit length. (Setter)
OpenDSSDirect.Lines.R1
— MethodR1(dss::DSSContext) -> Float64
Positive Sequence resistance, ohms per unit length. (Getter)
OpenDSSDirect.Lines.RMatrix
— MethodRMatrix(dss::DSSContext, Value::Vector{Float64})
Resistance matrix (full), ohms per unit length. Vector of doubles. (Setter)
OpenDSSDirect.Lines.RMatrix
— MethodRMatrix(dss::DSSContext) -> Matrix{Float64}
Resistance matrix (full), ohms per unit length. Matrix of doubles. (Getter)
OpenDSSDirect.Lines.RMatrix
— MethodRMatrix(Value::Matrix{Float64})
Resistance matrix (full), ohms per unit length. Matrix of doubles. (Setter)
OpenDSSDirect.Lines.Rg
— MethodRg(dss::DSSContext, Value::Float64)
Earth return resistance value used to compute line impedances at power frequency (Setter)
OpenDSSDirect.Lines.Rg
— MethodRg(dss::DSSContext) -> Float64
Earth return resistance value used to compute line impedances at power frequency (Getter)
OpenDSSDirect.Lines.Rho
— MethodRho(dss::DSSContext, Value::Float64)
Earth Resistivity, ohm-m (Setter)
OpenDSSDirect.Lines.Rho
— MethodRho(dss::DSSContext) -> Float64
Earth Resistivity, ohm-m (Getter)
OpenDSSDirect.Lines.SeasonRating
— MethodSeasonRating(dss::DSSContext) -> Float64
Delivers the rating for the current season (in Amps) if the "SeasonalRatings" option is active
OpenDSSDirect.Lines.Spacing
— MethodSpacing(dss::DSSContext, Value::String)
Line spacing code (Getter)
OpenDSSDirect.Lines.Spacing
— MethodSpacing(dss::DSSContext) -> String
Line spacing code (Getter)
OpenDSSDirect.Lines.TotalCust
— MethodTotalCust(dss::DSSContext) -> Int64
Total Number of customers served from this line section.
OpenDSSDirect.Lines.Units
— MethodUnits(
dss::DSSContext,
Value::Union{Int64, OpenDSSDirect.Lib.LineUnits}
)
Units for Line (Setter)
OpenDSSDirect.Lines.Units
— MethodUnits(dss::DSSContext) -> OpenDSSDirect.Lib.LineUnits
Units for Line (Getter)
OpenDSSDirect.Lines.X0
— MethodX0(dss::DSSContext, Value::Float64)
Zero Sequence reactance ohms per unit length. (Setter)
OpenDSSDirect.Lines.X0
— MethodX0(dss::DSSContext) -> Float64
Zero Sequence reactance ohms per unit length. (Getter)
OpenDSSDirect.Lines.X1
— MethodX1(dss::DSSContext, Value::Float64)
Positive Sequence reactance, ohms per unit length. (Setter)
OpenDSSDirect.Lines.X1
— MethodX1(dss::DSSContext) -> Float64
Positive Sequence reactance, ohms per unit length. (Getter)
OpenDSSDirect.Lines.XMatrix
— MethodXMatrix(dss::DSSContext, Value::Vector{Float64})
Susceptance matrix, ohms per unit length. Vector of doubles. (Setter)
OpenDSSDirect.Lines.XMatrix
— MethodXMatrix(dss::DSSContext) -> Matrix{Float64}
Susceptance matrix, ohms per unit length. Matrix of doubles. (Getter)
OpenDSSDirect.Lines.XMatrix
— MethodXMatrix(Value::Matrix{Float64})
Susceptance matrix, ohms per unit length. Matrix of doubles. (Setter)
OpenDSSDirect.Lines.Xg
— MethodXg(dss::DSSContext, Value::Float64)
Earth return reactance value used to compute line impedances at power frequency (Setter)
OpenDSSDirect.Lines.Xg
— MethodXg(dss::DSSContext) -> Float64
Earth return reactance value used to compute line impedances at power frequency (Getter)
OpenDSSDirect.Lines.Yprim
— MethodYprim(dss::DSSContext, Value::Matrix{ComplexF64})
Yprimitive: Does Nothing at present on Put; Dangerous (Setter)
OpenDSSDirect.Lines.Yprim
— MethodYprim(dss::DSSContext) -> Matrix{ComplexF64}
Yprimitive: Does Nothing at present on Put; Dangerous (Getter)
OpenDSSDirect.Lines.ZMatrix
— MethodZMatrix(Value::Matrix{ComplexF64})
Impedance matrix, ohms per unit length. Matrix of doubles. (Setter)
OpenDSSDirect.Lines.ZMatrix
— MethodZMatrix() -> Matrix{ComplexF64}
Impedance matrix, ohms per unit length. Matrix of doubles. (Getter)
LineSpacings
OpenDSSDirect.LineSpacings.AllNames
— MethodAllNames(dss::DSSContext) -> Vector{String}
Array of names of all LineSpacing objects.
OpenDSSDirect.LineSpacings.Count
— MethodCount(dss::DSSContext) -> Int64
Number of LineSpacing Objects in Active Circuit
OpenDSSDirect.LineSpacings.First
— MethodFirst(dss::DSSContext) -> Int64
Sets first LineSpacing to be active. Returns 0 if none.
OpenDSSDirect.LineSpacings.Idx
— MethodIdx(dss::DSSContext, Value::Int64)
Active LineSpacing by index. 1..Count (Setter)
OpenDSSDirect.LineSpacings.Idx
— MethodIdx(dss::DSSContext) -> Int64
Active LineSpacing by index. 1..Count (Getter)
OpenDSSDirect.LineSpacings.Name
— MethodName(dss::DSSContext, Value::String)
Sets a LineSpacing active by name.
OpenDSSDirect.LineSpacings.Name
— MethodName(dss::DSSContext) -> String
Sets a LineSpacing active by name.
OpenDSSDirect.LineSpacings.Nconds
— MethodNconds(dss::DSSContext, Value::Int64)
Nconds (Setter)
OpenDSSDirect.LineSpacings.Nconds
— MethodNconds(dss::DSSContext) -> Int64
Nconds (Getter)
OpenDSSDirect.LineSpacings.Next
— MethodNext(dss::DSSContext) -> Int64
Sets next LineSpacing to be active. Returns 0 if no more.
OpenDSSDirect.LineSpacings.Phases
— MethodPhases(dss::DSSContext, Value::Int64)
Number of Phases (Setter)
OpenDSSDirect.LineSpacings.Phases
— MethodPhases(dss::DSSContext) -> Int64
Number of Phases (Getter)
OpenDSSDirect.LineSpacings.Units
— MethodUnits(dss::DSSContext, Value::Int64)
Units (Setter)
OpenDSSDirect.LineSpacings.Units
— MethodUnits(dss::DSSContext) -> Int64
Units (Getter)
OpenDSSDirect.LineSpacings.Xcoords
— MethodXcoords(dss::DSSContext, Value::Vector{Float64})
Get/Set the X (horizontal) coordinates of the conductors (Setter)
OpenDSSDirect.LineSpacings.Xcoords
— MethodXcoords(dss::DSSContext) -> Vector{Float64}
Get/Set the X (horizontal) coordinates of the conductors (Getter)
OpenDSSDirect.LineSpacings.Ycoords
— MethodYcoords(dss::DSSContext, Value::Vector{Float64})
Get/Set the Y (vertical/height) coordinates of the conductors (Setter)
OpenDSSDirect.LineSpacings.Ycoords
— MethodYcoords(dss::DSSContext) -> Vector{Float64}
Get/Set the Y (vertical/height) coordinates of the conductors (Getter)
Loads
OpenDSSDirect.Loads.AllNames
— MethodAllNames(dss::DSSContext) -> Vector{String}
Array of strings containing all Load names
OpenDSSDirect.Loads.AllocationFactor
— MethodAllocationFactor(dss::DSSContext, Value::Float64)
Factor for allocating loads by connected xfkva (Setter)
OpenDSSDirect.Loads.AllocationFactor
— MethodAllocationFactor(dss::DSSContext) -> Float64
Factor for allocating loads by connected xfkva (Getter)
OpenDSSDirect.Loads.CFactor
— MethodCFactor(dss::DSSContext, Value::Float64)
Factor relates average to peak kw. Used for allocation with kwh and kwhdays/ (Setter)
OpenDSSDirect.Loads.CFactor
— MethodCFactor(dss::DSSContext) -> Float64
Factor relates average to peak kw. Used for allocation with kwh and kwhdays/ (Getter)
OpenDSSDirect.Loads.CVRCurve
— MethodCVRCurve(dss::DSSContext, Value::String)
Name of a loadshape with both Mult and Qmult, for CVR factors as a function of time. (Setter)
OpenDSSDirect.Loads.CVRCurve
— MethodCVRCurve(dss::DSSContext) -> String
Name of a loadshape with both Mult and Qmult, for CVR factors as a function of time. (Getter)
OpenDSSDirect.Loads.CVRvars
— MethodCVRvars(dss::DSSContext, Value::Float64)
Percent reduction in Q for percent reduction in V. Must be used with dssLoadModelCVR. (Setter)
OpenDSSDirect.Loads.CVRvars
— MethodCVRvars(dss::DSSContext) -> Float64
Percent reduction in Q for percent reduction in V. Must be used with dssLoadModelCVR. (Getter)
OpenDSSDirect.Loads.CVRwatts
— MethodCVRwatts(dss::DSSContext, Value::Float64)
Percent reduction in P for percent reduction in V. Must be used with dssLoadModelCVR. (Setter)
OpenDSSDirect.Loads.CVRwatts
— MethodCVRwatts(dss::DSSContext) -> Float64
Percent reduction in P for percent reduction in V. Must be used with dssLoadModelCVR. (Getter)
OpenDSSDirect.Loads.Class
— MethodClass(dss::DSSContext, Value::Int64)
Load Class (Setter)
OpenDSSDirect.Loads.Class
— MethodClass(dss::DSSContext) -> Int64
Load Class (Getter)
OpenDSSDirect.Loads.Count
— MethodCount(dss::DSSContext) -> Int64
Number of Load objects in active circuit.
OpenDSSDirect.Loads.Daily
— MethodDaily(dss::DSSContext, Value::String)
Name of the loadshape for a daily load profile. (Setter)
OpenDSSDirect.Loads.Daily
— MethodDaily(dss::DSSContext) -> String
Name of the loadshape for a daily load profile. (Getter)
OpenDSSDirect.Loads.Duty
— MethodDuty(dss::DSSContext, Value::String)
Name of the loadshape for a duty cycle simulation. (Setter)
OpenDSSDirect.Loads.Duty
— MethodDuty(dss::DSSContext) -> String
Name of the loadshape for a duty cycle simulation. (Getter)
OpenDSSDirect.Loads.First
— MethodFirst(dss::DSSContext) -> Int64
Set first Load element to be active; returns 0 if none.
OpenDSSDirect.Loads.Growth
— MethodGrowth(dss::DSSContext, Value::String)
Name of the growthshape curve for yearly load growth factors. (Setter)
OpenDSSDirect.Loads.Growth
— MethodGrowth(dss::DSSContext) -> String
Name of the growthshape curve for yearly load growth factors. (Getter)
OpenDSSDirect.Loads.Idx
— MethodIdx(dss::DSSContext, Value::Int64)
Load Index (Setter)
OpenDSSDirect.Loads.Idx
— MethodIdx(dss::DSSContext) -> Int64
Load Index (Getter)
OpenDSSDirect.Loads.IsDelta
— MethodIsDelta(dss::DSSContext, Value::Bool)
Delta loads are connected line-to-line. (Setter)
OpenDSSDirect.Loads.IsDelta
— MethodIsDelta(dss::DSSContext) -> Bool
Delta loads are connected line-to-line. (Getter)
OpenDSSDirect.Loads.Model
— MethodModel(
dss::DSSContext,
Value::Union{Int64, OpenDSSDirect.Lib.LoadModels}
)
The Load Model defines variation of P and Q with voltage. (Setter)
OpenDSSDirect.Loads.Model
— MethodModel(dss::DSSContext) -> OpenDSSDirect.Lib.LoadModels
The Load Model defines variation of P and Q with voltage. (Getter)
OpenDSSDirect.Loads.Name
— MethodName(dss::DSSContext, Value::String)
Set active load by name. (Setter)
OpenDSSDirect.Loads.Name
— MethodName(dss::DSSContext) -> String
Set active load by name. (Getter)
OpenDSSDirect.Loads.Next
— MethodNext(dss::DSSContext) -> Int64
Sets next Load element to be active; returns 0 of none else index of active load.
OpenDSSDirect.Loads.NumCust
— MethodNumCust(dss::DSSContext, Value::Int64)
Number of customers in this load, defaults to one. (Setter)
OpenDSSDirect.Loads.NumCust
— MethodNumCust(dss::DSSContext) -> Int64
Number of customers in this load, defaults to one. (Getter)
OpenDSSDirect.Loads.PF
— MethodPF(dss::DSSContext, Value::Float64)
Power Factor for Active Load. Specify leading PF as negative. Updates kvar based on present value of kW value (Setter)
OpenDSSDirect.Loads.PF
— MethodPF(dss::DSSContext) -> Float64
Power Factor for Active Load. Specify leading PF as negative. Updates kvar based on present value of kW value (Getter)
OpenDSSDirect.Loads.PctMean
— MethodPctMean(dss::DSSContext, Value::Float64)
Average percent of nominal load in Monte Carlo studies; only if no loadshape defined for this load. (Setter)
OpenDSSDirect.Loads.PctMean
— MethodPctMean(dss::DSSContext) -> Float64
Average percent of nominal load in Monte Carlo studies; only if no loadshape defined for this load. (Getter)
OpenDSSDirect.Loads.PctStdDev
— MethodPctStdDev(dss::DSSContext, Value::Float64)
Percent standard deviation for Monte Carlo load studies; if there is no loadshape assigned to this load. (Setter)
OpenDSSDirect.Loads.PctStdDev
— MethodPctStdDev(dss::DSSContext) -> Float64
Percent standard deviation for Monte Carlo load studies; if there is no loadshape assigned to this load. (Getter)
OpenDSSDirect.Loads.Phases
— MethodPhases(dss::DSSContext, Value::Int64)
Number of phases (Setter)
OpenDSSDirect.Loads.Phases
— MethodPhases(dss::DSSContext) -> Int64
Number of phases (Getter)
OpenDSSDirect.Loads.RelWeighting
— MethodRelWeighting(dss::DSSContext, Value::Float64)
Relative Weighting factor for the active LOAD (Setter)
OpenDSSDirect.Loads.RelWeighting
— MethodRelWeighting(dss::DSSContext) -> Float64
Relative Weighting factor for the active LOAD (Getter)
OpenDSSDirect.Loads.Rneut
— MethodRneut(dss::DSSContext, Value::Float64)
Neutral resistance for wye-connected loads. (Setter)
OpenDSSDirect.Loads.Rneut
— MethodRneut(dss::DSSContext) -> Float64
Neutral resistance for wye-connected loads. (Getter)
OpenDSSDirect.Loads.Sensor
— MethodSensor(dss::DSSContext) -> String
Sensor
OpenDSSDirect.Loads.Spectrum
— MethodSpectrum(dss::DSSContext, Value::String)
Load Spectrum (Setter)
OpenDSSDirect.Loads.Spectrum
— MethodSpectrum(dss::DSSContext) -> String
Load Spectrum (Getter)
OpenDSSDirect.Loads.Status
— MethodStatus(
dss::DSSContext,
Value::Union{Int64, OpenDSSDirect.Lib.LoadStatus}
)
Response to load multipliers: Fixed (growth only), Exempt (no LD curve), Variable (all). (Setter)
OpenDSSDirect.Loads.Status
— MethodStatus(dss::DSSContext) -> OpenDSSDirect.Lib.LoadStatus
Response to load multipliers: Fixed (growth only), Exempt (no LD curve), Variable (all). (Getter)
OpenDSSDirect.Loads.Vmaxpu
— MethodVmaxpu(dss::DSSContext, Value::Float64)
Maximum per-unit voltage to use the load model. Above this, constant Z applies. (Setter)
OpenDSSDirect.Loads.Vmaxpu
— MethodVmaxpu(dss::DSSContext) -> Float64
Maximum per-unit voltage to use the load model. Above this, constant Z applies. (Getter)
OpenDSSDirect.Loads.VminEmerg
— MethodVminEmerg(dss::DSSContext, Value::Float64)
Minimum voltage for unserved energy (UE) evaluation. (Setter)
OpenDSSDirect.Loads.VminEmerg
— MethodVminEmerg(dss::DSSContext) -> Float64
Minimum voltage for unserved energy (UE) evaluation. (Getter)
OpenDSSDirect.Loads.VminNorm
— MethodVminNorm(dss::DSSContext, Value::Float64)
Minimum voltage for energy exceeding normal (EEN) evaluations. (Setter)
OpenDSSDirect.Loads.VminNorm
— MethodVminNorm(dss::DSSContext) -> Float64
Minimum voltage for energy exceeding normal (EEN) evaluations. (Getter)
OpenDSSDirect.Loads.Vminpu
— MethodVminpu(dss::DSSContext, Value::Float64)
Minimum voltage to apply the load model. Below this, constant Z is used. (Setter)
OpenDSSDirect.Loads.Vminpu
— MethodVminpu(dss::DSSContext) -> Float64
Minimum voltage to apply the load model. Below this, constant Z is used. (Getter)
OpenDSSDirect.Loads.XfkVA
— MethodXfkVA(dss::DSSContext, Value::Float64)
Rated service transformer kVA for load allocation, using AllocationFactor. Affects kW, kvar, and pf. (Setter)
OpenDSSDirect.Loads.XfkVA
— MethodXfkVA(dss::DSSContext) -> Float64
Rated service transformer kVA for load allocation, using AllocationFactor. Affects kW, kvar, and pf. (Getter)
OpenDSSDirect.Loads.Xneut
— MethodXneut(dss::DSSContext, Value::Float64)
Neutral reactance for wye-connected loads. (Setter)
OpenDSSDirect.Loads.Xneut
— MethodXneut(dss::DSSContext) -> Float64
Neutral reactance for wye-connected loads. (Getter)
OpenDSSDirect.Loads.Yearly
— MethodYearly(dss::DSSContext, Value::String)
Name of yearly duration loadshape (Setter)
OpenDSSDirect.Loads.Yearly
— MethodYearly(dss::DSSContext) -> String
Name of yearly duration loadshape (Getter)
OpenDSSDirect.Loads.ZipV
— MethodZipV(dss::DSSContext, Value::Vector{Float64})
Array of 7 doubles with values for ZIPV property of the LOAD object (Setter)
OpenDSSDirect.Loads.ZipV
— MethodZipV(dss::DSSContext) -> Vector{Float64}
Array of 7 doubles with values for ZIPV property of the LOAD object (Getter)
OpenDSSDirect.Loads.kV
— MethodkV(dss::DSSContext, Value::Float64)
Set kV rating for active Load. For 2 or more phases set Line-Line kV. Else actual kV across terminals. (Setter)
OpenDSSDirect.Loads.kV
— MethodkV(dss::DSSContext) -> Float64
Set kV rating for active Load. For 2 or more phases set Line-Line kV. Else actual kV across terminals. (Getter)
OpenDSSDirect.Loads.kVABase
— MethodkVABase(dss::DSSContext, Value::Float64)
Base load kva. Also defined kw and kvar or pf input, or load allocation by kwh or xfkva. (Setter)
OpenDSSDirect.Loads.kVABase
— MethodkVABase(dss::DSSContext) -> Float64
Base load kva. Also defined kw and kvar or pf input, or load allocation by kwh or xfkva. (Getter)
OpenDSSDirect.Loads.kW
— MethodkW(dss::DSSContext, Value::Float64)
Set kW for active Load. Updates kvar based on present PF. (Setter)
OpenDSSDirect.Loads.kW
— MethodkW(dss::DSSContext) -> Float64
Set kW for active Load. Updates kvar based on present PF. (Getter)
OpenDSSDirect.Loads.kWh
— MethodkWh(dss::DSSContext, Value::Float64)
kwh billed for this period. Can be used with Cfactor for load allocation. (Setter)
OpenDSSDirect.Loads.kWh
— MethodkWh(dss::DSSContext) -> Float64
kwh billed for this period. Can be used with Cfactor for load allocation. (Getter)
OpenDSSDirect.Loads.kWhDays
— MethodkWhDays(dss::DSSContext, Value::Float64)
Length of kwh billing period for average demand calculation. Default 30. (Setter)
OpenDSSDirect.Loads.kWhDays
— MethodkWhDays(dss::DSSContext) -> Float64
Length of kwh billing period for average demand calculation. Default 30. (Getter)
OpenDSSDirect.Loads.kvar
— Methodkvar(dss::DSSContext, Value::Float64)
Set kvar for active Load. Updates PF based on present kW. (Setter)
OpenDSSDirect.Loads.kvar
— Methodkvar(dss::DSSContext) -> Float64
Set kvar for active Load. Updates PF based on present kW. (Getter)
OpenDSSDirect.Loads.puSeriesRL
— MethodpuSeriesRL(dss::DSSContext, Value::Float64)
Percent of Load that is modeled as series R-L for harmonics studies (Setter)
OpenDSSDirect.Loads.puSeriesRL
— MethodpuSeriesRL(dss::DSSContext) -> Float64
Percent of Load that is modeled as series R-L for harmonics studies (Getter)
LoadShape
OpenDSSDirect.LoadShape.AllNames
— MethodAllNames(dss::DSSContext) -> Vector{String}
Array of strings containing names of all Loadshape objects currently defined.
OpenDSSDirect.LoadShape.Count
— MethodCount(dss::DSSContext) -> Int64
Number of Loadshape objects currently defined in Loadshape collection
OpenDSSDirect.LoadShape.First
— MethodFirst(dss::DSSContext) -> Int64
Set the first loadshape active and return integer index of the loadshape. Returns 0 if none.
OpenDSSDirect.LoadShape.HrInterval
— MethodHrInterval(dss::DSSContext, Value::Float64)
Fixed interval time value, hours.
OpenDSSDirect.LoadShape.HrInterval
— MethodHrInterval(dss::DSSContext) -> Float64
Fixed interval time value, hours.
OpenDSSDirect.LoadShape.Idx
— MethodIdx(dss::DSSContext, Value::Int64)
LoadShape Index (Setter)
OpenDSSDirect.LoadShape.Idx
— MethodIdx(dss::DSSContext) -> Int64
LoadShape Index (Getter)
OpenDSSDirect.LoadShape.MinInterval
— MethodMinInterval(dss::DSSContext, Value::Float64)
Fixed Interval time value, in minutes
OpenDSSDirect.LoadShape.MinInterval
— MethodMinInterval(dss::DSSContext) -> Float64
Fixed Interval time value, in minutes
OpenDSSDirect.LoadShape.Name
— MethodName(dss::DSSContext, Value::String)
Name of the active Loadshape (Setter)
OpenDSSDirect.LoadShape.Name
— MethodName(dss::DSSContext) -> String
Name of the active Loadshape (Getter)
OpenDSSDirect.LoadShape.New
— MethodNew(dss::DSSContext, Name) -> Int64
Create new Load Shape
OpenDSSDirect.LoadShape.Next
— MethodNext(dss::DSSContext) -> Int64
Advance active Loadshape to the next on in the collection. Returns 0 if no more loadshapes.
OpenDSSDirect.LoadShape.Normalize
— MethodNormalize(dss::DSSContext)
Normalize Load Shape
OpenDSSDirect.LoadShape.Npts
— MethodNpts(dss::DSSContext, Value::Int64)
Number of points in active Loadshape. (Setter)
OpenDSSDirect.LoadShape.Npts
— MethodNpts(dss::DSSContext) -> Int64
Number of points in active Loadshape. (Getter)
OpenDSSDirect.LoadShape.PBase
— MethodPBase(dss::DSSContext, Value::Float64)
Base for normalizing P curve (Setter)
OpenDSSDirect.LoadShape.PBase
— MethodPBase(dss::DSSContext) -> Float64
Base for normalizing P curve (Getter)
OpenDSSDirect.LoadShape.PMult
— MethodPMult(dss::DSSContext, Value::Vector{Float64})
Array of Doubles for the P multiplier in the Loadshape. (Setter)
OpenDSSDirect.LoadShape.PMult
— MethodPMult(dss::DSSContext) -> Vector{Float64}
Array of Doubles for the P multiplier in the Loadshape. (Getter)
OpenDSSDirect.LoadShape.QBase
— MethodQBase(dss::DSSContext, Value::Float64)
Base for normalizing Q curve. If left at zero, the peak value is used. (Setter)
OpenDSSDirect.LoadShape.QBase
— MethodQBase(dss::DSSContext) -> Float64
Base for normalizing Q curve. If left at zero, the peak value is used. (Getter)
OpenDSSDirect.LoadShape.QMult
— MethodQMult(dss::DSSContext, Value::Vector{Float64})
Array of doubles containing the Q multipliers. (Setter)
OpenDSSDirect.LoadShape.QMult
— MethodQMult(dss::DSSContext) -> Vector{Float64}
Array of doubles containing the Q multipliers. (Getter)
OpenDSSDirect.LoadShape.SInterval
— MethodSInterval(dss::DSSContext, Value::Float64)
Interval of active loadshape in seconds (Setter)
OpenDSSDirect.LoadShape.SInterval
— MethodSInterval(dss::DSSContext) -> Float64
Interval of active loadshape in seconds (Getter)
OpenDSSDirect.LoadShape.TimeArray
— MethodTimeArray(dss::DSSContext, Value::Vector{Float64})
Time array in hours correscponding to P and Q multipliers when the Interval=0. (Setter)
OpenDSSDirect.LoadShape.TimeArray
— MethodTimeArray(dss::DSSContext) -> Vector{Float64}
Time array in hours correscponding to P and Q multipliers when the Interval=0. (Getter)
OpenDSSDirect.LoadShape.UseActual
— MethodUseActual(dss::DSSContext, Value::Bool)
T/F flag to let Loads know to use the actual value in the curve rather than use the value as a multiplier. (Setter)
OpenDSSDirect.LoadShape.UseActual
— MethodUseActual(dss::DSSContext) -> Bool
T/F flag to let Loads know to use the actual value in the curve rather than use the value as a multiplier. (Getter)
OpenDSSDirect.LoadShape.UseFloat32
— MethodUseFloat32(dss::DSSContext)
Converts the current LoadShape data to float32/single precision. If there is no data or the data is already represented using float32, nothing is done.
(API Extension)
OpenDSSDirect.LoadShape.UseFloat64
— MethodUseFloat64(dss::DSSContext)
Converts the current LoadShape data to float64/double precision. If there is no data or the data is already represented using float64, nothing is done.
(API Extension)
Meters
OpenDSSDirect.Meters.AllBranchesInZone
— MethodAllBranchesInZone(dss::DSSContext) -> Vector{String}
Wide string list of all branches in zone of the active energymeter object.
OpenDSSDirect.Meters.AllEndElements
— MethodAllEndElements(dss::DSSContext) -> Vector{String}
Array of names of all zone end elements.
OpenDSSDirect.Meters.AllNames
— MethodAllNames(dss::DSSContext) -> Vector{String}
Array of all energy Meter names
OpenDSSDirect.Meters.AllocFactors
— MethodAllocFactors(dss::DSSContext, Value::Vector{Float64})
Array of doubles: set the phase allocation factors for the active meter.
OpenDSSDirect.Meters.AllocFactors
— MethodAllocFactors(dss::DSSContext) -> Vector{Float64}
Array of doubles: set the phase allocation factors for the active meter.
OpenDSSDirect.Meters.AvgRepairTime
— MethodAvgRepairTime(dss::DSSContext) -> Float64
Average Repair time in this section of the meter zone
OpenDSSDirect.Meters.CalcCurrent
— MethodCalcCurrent(dss::DSSContext, Value::Vector{Float64})
Set the magnitude of the real part of the Calculated Current (normally determined by solution) for the Meter to force some behavior on Load Allocation
OpenDSSDirect.Meters.CalcCurrent
— MethodCalcCurrent(dss::DSSContext) -> Vector{Float64}
Set the magnitude of the real part of the Calculated Current (normally determined by solution) for the Meter to force some behavior on Load Allocation
OpenDSSDirect.Meters.CloseAllDIFiles
— MethodCloseAllDIFiles(dss::DSSContext)
Close all DI Files
OpenDSSDirect.Meters.Count
— MethodCount(dss::DSSContext) -> Int64
Number of Energy Meters in the Active Circuit
OpenDSSDirect.Meters.CountBranches
— MethodCountBranches(dss::DSSContext) -> Int64
Number of branches in Active energymeter zone. (Same as sequencelist size)
OpenDSSDirect.Meters.CountEndElements
— MethodCountEndElements(dss::DSSContext) -> Int64
Number of zone end elements in the active meter zone.
OpenDSSDirect.Meters.CustInterrupts
— MethodCustInterrupts(dss::DSSContext) -> Float64
Total customer interruptions for this Meter zone based on reliability calcs.
OpenDSSDirect.Meters.DIFilesAreOpen
— MethodDIFilesAreOpen(dss::DSSContext) -> Bool
Global Flag in the DSS to indicate if Demand Interval (DI) files have been properly opened.
OpenDSSDirect.Meters.DoReliabilityCalc
— MethodDoReliabilityCalc(dss::DSSContext, AssumeRestoration::Bool)
Do reliability calculation
OpenDSSDirect.Meters.FaultRateXRepairHrs
— MethodFaultRateXRepairHrs(dss::DSSContext) -> Float64
Sum of Fault Rate time Repair Hrs in this section of the meter zone
OpenDSSDirect.Meters.First
— MethodFirst(dss::DSSContext) -> Int64
Set the first energy Meter active. Returns 0 if none.
OpenDSSDirect.Meters.Idx
— MethodIdx(dss::DSSContext, Value::Int64)
Meter Index (Setter)
OpenDSSDirect.Meters.Idx
— MethodIdx(dss::DSSContext) -> Int64
Meter Index (Getter)
OpenDSSDirect.Meters.MeteredElement
— MethodMeteredElement(dss::DSSContext, Value::String)
Set Name of metered element
OpenDSSDirect.Meters.MeteredElement
— MethodMeteredElement(dss::DSSContext) -> String
Set Name of metered element
OpenDSSDirect.Meters.MeteredTerminal
— MethodMeteredTerminal(dss::DSSContext, Value::Int64)
set Number of Metered Terminal
OpenDSSDirect.Meters.MeteredTerminal
— MethodMeteredTerminal(dss::DSSContext) -> Int64
set Number of Metered Terminal
OpenDSSDirect.Meters.Name
— MethodName(dss::DSSContext, Value::String)
(read) Get/Set the active meter name. (write) Set a meter to be active by name.
OpenDSSDirect.Meters.Name
— MethodName(dss::DSSContext) -> String
(read) Get/Set the active meter name. (write) Set a meter to be active by name.
OpenDSSDirect.Meters.Next
— MethodNext(dss::DSSContext) -> Int64
Sets the next energy Meter active. Returns 0 if no more.
OpenDSSDirect.Meters.NumSectionBranches
— MethodNumSectionBranches(dss::DSSContext) -> Int64
Number of branches (lines) in this section
OpenDSSDirect.Meters.NumSectionCustomers
— MethodNumSectionCustomers(dss::DSSContext) -> Int64
Number of Customers in the active section.
OpenDSSDirect.Meters.NumSections
— MethodNumSections(dss::DSSContext) -> Int64
Number of feeder sections in this meter's zone
OpenDSSDirect.Meters.OCPDeviceType
— MethodOCPDeviceType(dss::DSSContext) -> Int64
Type of OCP device. 1=Fuse; 2=Recloser; 3=Relay
OpenDSSDirect.Meters.OpenAllDIFiles
— MethodOpenAllDIFiles(dss::DSSContext)
Open all DI Files
OpenDSSDirect.Meters.PeakCurrent
— MethodPeakCurrent(dss::DSSContext, Value::Vector{Float64})
Array of doubles to set values of Peak Current property
OpenDSSDirect.Meters.PeakCurrent
— MethodPeakCurrent(dss::DSSContext) -> Vector{Float64}
Array of doubles to set values of Peak Current property
OpenDSSDirect.Meters.RegisterNames
— MethodRegisterNames(dss::DSSContext) -> Vector{String}
Array of strings containing the names of the registers.
OpenDSSDirect.Meters.RegisterValues
— MethodRegisterValues(dss::DSSContext) -> Vector{Float64}
Array of all the values contained in the Meter registers for the active Meter.
OpenDSSDirect.Meters.Reset
— MethodReset(dss::DSSContext)
Reset meter
OpenDSSDirect.Meters.ResetAll
— MethodResetAll(dss::DSSContext)
Reset all meters
OpenDSSDirect.Meters.SAIDI
— MethodSAIDI(dss::DSSContext) -> Float64
SAIDI for this meter's zone. Execute DoReliabilityCalc first.
OpenDSSDirect.Meters.SAIFI
— MethodSAIFI(dss::DSSContext) -> Float64
Returns SAIFI for this meter's Zone. Execute Reliability Calc method first.
OpenDSSDirect.Meters.SAIFIkW
— MethodSAIFIkW(dss::DSSContext) -> Float64
SAIFI based on kW rather than number of customers. Get after reliability calcs.
OpenDSSDirect.Meters.Sample
— MethodSample(dss::DSSContext)
Sample meter
OpenDSSDirect.Meters.SampleAll
— MethodSampleAll(dss::DSSContext)
Sample all meters
OpenDSSDirect.Meters.Save
— MethodSave(dss::DSSContext)
Save meter registers
OpenDSSDirect.Meters.SaveAll
— MethodSaveAll(dss::DSSContext)
Save all meters registers
OpenDSSDirect.Meters.SectSeqidx
— MethodSectSeqidx(dss::DSSContext) -> Int64
SequenceIndex of the branch at the head of this section
OpenDSSDirect.Meters.SectTotalCust
— MethodSectTotalCust(dss::DSSContext) -> Int64
Total Customers downline from this section
OpenDSSDirect.Meters.SeqListSize
— MethodSeqListSize(dss::DSSContext) -> Int64
Size of Sequence List
OpenDSSDirect.Meters.SequenceList
— MethodSequenceList(dss::DSSContext, Value::Int64)
Get/set Index into Meter's SequenceList that contains branch pointers in lexical order. Earlier index guaranteed to be upline from later index. Sets PDelement active.
OpenDSSDirect.Meters.SequenceList
— MethodSequenceList(dss::DSSContext) -> Int64
Get/set Index into Meter's SequenceList that contains branch pointers in lexical order. Earlier index guaranteed to be upline from later index. Sets PDelement active.
OpenDSSDirect.Meters.SetActiveSection
— MethodSetActiveSection(dss::DSSContext, SectIdx::Int64)
Set active section
OpenDSSDirect.Meters.SumBranchFltRates
— MethodSumBranchFltRates(dss::DSSContext) -> Float64
Sum of the branch fault rates in this section of the meter's zone
OpenDSSDirect.Meters.TotalCustomers
— MethodTotalCustomers(dss::DSSContext) -> Int64
Total Number of customers in this zone (downline from the EnergyMeter)
OpenDSSDirect.Meters.Totals
— MethodTotals(dss::DSSContext) -> Vector{Float64}
Totals of all registers of all meters
OpenDSSDirect.Meters.ZonePCE
— MethodZonePCE(dss::DSSContext) -> Vector{String}
Returns the list of all PCE within the area covered by the energy meter
Monitors
OpenDSSDirect.Monitors.AllNames
— MethodAllNames(dss::DSSContext) -> Vector{String}
(read-only) Array of all Monitor Names
OpenDSSDirect.Monitors.ByteStream
— MethodByteStream(dss::DSSContext) -> Vector{Int8}
(read-only) Byte Array containing monitor stream values. Make sure a "save" is done first (standard solution modes do this automatically)
OpenDSSDirect.Monitors.Channel
— MethodChannel(dss::DSSContext, Index::Int64) -> Vector{Float64}
Array of doubles for the specified channel (usage: MyArray = DSSMonitor.Channel(i)) A Save or SaveAll should be executed first. Done automatically by most standard solution modes.
OpenDSSDirect.Monitors.Count
— MethodCount(dss::DSSContext) -> Int64
(read-only) Number of Monitors
OpenDSSDirect.Monitors.DblFreq
— MethodDblFreq(dss::DSSContext) -> Vector{Float64}
(read-only) Array of doubles containing frequency values for harmonics mode solutions; Empty for time mode solutions (use dblHour)
OpenDSSDirect.Monitors.DblHour
— MethodDblHour(dss::DSSContext) -> Vector{Float64}
(read-only) Array of doubles containing time value in hours for time-sampled monitor values; Empty if frequency-sampled values for harmonics solution (see dblFreq)
OpenDSSDirect.Monitors.Element
— MethodElement(dss::DSSContext, Value::String)
Full object name of element being monitored.
OpenDSSDirect.Monitors.Element
— MethodElement(dss::DSSContext) -> String
Full object name of element being monitored.
OpenDSSDirect.Monitors.FileName
— MethodFileName(dss::DSSContext) -> String
(read-only) Name of CSV file associated with active Monitor.
OpenDSSDirect.Monitors.FileVersion
— MethodFileVersion(dss::DSSContext) -> Int64
(read-only) Monitor File Version (integer)
OpenDSSDirect.Monitors.First
— MethodFirst(dss::DSSContext) -> Int64
(read-only) Sets the first Monitor active. Returns 0 if no monitors.
OpenDSSDirect.Monitors.Header
— MethodHeader(dss::DSSContext) -> Vector{String}
(read-only) Header string; Array of strings containing Channel names
OpenDSSDirect.Monitors.Idx
— MethodIdx(dss::DSSContext, Value::Int64)
Monitor Index (Setter)
OpenDSSDirect.Monitors.Idx
— MethodIdx(dss::DSSContext) -> Int64
Monitor Index (Getter)
OpenDSSDirect.Monitors.Mode
— MethodMode(
dss::DSSContext,
Value::Union{Int64, UInt32, OpenDSSDirect.Lib.MonitorModes}
)
Set Monitor mode (bitmask integer - see DSS Help)
OpenDSSDirect.Monitors.Mode
— MethodMode(dss::DSSContext) -> OpenDSSDirect.Lib.MonitorModes
Set Monitor mode (bitmask integer - see DSS Help)
OpenDSSDirect.Monitors.Name
— MethodName(dss::DSSContext, Value::String)
Sets the active Monitor object by name
OpenDSSDirect.Monitors.Name
— MethodName(dss::DSSContext) -> String
Sets the active Monitor object by name
OpenDSSDirect.Monitors.Next
— MethodNext(dss::DSSContext) -> Int64
(read-only) Sets next monitor active. Returns 0 if no more.
OpenDSSDirect.Monitors.NumChannels
— MethodNumChannels(dss::DSSContext) -> Int64
(read-only) Number of Channels in the active Monitor
OpenDSSDirect.Monitors.RecordSize
— MethodRecordSize(dss::DSSContext) -> Int64
(read-only) Size of each record in ByteStream (Integer). Same as NumChannels.
OpenDSSDirect.Monitors.SampleCount
— MethodSampleCount(dss::DSSContext) -> Int64
(read-only) Number of Samples in Monitor at Present
OpenDSSDirect.Monitors.Terminal
— MethodTerminal(dss::DSSContext, Value::Int64)
Terminal number of element being monitored.
OpenDSSDirect.Monitors.Terminal
— MethodTerminal(dss::DSSContext) -> Int64
Terminal number of element being monitored.
Parallel
OpenDSSDirect.Parallel.ActiveActor
— MethodActiveActor(dss::DSSContext, Value::Int64)
Sets the ID of the Active Actor
OpenDSSDirect.Parallel.ActiveActor
— MethodActiveActor(dss::DSSContext) -> Int64
Gets the ID of the Active Actor
OpenDSSDirect.Parallel.ActiveParallel
— MethodActiveParallel(dss::DSSContext, Value::Int64)
Controls if the parallel features of the engine are active
OpenDSSDirect.Parallel.ActiveParallel
— MethodActiveParallel(dss::DSSContext) -> Int64
Returns the state of the internal DSS parallel features
OpenDSSDirect.Parallel.ActorCPU
— MethodActorCPU(dss::DSSContext, Value::Int64)
Gets/sets the CPU of the Active Actor (Setter)
OpenDSSDirect.Parallel.ActorCPU
— MethodActorCPU(dss::DSSContext) -> Int64
Gets/sets the CPU of the Active Actor (Getter)
OpenDSSDirect.Parallel.ActorProgress
— MethodActorProgress(dss::DSSContext) -> Vector{Int64}
Gets the progress of all existing actors in pct
OpenDSSDirect.Parallel.ActorStatus
— MethodActorStatus(dss::DSSContext) -> Vector{Int64}
Gets the status of each actor
OpenDSSDirect.Parallel.ConcatenateReports
— MethodConcatenateReports(dss::DSSContext, Value::Bool)
Controls the ConcatenateReports option (Setter)
OpenDSSDirect.Parallel.ConcatenateReports
— MethodConcatenateReports(dss::DSSContext) -> Bool
Controls the ConcatenateReports option (Getter)
OpenDSSDirect.Parallel.CreateActor
— MethodCreateActor(dss::DSSContext)
Creates a new DSS actor
OpenDSSDirect.Parallel.NumCPUs
— MethodNumCPUs(dss::DSSContext) -> Int64
Delivers the number of CPUs on the current machine as recognized by the DSS engine
OpenDSSDirect.Parallel.NumCores
— MethodNumCores(dss::DSSContext) -> Int64
Delivers the number of Cores of the local machine as recognized by the DSS engine
OpenDSSDirect.Parallel.NumOfActors
— MethodNumOfActors(dss::DSSContext) -> Int64
Gets the number of Actors created
OpenDSSDirect.Parallel.Wait
— MethodWait(dss::DSSContext)
Wait for the actors to finish the current actions
Parser
OpenDSSDirect.Parser.AutoIncrement
— MethodAutoIncrement(dss::DSSContext, Value::Bool)
Default is FALSE. If TRUE parser automatically advances to next token after DblValue, IntValue, or StrValue. Simpler when you don't need to check for parameter names.
OpenDSSDirect.Parser.AutoIncrement
— MethodAutoIncrement(dss::DSSContext) -> Bool
Default is FALSE. If TRUE parser automatically advances to next token after DblValue, IntValue, or StrValue. Simpler when you don't need to check for parameter names.
OpenDSSDirect.Parser.BeginQuote
— MethodBeginQuote(dss::DSSContext, Value::String)
String containing the the characters for Quoting in OpenDSS scripts. Matching pairs defined in EndQuote. Default is "'([{.
OpenDSSDirect.Parser.BeginQuote
— MethodBeginQuote(dss::DSSContext) -> String
String containing the the characters for Quoting in OpenDSS scripts. Matching pairs defined in EndQuote. Default is "'([{.
OpenDSSDirect.Parser.CmdString
— MethodCmdString(dss::DSSContext, Value::String)
String to be parsed. Loading this string resets the Parser to the beginning of the line. Then parse off the tokens in sequence.
OpenDSSDirect.Parser.CmdString
— MethodCmdString(dss::DSSContext) -> String
String to be parsed. Loading this string resets the Parser to the beginning of the line. Then parse off the tokens in sequence.
OpenDSSDirect.Parser.DblValue
— MethodDblValue(dss::DSSContext) -> Float64
Return next parameter as a double.
OpenDSSDirect.Parser.Delimiters
— MethodDelimiters(dss::DSSContext, Value::String)
String defining hard delimiters used to separate token on the command string. Default is , and =. The = separates token name from token value. These override whitesspace to separate tokens.
OpenDSSDirect.Parser.Delimiters
— MethodDelimiters(dss::DSSContext) -> String
String defining hard delimiters used to separate token on the command string. Default is , and =. The = separates token name from token value. These override whitesspace to separate tokens.
OpenDSSDirect.Parser.EndQuote
— MethodEndQuote(dss::DSSContext, Value::String)
String containing characters, in order, that match the beginning quote characters in BeginQuote. Default is "')]}
(Setter)
OpenDSSDirect.Parser.EndQuote
— MethodEndQuote(dss::DSSContext) -> String
String containing characters, in order, that match the beginning quote characters in BeginQuote. Default is "')]}
(Getter)
OpenDSSDirect.Parser.IntValue
— MethodIntValue(dss::DSSContext) -> Int64
Return next parameter as a long integer.
OpenDSSDirect.Parser.Matrix
— MethodMatrix(dss::DSSContext, ExpectedOrder)
Use this property to parse a Matrix token in OpenDSS format. Returns square matrix of order specified. Order same as default Fortran order: column by column.
OpenDSSDirect.Parser.NextParam
— MethodNextParam(dss::DSSContext) -> String
Get next token and return tag name (before = sign) if any. See AutoIncrement.
OpenDSSDirect.Parser.StrValue
— MethodStrValue(dss::DSSContext) -> String
Return next parameter as a string
OpenDSSDirect.Parser.SymMatrix
— MethodSymMatrix(dss::DSSContext, ExpectedOrder)
Use this property to parse a matrix token specified in lower triangle form. Symmetry is forced.
OpenDSSDirect.Parser.Vector
— MethodVector(dss::DSSContext, ExpectedSize)
Returns token as array of doubles. For parsing quoted array syntax.
OpenDSSDirect.Parser.WhiteSpace
— MethodWhiteSpace(dss::DSSContext, Value::String)
Characters used for White space in the command string. Default is blank and Tab. (Setter)
OpenDSSDirect.Parser.WhiteSpace
— MethodWhiteSpace(dss::DSSContext) -> String
Characters used for White space in the command string. Default is blank and Tab. (Getter)
PDElements
OpenDSSDirect.PDElements.AccumulatedL
— MethodAccumulatedL(dss::DSSContext) -> Float64
accummulated failure rate for this branch on downline
OpenDSSDirect.PDElements.AllCplxSeqCurrents
— MethodAllCplxSeqCurrents(dss::DSSContext) -> Vector{ComplexF64}
Complex double array of Sequence Currents for all conductors of all terminals, for each PD elements. (API Extension)
OpenDSSDirect.PDElements.AllCurrentsAllCurrents
— MethodAllCurrentsAllCurrents(
dss::DSSContext
) -> Vector{ComplexF64}
Complex array of currents for all conductors, all terminals, for each PD element. (API Extension)
OpenDSSDirect.PDElements.AllCurrentsMagAng
— MethodAllCurrentsMagAng(dss::DSSContext) -> Vector{Float64}
Array of currents (complex magnitude, angle) for all conductors, all terminals, for each PD element. (API Extension)
OpenDSSDirect.PDElements.AllMaxCurrents
— FunctionAllMaxCurrents(dss::DSSContext) -> Vector{Float64}
AllMaxCurrents(
dss::DSSContext,
AllNodes::Bool
) -> Vector{Float64}
Array of doubles with the maximum current across the conductors, for each PD element.
By default, only the first terminal is used for the maximum current, matching the behavior of the "export capacity" command. Pass AllNodes=True
to force the analysis to all terminals.
See also: https://sourceforge.net/p/electricdss/discussion/beginners/thread/da5b93ca/
(API Extension)
OpenDSSDirect.PDElements.AllNames
— MethodAllNames(dss::DSSContext) -> Vector{String}
Array of strings consisting of all PD element names. (API Extension)
OpenDSSDirect.PDElements.AllNumConductors
— MethodAllNumConductors(dss::DSSContext) -> Vector{Int32}
Integer array listing the number of conductors of all PD elements (API Extension)
OpenDSSDirect.PDElements.AllNumPhases
— MethodAllNumPhases(dss::DSSContext) -> Vector{Int32}
Integer array listing the number of phases of all PD elements (API Extension)
OpenDSSDirect.PDElements.AllNumTerminals
— MethodAllNumTerminals(dss::DSSContext) -> Vector{Int32}
Integer array listing the number of terminals of all PD elements (API Extension)
OpenDSSDirect.PDElements.AllPctEmerg
— FunctionAllPctEmerg(dss::DSSContext) -> Vector{Float64}
AllPctEmerg(
dss::DSSContext,
AllNodes::Bool
) -> Vector{Float64}
Array of doubles with the maximum current across the conductors as a percentage of the Emergency Ampere Rating, for each PD element.
By default, only the first terminal is used for the maximum current, matching the behavior of the "export capacity" command. Pass AllNodes=True
to force the analysis to all terminals.
See also: https://sourceforge.net/p/electricdss/discussion/beginners/thread/da5b93ca/
(API Extension)
OpenDSSDirect.PDElements.AllPctNorm
— FunctionAllPctNorm(dss::DSSContext) -> Vector{Float64}
AllPctNorm(
dss::DSSContext,
AllNodes::Bool
) -> Vector{Float64}
Array of doubles with the maximum current across the conductors as a percentage of the Normal Ampere Rating, for each PD element.
By default, only the first terminal is used for the maximum current, matching the behavior of the "export capacity" command. Pass AllNodes=True
to force the analysis to all terminals.
See also: https://sourceforge.net/p/electricdss/discussion/beginners/thread/da5b93ca/
(API Extension)
OpenDSSDirect.PDElements.AllPowers
— MethodAllPowers(dss::DSSContext) -> Vector{ComplexF64}
Complex array of powers into each conductor of each terminal, for each PD element. (API Extension)
OpenDSSDirect.PDElements.AllSeqCurrents
— MethodAllSeqCurrents(dss::DSSContext) -> Vector{ComplexF64}
Double array of Sequence Currents for all conductors of all terminals, for each PD elements. (API Extension)
OpenDSSDirect.PDElements.AllSeqPowers
— MethodAllSeqPowers(dss::DSSContext) -> Vector{ComplexF64}
Complex array of sequence powers into each 3-phase teminal, for each PD element (API Extension)
OpenDSSDirect.PDElements.Count
— MethodCount(dss::DSSContext) -> Int64
Number of PD elements (including disabled elements)
OpenDSSDirect.PDElements.FaultRate
— MethodFaultRate(dss::DSSContext, Value::Float64)
Number of failures per year. For LINE elements: Number of failures per unit length per year. (Setter)
OpenDSSDirect.PDElements.FaultRate
— MethodFaultRate(dss::DSSContext) -> Float64
Number of failures per year. For LINE elements: Number of failures per unit length per year. (Getter)
OpenDSSDirect.PDElements.First
— MethodFirst(dss::DSSContext) -> Int64
Set the first enabled PD element to be the active element. Returns 0 if none found.
OpenDSSDirect.PDElements.FromTerminal
— MethodFromTerminal(dss::DSSContext) -> Int64
Number of the terminal of active PD element that is on the "from" side. This is set after the meter zone is determined.
OpenDSSDirect.PDElements.IsShunt
— MethodIsShunt(dss::DSSContext) -> Bool
Variant boolean indicating of PD element should be treated as a shunt element rather than a series element. Applies to Capacitor and Reactor elements in particular.
OpenDSSDirect.PDElements.Lambda
— MethodLambda(dss::DSSContext) -> Float64
Failure rate for this branch. Faults per year including length of line.
OpenDSSDirect.PDElements.Name
— MethodName(dss::DSSContext, Value::String)
Name of active PD Element. Returns null string if active element is not PDElement type. (Setter)
OpenDSSDirect.PDElements.Name
— MethodName(dss::DSSContext) -> String
Name of active PD Element. Returns null string if active element is not PDElement type. (Getter)
OpenDSSDirect.PDElements.Next
— MethodNext(dss::DSSContext) -> Int64
Advance to the next PD element in the circuit. Enabled elements only. Returns 0 when no more elements.
OpenDSSDirect.PDElements.NumCustomers
— MethodNumCustomers(dss::DSSContext) -> Int64
Number of customers, this branch
OpenDSSDirect.PDElements.ParentPDElement
— MethodParentPDElement(dss::DSSContext) -> Int64
Sets the parent PD element to be the active circuit element. Returns 0 if no more elements upline.
OpenDSSDirect.PDElements.PctPermanent
— MethodPctPermanent(dss::DSSContext, Value::Float64)
Get/Set percent of faults that are permanent (require repair). Otherwise, fault is assumed to be transient/temporary. (Setter)
OpenDSSDirect.PDElements.PctPermanent
— MethodPctPermanent(dss::DSSContext) -> Float64
Get/Set percent of faults that are permanent (require repair). Otherwise, fault is assumed to be transient/temporary. (Getter)
OpenDSSDirect.PDElements.RepairTime
— MethodRepairTime(dss::DSSContext, Value::Float64)
Average repair time for this element in hours (Setter)
OpenDSSDirect.PDElements.RepairTime
— MethodRepairTime(dss::DSSContext) -> Float64
Average repair time for this element in hours (Getter)
OpenDSSDirect.PDElements.SectionID
— MethodSectionID(dss::DSSContext) -> Int64
Integer ID of the feeder section that this PDElement branch is part of
OpenDSSDirect.PDElements.TotalCustomers
— MethodTotalCustomers(dss::DSSContext) -> Int64
Total number of customers from this branch to the end of the zone
OpenDSSDirect.PDElements.TotalMiles
— MethodTotalMiles(dss::DSSContext) -> Float64
Total miles of line from this element to the end of the zone. For recloser siting algorithm.
Progress
OpenDSSDirect.Progress.Caption
— MethodCaption(dss::DSSContext, Value::String)
Caption to appear on the bottom of the DSS Progress form.
OpenDSSDirect.Progress.Close
— MethodClose(dss::DSSContext)
Close progress
OpenDSSDirect.Progress.PctProgress
— MethodPctProgress(dss::DSSContext, Value::Int64)
Percent progress to indicate [0..100]
OpenDSSDirect.Progress.Show
— MethodShow(dss::DSSContext)
Show progress
Properties
OpenDSSDirect.Properties.Description
— MethodDescription(dss::DSSContext) -> String
Description of the property.
OpenDSSDirect.Properties.Name
— MethodName(dss::DSSContext) -> String
Name of Property
OpenDSSDirect.Properties.Value
— MethodValue(
dss::DSSContext,
argIndex_or_Name::Union{Int64, String},
value::String
)
Value of Property of Index or Name (setter)
OpenDSSDirect.Properties.Value
— MethodValue(
dss::DSSContext,
argIndex_or_Name::Union{Int64, String}
) -> String
Value of Property of Index or Name (getter)
OpenDSSDirect.Properties.Value
— MethodValue(dss::DSSContext) -> String
Value of Property (Getter)
OpenDSSDirect.Properties._setCurrentProperty
— Method_setCurrentProperty(dss::DSSContext, argIndex::Int64)
Sets the current DSS property based on a 1-based integer (or integer as a string) as an property index, or a string as a property name.
PVsystems
OpenDSSDirect.PVsystems.AllNames
— MethodAllNames(dss::DSSContext) -> Vector{String}
Variant array of strings with all PVSystem names
OpenDSSDirect.PVsystems.Count
— MethodCount(dss::DSSContext) -> Int64
Number of PVSystems
OpenDSSDirect.PVsystems.Daily
— MethodDaily(dss::DSSContext, Value::String)
Name of the loadshape for a daily load profile. (Setter)
OpenDSSDirect.PVsystems.Daily
— MethodDaily(dss::DSSContext) -> String
Name of the loadshape for a daily load profile. (Getter)
OpenDSSDirect.PVsystems.Duty
— MethodDuty(dss::DSSContext, Value::String)
Name of the loadshape for a duty cycle simulation. (Setter)
OpenDSSDirect.PVsystems.Duty
— MethodDuty(dss::DSSContext) -> String
Name of the loadshape for a duty cycle simulation. (Getter)
OpenDSSDirect.PVsystems.First
— MethodFirst(dss::DSSContext) -> Int64
Set first PVSystem active; returns 0 if none.
OpenDSSDirect.PVsystems.Idx
— MethodIdx(dss::DSSContext, Value::Int64)
Active PVSystem by index; 1..Count (Setter)
OpenDSSDirect.PVsystems.Idx
— MethodIdx(dss::DSSContext) -> Int64
Active PVSystem by index; 1..Count (Getter)
OpenDSSDirect.PVsystems.Irradiance
— MethodIrradiance(dss::DSSContext, Value::Float64)
Present value of the Irradiance property in kW/m² (Setter)
OpenDSSDirect.PVsystems.Irradiance
— MethodIrradiance(dss::DSSContext) -> Float64
Present value of the Irradiance property in kW/m² (Getter)
OpenDSSDirect.PVsystems.IrradianceNow
— MethodIrradianceNow(dss::DSSContext) -> Float64
Returns the current irradiance value for the active PVSystem. Use it to know what's the current irradiance value for the PV during a simulation.
OpenDSSDirect.PVsystems.Name
— MethodName(dss::DSSContext, Value::String)
Name of the active PVSystem (Setter)
OpenDSSDirect.PVsystems.Name
— MethodName(dss::DSSContext) -> String
Name of the active PVSystem (Getter)
OpenDSSDirect.PVsystems.Next
— MethodNext(dss::DSSContext) -> Int64
Sets next PVSystem active; returns 0 if no more.
OpenDSSDirect.PVsystems.Pmpp
— MethodPmpp(dss::DSSContext, Value::Float64)
Pmpp value (Setter)
OpenDSSDirect.PVsystems.Pmpp
— MethodPmpp(dss::DSSContext) -> Float64
Pmpp value (Getter)
OpenDSSDirect.PVsystems.RegisterNames
— MethodRegisterNames(dss::DSSContext) -> Vector{String}
Array of PVSYSTEM energy meter register names
OpenDSSDirect.PVsystems.RegisterValues
— MethodRegisterValues(dss::DSSContext) -> Vector{Float64}
Array of doubles containing values in PVSystem registers.
OpenDSSDirect.PVsystems.Sensor
— MethodSensor(dss::DSSContext) -> String
Name of the sensor monitoring this PVSystem element.
OpenDSSDirect.PVsystems.TDaily
— MethodTDaily(dss::DSSContext, Value::String)
Name of the temperature shape to use for daily simulations. (Setter)
OpenDSSDirect.PVsystems.TDaily
— MethodTDaily(dss::DSSContext) -> String
Name of the temperature shape to use for daily simulations. (Getter)
OpenDSSDirect.PVsystems.TDuty
— MethodTDuty(dss::DSSContext, Value::String)
Name of the emperature shape to use for duty cycle dispatch simulations such as for solar ramp rate studies. (Setter)
OpenDSSDirect.PVsystems.TDuty
— MethodTDuty(dss::DSSContext) -> String
Name of the temperature shape to use for duty cycle dispatch simulations such as for solar ramp rate studies. (Getter)
OpenDSSDirect.PVsystems.TYearly
— MethodTYearly(dss::DSSContext, Value::String)
Name of the temperature shape to use for yearly simulations. (Setter)
OpenDSSDirect.PVsystems.TYearly
— MethodTYearly(dss::DSSContext) -> String
Name of the temperature shape to use for yearly simulations. (Getter)
OpenDSSDirect.PVsystems.Yearly
— MethodYearly(dss::DSSContext, Value::String) -> Any
Name of yearly duration loadshape (Setter)
OpenDSSDirect.PVsystems.Yearly
— MethodYearly(dss::DSSContext) -> String
Name of yearly duration loadshape (Getter)
OpenDSSDirect.PVsystems.kVARated
— MethodkVARated(dss::DSSContext, Value::Float64)
Rated kVA of the PVSystem (Setter)
OpenDSSDirect.PVsystems.kVARated
— MethodkVARated(dss::DSSContext) -> Float64
Rated kVA of the PVSystem (Getter)
OpenDSSDirect.PVsystems.kW
— MethodkW(dss::DSSContext) -> Float64
Get kW output
OpenDSSDirect.PVsystems.kvar
— Methodkvar(dss::DSSContext, Value::Float64)
kvar value (Setter)
OpenDSSDirect.PVsystems.kvar
— Methodkvar(dss::DSSContext) -> Float64
kvar value (Getter)
OpenDSSDirect.PVsystems.pf
— Methodpf(dss::DSSContext, Value::Float64)
Power factor (Setter)
OpenDSSDirect.PVsystems.pf
— Methodpf(dss::DSSContext) -> Float64
Power factor (Getter)
OpenDSSDirect.PVsystems.yearly
— Methodyearly(dss::DSSContext, Value::String)
Dispatch shape to use for yearly simulations. Must be previously defined as a Loadshape object. If this is not specified, the Daily dispatch shape, if any, is repeated during Yearly solution modes. In the default dispatch mode, the PVSystem element uses this loadshape to trigger State changes. (Setter)
OpenDSSDirect.PVsystems.yearly
— Methodyearly(dss::DSSContext) -> String
Dispatch shape to use for yearly simulations. Must be previously defined as a Loadshape object. If this is not specified, the Daily dispatch shape, if any, is repeated during Yearly solution modes. In the default dispatch mode, the PVSystem element uses this loadshape to trigger State changes. (Getter)
Reactors
OpenDSSDirect.Reactors.AllNames
— MethodAllNames(dss::DSSContext) -> Vector{String}
Array of names of all Reactor objects.
OpenDSSDirect.Reactors.Bus1
— MethodBus1(dss::DSSContext, Value::String)
Name of first bus. Bus2 property will default to this bus, node 0, unless previously specified. Only Bus1 need be specified for a Yg shunt reactor. (Setter)
OpenDSSDirect.Reactors.Bus1
— MethodBus1(dss::DSSContext) -> String
Name of first bus. Bus2 property will default to this bus, node 0, unless previously specified. Only Bus1 need be specified for a Yg shunt reactor. (Getter)
OpenDSSDirect.Reactors.Bus2
— MethodBus2(dss::DSSContext, Value::String)
Name of 2nd bus. Defaults to all phases connected to first bus, node 0, (Shunt Wye Connection) except when Bus2 is specifically defined. Not necessary to specify for delta (LL) connection (Setter)
OpenDSSDirect.Reactors.Bus2
— MethodBus2(dss::DSSContext) -> String
Name of 2nd bus. Defaults to all phases connected to first bus, node 0, (Shunt Wye Connection) except when Bus2 is specifically defined. Not necessary to specify for delta (LL) connection (Getter)
OpenDSSDirect.Reactors.Count
— MethodCount(dss::DSSContext) -> Int64
Number of Reactor Objects in Active Circuit
OpenDSSDirect.Reactors.First
— MethodFirst(dss::DSSContext) -> Int64
Sets first Reactor to be active. Returns 0 if none.
OpenDSSDirect.Reactors.Idx
— MethodIdx(dss::DSSContext, Value::Int64)
Active Reactor by index. 1..Count (Setter)
OpenDSSDirect.Reactors.Idx
— MethodIdx(dss::DSSContext) -> Int64
Active Reactor by index. 1..Count (Getter)
OpenDSSDirect.Reactors.IsDelta
— MethodIsDelta(dss::DSSContext, Value::Bool)
Delta connection or wye? (Setter)
OpenDSSDirect.Reactors.IsDelta
— MethodIsDelta(dss::DSSContext) -> Bool
Delta connection or wye? (Getter)
OpenDSSDirect.Reactors.LCurve
— MethodLCurve(dss::DSSContext, Value::Float64)
Name of XYCurve object, previously defined, describing per-unit variation of phase inductance, L=X/w, vs. frequency. Applies to reactance specified by X, LmH, Z, or kvar property. L generally decreases somewhat with frequency above the base frequency, approaching a limit at a few kHz. (Setter)
OpenDSSDirect.Reactors.LCurve
— MethodLCurve(dss::DSSContext)
Name of XYCurve object, previously defined, describing per-unit variation of phase inductance, L=X/w, vs. frequency. Applies to reactance specified by X, LmH, Z, or kvar property. L generally decreases somewhat with frequency above the base frequency, approaching a limit at a few kHz. (Getter)
OpenDSSDirect.Reactors.LmH
— MethodLmH(dss::DSSContext, Value::Float64)
Inductance, mH. Alternate way to define the reactance, X, property. (Setter)
OpenDSSDirect.Reactors.LmH
— MethodLmH(dss::DSSContext) -> Float64
Inductance, mH. Alternate way to define the reactance, X, property. (Getter)
OpenDSSDirect.Reactors.Name
— MethodName(dss::DSSContext, Value::String)
Sets a Reactor active by name.
OpenDSSDirect.Reactors.Name
— MethodName(dss::DSSContext) -> String
Sets a Reactor active by name.
OpenDSSDirect.Reactors.Next
— MethodNext(dss::DSSContext) -> Int64
Sets next Reactor to be active. Returns 0 if no more.
OpenDSSDirect.Reactors.Parallel
— MethodParallel(dss::DSSContext, Value::Bool)
Indicates whether Rmatrix and Xmatrix are to be considered in parallel. (Setter)
OpenDSSDirect.Reactors.Parallel
— MethodParallel(dss::DSSContext) -> Bool
Indicates whether Rmatrix and Xmatrix are to be considered in parallel. (Getter)
OpenDSSDirect.Reactors.Phases
— MethodPhases(dss::DSSContext, Value::Int64)
Number of phases. (Setter)
OpenDSSDirect.Reactors.Phases
— MethodPhases(dss::DSSContext) -> Int64
Number of phases. (Getter)
OpenDSSDirect.Reactors.R
— MethodR(dss::DSSContext, Value::Float64)
Resistance (in series with reactance), each phase, ohms. This property applies to REACTOR specified by either kvar or X. See also help on Z. (Setter)
OpenDSSDirect.Reactors.R
— MethodR(dss::DSSContext) -> Float64
Resistance (in series with reactance), each phase, ohms. This property applies to REACTOR specified by either kvar or X. See also help on Z. (Getter)
OpenDSSDirect.Reactors.RCurve
— MethodRCurve(dss::DSSContext, Value::String)
Name of XYCurve object, previously defined, describing per-unit variation of phase resistance, R, vs. frequency. Applies to resistance specified by R or Z property. If actual values are not known, R often increases by approximately the square root of frequency. (Setter)
OpenDSSDirect.Reactors.RCurve
— MethodRCurve(dss::DSSContext) -> String
Name of XYCurve object, previously defined, describing per-unit variation of phase resistance, R, vs. frequency. Applies to resistance specified by R or Z property. If actual values are not known, R often increases by approximately the square root of frequency. (Getter)
OpenDSSDirect.Reactors.Rmatrix
— MethodRmatrix(dss::DSSContext, Value::Array{Float64})
Resistance matrix, ohms at base frequency. Order of the matrix is the number of phases. Mutually exclusive to specifying parameters by kvar or X. (Setter)
OpenDSSDirect.Reactors.Rmatrix
— MethodRmatrix(dss::DSSContext) -> Vector{Float64}
Resistance matrix, ohms at base frequency. Order of the matrix is the number of phases. Mutually exclusive to specifying parameters by kvar or X. (Getter)
OpenDSSDirect.Reactors.Rp
— MethodRp(dss::DSSContext, Value::Float64)
Resistance in parallel with R and X (the entire branch). Assumed infinite if not specified. (Setter)
OpenDSSDirect.Reactors.Rp
— MethodRp(dss::DSSContext) -> Float64
Resistance in parallel with R and X (the entire branch). Assumed infinite if not specified. (Getter)
OpenDSSDirect.Reactors.SpecType
— MethodSpecType(dss::DSSContext) -> Int64
How the reactor data was provided: 1=kvar, 2=R+jX, 3=R and X matrices, 4=sym components. Depending on this value, only some properties are filled or make sense in the context.
OpenDSSDirect.Reactors.X
— MethodX(dss::DSSContext, Value::Float64)
Reactance, each phase, ohms at base frequency. See also help on Z and LmH properties. (Setter)
OpenDSSDirect.Reactors.X
— MethodX(dss::DSSContext) -> Float64
Reactance, each phase, ohms at base frequency. See also help on Z and LmH properties. (Getter)
OpenDSSDirect.Reactors.Xmatrix
— MethodXmatrix(dss::DSSContext, Value::Array{Float64})
Reactance matrix, ohms at base frequency. Order of the matrix is the number of phases. Mutually exclusive to specifying parameters by kvar or X. (Setter)
OpenDSSDirect.Reactors.Xmatrix
— MethodXmatrix(dss::DSSContext) -> Vector{Float64}
Reactance matrix, ohms at base frequency. Order of the matrix is the number of phases. Mutually exclusive to specifying parameters by kvar or X. (Getter)
OpenDSSDirect.Reactors.Z
— MethodZ(dss::DSSContext, Value::ComplexF64)
Alternative way of defining R and X properties (Setter)
OpenDSSDirect.Reactors.Z
— MethodZ(dss::DSSContext) -> ComplexF64
Alternative way of defining R and X properties (Getter)
OpenDSSDirect.Reactors.Z0
— MethodZ0(dss::DSSContext, Value::ComplexF64)
Zero-sequence impedance, ohms. Used to define the impedance matrix of the REACTOR if Z1 is also specified. Note: Z0 defaults to Z1 if it is not specifically defined. (Setter)
OpenDSSDirect.Reactors.Z0
— MethodZ0(dss::DSSContext) -> ComplexF64
Zero-sequence impedance, ohms. Used to define the impedance matrix of the REACTOR if Z1 is also specified. Note: Z0 defaults to Z1 if it is not specifically defined. (Getter)
OpenDSSDirect.Reactors.Z1
— MethodZ1(dss::DSSContext, Value::ComplexF64)
Positive-sequence impedance, ohms. If defined, Z1, Z2, and Z0 are used to define the impedance matrix of the REACTOR. Z1 MUST BE DEFINED TO USE THIS OPTION FOR DEFINING THE MATRIX. Side Effect: Sets Z2 and Z0 to same values unless they were previously defined. (Setter)
OpenDSSDirect.Reactors.Z1
— MethodZ1(dss::DSSContext) -> ComplexF64
Positive-sequence impedance, ohms. If defined, Z1, Z2, and Z0 are used to define the impedance matrix of the REACTOR. Z1 MUST BE DEFINED TO USE THIS OPTION FOR DEFINING THE MATRIX. Side Effect: Sets Z2 and Z0 to same values unless they were previously defined. (Getter)
OpenDSSDirect.Reactors.Z2
— MethodZ2(dss::DSSContext, Value::ComplexF64)
Negative-sequence impedance, ohms. Used to define the impedance matrix of the REACTOR if Z1 is also specified. Note: Z2 defaults to Z1 if it is not specifically defined. If Z2 is not equal to Z1, the impedance matrix is asymmetrical. (Setter)
OpenDSSDirect.Reactors.Z2
— MethodZ2(dss::DSSContext) -> ComplexF64
Negative-sequence impedance, ohms. Used to define the impedance matrix of the REACTOR if Z1 is also specified. Note: Z2 defaults to Z1 if it is not specifically defined. If Z2 is not equal to Z1, the impedance matrix is asymmetrical. (Getter)
OpenDSSDirect.Reactors.kV
— MethodkV(dss::DSSContext, Value::Float64)
For 2, 3-phase, kV phase-phase. Otherwise specify actual coil rating. (Setter)
OpenDSSDirect.Reactors.kV
— MethodkV(dss::DSSContext) -> Float64
For 2, 3-phase, kV phase-phase. Otherwise specify actual coil rating. (Getter)
OpenDSSDirect.Reactors.kvar
— Methodkvar(dss::DSSContext, Value::Float64)
Total kvar, all phases. Evenly divided among phases. Only determines X. Specify R separately (Setter)
OpenDSSDirect.Reactors.kvar
— Methodkvar(dss::DSSContext) -> Float64
Total kvar, all phases. Evenly divided among phases. Only determines X. Specify R separately (Getter)
Reclosers
OpenDSSDirect.Reclosers.AllNames
— MethodAllNames(dss::DSSContext) -> Vector{String}
Array of strings with names of all Reclosers in Active Circuit
OpenDSSDirect.Reclosers.Close
— MethodClose(dss::DSSContext)
Close recloser
OpenDSSDirect.Reclosers.Count
— MethodCount(dss::DSSContext) -> Int64
Number of Reclosers in active circuit.
OpenDSSDirect.Reclosers.First
— MethodFirst(dss::DSSContext) -> Int64
Set First Recloser to be Active Ckt Element. Returns 0 if none.
OpenDSSDirect.Reclosers.GroundInst
— MethodGroundInst(dss::DSSContext, Value::Float64)
Ground (3I0) instantaneous trip setting - instantaneous curve multipler or actual amps. (Setter)
OpenDSSDirect.Reclosers.GroundInst
— MethodGroundInst(dss::DSSContext) -> Float64
Ground (3I0) instantaneous trip setting - instantaneous curve multipler or actual amps. (Getter)
OpenDSSDirect.Reclosers.GroundTrip
— MethodGroundTrip(dss::DSSContext, Value::Float64)
Ground (3I0) trip multiplier or actual amps (Setter)
OpenDSSDirect.Reclosers.GroundTrip
— MethodGroundTrip(dss::DSSContext) -> Float64
Ground (3I0) trip multiplier or actual amps (Getter)
OpenDSSDirect.Reclosers.Idx
— MethodIdx(dss::DSSContext, Value::Int64)
Get/Set the active Recloser by index into the recloser list. 1..Count (Setter)
OpenDSSDirect.Reclosers.Idx
— MethodIdx(dss::DSSContext) -> Int64
Get/Set the active Recloser by index into the recloser list. 1..Count (Getter)
OpenDSSDirect.Reclosers.MonitoredObj
— MethodMonitoredObj(dss::DSSContext, Value::String)
Full name of object the Recloser is monitoring. (Setter)
OpenDSSDirect.Reclosers.MonitoredObj
— MethodMonitoredObj(dss::DSSContext) -> String
Full name of object the Recloser is monitoring. (Getter)
OpenDSSDirect.Reclosers.MonitoredTerm
— MethodMonitoredTerm(dss::DSSContext, Value::Int64)
Terminal number of Monitored object for the Recloser (Setter)
OpenDSSDirect.Reclosers.MonitoredTerm
— MethodMonitoredTerm(dss::DSSContext) -> Int64
Terminal number of Monitored object for the Recloser (Getter)
OpenDSSDirect.Reclosers.Name
— MethodName(dss::DSSContext, Value::String)
Get Name of active Recloser or set the active Recloser by name. (Setter)
OpenDSSDirect.Reclosers.Name
— MethodName(dss::DSSContext) -> String
Get Name of active Recloser or set the active Recloser by name. (Getter)
OpenDSSDirect.Reclosers.Next
— MethodNext(dss::DSSContext) -> Int64
Iterate to the next recloser in the circuit. Returns zero if no more.
OpenDSSDirect.Reclosers.NormalState
— MethodNormalState(
dss::DSSContext,
Value::Union{Int64, OpenDSSDirect.Lib.ActionCodes}
)
Normal state (Setter)
OpenDSSDirect.Reclosers.NormalState
— MethodNormalState(
dss::DSSContext
) -> OpenDSSDirect.Lib.ActionCodes
Normal state (Getter)
OpenDSSDirect.Reclosers.NumFast
— MethodNumFast(dss::DSSContext, Value::Int64)
Number of fast shots (Setter)
OpenDSSDirect.Reclosers.NumFast
— MethodNumFast(dss::DSSContext) -> Int64
Number of fast shots (Getter)
OpenDSSDirect.Reclosers.Open
— MethodOpen(dss::DSSContext)
Open recloser
OpenDSSDirect.Reclosers.PhaseInst
— MethodPhaseInst(dss::DSSContext, Value::Float64)
Phase instantaneous curve multipler or actual amps (Setter)
OpenDSSDirect.Reclosers.PhaseInst
— MethodPhaseInst(dss::DSSContext) -> Float64
Phase instantaneous curve multipler or actual amps (Getter)
OpenDSSDirect.Reclosers.PhaseTrip
— MethodPhaseTrip(dss::DSSContext, Value::Float64)
Phase trip curve multiplier or actual amps (Setter)
OpenDSSDirect.Reclosers.PhaseTrip
— MethodPhaseTrip(dss::DSSContext) -> Float64
Phase trip curve multiplier or actual amps (Getter)
OpenDSSDirect.Reclosers.RecloseIntervals
— MethodRecloseIntervals(dss::DSSContext) -> Vector{Float64}
Variant Array of Doubles: reclose intervals, s, between shots.
OpenDSSDirect.Reclosers.Reset
— MethodReset(dss::DSSContext)
Reset recloser to normal state. If open, lock out the recloser. If closed, resets recloser to first operation.
OpenDSSDirect.Reclosers.Shots
— MethodShots(dss::DSSContext, Value::Int64)
Number of shots to lockout (fast + delayed) (Setter)
OpenDSSDirect.Reclosers.Shots
— MethodShots(dss::DSSContext) -> Int64
Number of shots to lockout (fast + delayed) (Getter)
OpenDSSDirect.Reclosers.State
— MethodState(
dss::DSSContext,
Value::Union{Int64, OpenDSSDirect.Lib.ActionCodes}
)
Present state of recloser. If set to open, open recloser's controlled element and lock out the recloser. If set to close, close recloser's controlled element and resets recloser to first operation. (Setter)
OpenDSSDirect.Reclosers.State
— MethodState(dss::DSSContext) -> OpenDSSDirect.Lib.ActionCodes
Present state of recloser. If set to open, open recloser's controlled element and lock out the recloser. If set to close, close recloser's controlled element and resets recloser to first operation. (Getter)
OpenDSSDirect.Reclosers.SwitchedObj
— MethodSwitchedObj(dss::DSSContext, Value::String)
Full name of the circuit element that is being switched by the Recloser. (Setter)
OpenDSSDirect.Reclosers.SwitchedObj
— MethodSwitchedObj(dss::DSSContext) -> String
Full name of the circuit element that is being switched by the Recloser. (Getter)
OpenDSSDirect.Reclosers.SwitchedTerm
— MethodSwitchedTerm(dss::DSSContext, Value::Int64)
Terminal number of the controlled device being switched by the Recloser (Setter)
OpenDSSDirect.Reclosers.SwitchedTerm
— MethodSwitchedTerm(dss::DSSContext) -> Int64
Terminal number of the controlled device being switched by the Recloser (Getter)
ReduceCkt
OpenDSSDirect.ReduceCkt.Do1phLaterals
— MethodDo1phLaterals(dss::DSSContext)
Do1phLaterals
OpenDSSDirect.ReduceCkt.DoBranchRemove
— MethodDoBranchRemove(dss::DSSContext)
DoBranchRemove
OpenDSSDirect.ReduceCkt.DoDangling
— MethodDoDangling(dss::DSSContext)
Reduce Dangling Algorithm; branches with nothing connected
OpenDSSDirect.ReduceCkt.DoDefault
— MethodDoDefault(dss::DSSContext)
Do Default Reduction algorithm
OpenDSSDirect.ReduceCkt.DoLoopBreak
— MethodDoLoopBreak(dss::DSSContext)
DoLoopBreak
OpenDSSDirect.ReduceCkt.DoParallelLines
— MethodDoParallelLines(dss::DSSContext)
DoParallelLines
OpenDSSDirect.ReduceCkt.DoShortLines
— MethodDoShortLines(dss::DSSContext)
Do ShortLines algorithm: Set Zmag first if you don't want the default
OpenDSSDirect.ReduceCkt.DoSwitches
— MethodDoSwitches(dss::DSSContext)
DoSwitches
OpenDSSDirect.ReduceCkt.EditString
— MethodEditString(dss::DSSContext, Value::String)
Edit String for RemoveBranches functions (Setter)
OpenDSSDirect.ReduceCkt.EditString
— MethodEditString(dss::DSSContext) -> String
Edit String for RemoveBranches functions (Getter)
OpenDSSDirect.ReduceCkt.EnergyMeter
— MethodEnergyMeter(dss::DSSContext, Value::String)
Name of Energymeter to use for reduction (Setter)
OpenDSSDirect.ReduceCkt.EnergyMeter
— MethodEnergyMeter(dss::DSSContext) -> String
Name of Energymeter to use for reduction (Getter)
OpenDSSDirect.ReduceCkt.KeepLoad
— MethodKeepLoad(dss::DSSContext, Value::Bool)
Keep load flag (T/F) for Reduction options that remove branches (Setter)
OpenDSSDirect.ReduceCkt.KeepLoad
— MethodKeepLoad(dss::DSSContext) -> Bool
Keep load flag (T/F) for Reduction options that remove branches (Getter)
OpenDSSDirect.ReduceCkt.SaveCircuit
— MethodSaveCircuit(dss::DSSContext, CktName::String)
Save present (reduced) circuit Filename is listed in the Text Result interface
OpenDSSDirect.ReduceCkt.StartPDElement
— MethodStartPDElement(dss::DSSContext, Value::String)
Start element for Remove Branch function (Setter)
OpenDSSDirect.ReduceCkt.StartPDElement
— MethodStartPDElement(dss::DSSContext) -> String
Start element for Remove Branch function (Getter)
OpenDSSDirect.ReduceCkt.Zmag
— MethodZmag(dss::DSSContext, Value::Float64)
Zmag (ohms) for Reduce Option for Z of short lines (Setter)
OpenDSSDirect.ReduceCkt.Zmag
— MethodZmag(dss::DSSContext) -> Float64
Zmag (ohms) for Reduce Option for Z of short lines (Getter)
RegControls
OpenDSSDirect.RegControls.AllNames
— MethodAllNames(dss::DSSContext) -> Vector{String}
Array of strings containing all RegControl names
OpenDSSDirect.RegControls.CTPrimary
— MethodCTPrimary(dss::DSSContext, Value::Float64)
CT primary ampere rating (secondary is 0.2 amperes) (Setter)
OpenDSSDirect.RegControls.CTPrimary
— MethodCTPrimary(dss::DSSContext) -> Float64
CT primary ampere rating (secondary is 0.2 amperes) (Getter)
OpenDSSDirect.RegControls.Count
— MethodCount(dss::DSSContext) -> Int64
Number of RegControl objects in Active Circuit
OpenDSSDirect.RegControls.Delay
— MethodDelay(dss::DSSContext, Value::Float64)
Time delay [s] after arming before the first tap change. Control may reset before actually changing taps. (Setter)
OpenDSSDirect.RegControls.Delay
— MethodDelay(dss::DSSContext) -> Float64
Time delay [s] after arming before the first tap change. Control may reset before actually changing taps. (Getter)
OpenDSSDirect.RegControls.First
— MethodFirst(dss::DSSContext) -> Int64
Sets the first RegControl active. Returns 0 if none.
OpenDSSDirect.RegControls.ForwardBand
— MethodForwardBand(dss::DSSContext, Value::Float64)
Regulation bandwidth in forward direciton, centered on Vreg (Setter)
OpenDSSDirect.RegControls.ForwardBand
— MethodForwardBand(dss::DSSContext) -> Float64
Regulation bandwidth in forward direciton, centered on Vreg (Getter)
OpenDSSDirect.RegControls.ForwardR
— MethodForwardR(dss::DSSContext, Value::Float64)
LDC R setting in Volts (Setter)
OpenDSSDirect.RegControls.ForwardR
— MethodForwardR(dss::DSSContext) -> Float64
LDC R setting in Volts (Getter)
OpenDSSDirect.RegControls.ForwardVreg
— MethodForwardVreg(dss::DSSContext, Value::Float64)
Target voltage in the forward direction, on PT secondary base. (Setter)
OpenDSSDirect.RegControls.ForwardVreg
— MethodForwardVreg(dss::DSSContext) -> Float64
Target voltage in the forward direction, on PT secondary base. (Getter)
OpenDSSDirect.RegControls.ForwardX
— MethodForwardX(dss::DSSContext, Value::Float64)
LDC X setting in Volts (Setter)
OpenDSSDirect.RegControls.ForwardX
— MethodForwardX(dss::DSSContext) -> Float64
LDC X setting in Volts (Getter)
OpenDSSDirect.RegControls.Idx
— MethodIdx(dss::DSSContext, Value::Int64)
RegControl Index (Setter)
OpenDSSDirect.RegControls.Idx
— MethodIdx(dss::DSSContext) -> Int64
RegControl Index (Getter)
OpenDSSDirect.RegControls.IsInverseTime
— MethodIsInverseTime(dss::DSSContext, Value::Bool)
Time delay is inversely adjsuted, proportinal to the amount of voltage outside the regulating band. (Setter)
OpenDSSDirect.RegControls.IsInverseTime
— MethodIsInverseTime(dss::DSSContext) -> Bool
Time delay is inversely adjsuted, proportinal to the amount of voltage outside the regulating band. (Getter)
OpenDSSDirect.RegControls.IsReversible
— MethodIsReversible(dss::DSSContext, Value::Bool)
Regulator can use different settings in the reverse direction. Usually not applicable to substation transformers. (Setter)
OpenDSSDirect.RegControls.IsReversible
— MethodIsReversible(dss::DSSContext) -> Bool
Regulator can use different settings in the reverse direction. Usually not applicable to substation transformers. (Getter)
OpenDSSDirect.RegControls.MaxTapChange
— MethodMaxTapChange(dss::DSSContext, Value::Float64)
Maximum tap change per iteration in STATIC solution mode. 1 is more realistic, 16 is the default for a faster solution. (Setter)
OpenDSSDirect.RegControls.MaxTapChange
— MethodMaxTapChange(dss::DSSContext) -> Float64
Maximum tap change per iteration in STATIC solution mode. 1 is more realistic, 16 is the default for a faster solution. (Getter)
OpenDSSDirect.RegControls.MonitoredBus
— MethodMonitoredBus(dss::DSSContext, Value::String)
Name of a remote regulated bus, in lieu of LDC settings (Setter)
OpenDSSDirect.RegControls.MonitoredBus
— MethodMonitoredBus(dss::DSSContext) -> String
Name of a remote regulated bus, in lieu of LDC settings (Getter)
OpenDSSDirect.RegControls.Name
— MethodName(dss::DSSContext, Value::String)
Active RegControl name (Setter)
OpenDSSDirect.RegControls.Name
— MethodName(dss::DSSContext) -> String
Active RegControl name (Getter)
OpenDSSDirect.RegControls.Next
— MethodNext(dss::DSSContext) -> Int64
Sets the next RegControl active. Returns 0 if none.
OpenDSSDirect.RegControls.PTRatio
— MethodPTRatio(dss::DSSContext, Value::Float64)
PT ratio for voltage control settings (Setter)
OpenDSSDirect.RegControls.PTRatio
— MethodPTRatio(dss::DSSContext) -> Float64
PT ratio for voltage control settings (Getter)
OpenDSSDirect.RegControls.ReverseBand
— MethodReverseBand(dss::DSSContext, Value::Float64)
Bandwidth in reverse direction, centered on reverse Vreg. (Setter)
OpenDSSDirect.RegControls.ReverseBand
— MethodReverseBand(dss::DSSContext) -> Float64
Bandwidth in reverse direction, centered on reverse Vreg. (Getter)
OpenDSSDirect.RegControls.ReverseR
— MethodReverseR(dss::DSSContext, Value::Float64)
Reverse LDC R setting in Volts. (Setter)
OpenDSSDirect.RegControls.ReverseR
— MethodReverseR(dss::DSSContext) -> Float64
Reverse LDC R setting in Volts. (Getter)
OpenDSSDirect.RegControls.ReverseVreg
— MethodReverseVreg(dss::DSSContext, Value::Float64)
Target voltage in the revese direction, on PT secondary base. (Setter)
OpenDSSDirect.RegControls.ReverseVreg
— MethodReverseVreg(dss::DSSContext) -> Float64
Target voltage in the revese direction, on PT secondary base. (Getter)
OpenDSSDirect.RegControls.ReverseX
— MethodReverseX(dss::DSSContext, Value::Float64)
Reverse LDC X setting in volts. (Setter)
OpenDSSDirect.RegControls.ReverseX
— MethodReverseX(dss::DSSContext) -> Float64
Reverse LDC X setting in volts. (Getter)
OpenDSSDirect.RegControls.TapDelay
— MethodTapDelay(dss::DSSContext, Value::Float64)
Time delay [s] for subsequent tap changes in a set. Control may reset before actually changing taps. (Setter)
OpenDSSDirect.RegControls.TapDelay
— MethodTapDelay(dss::DSSContext) -> Float64
Time delay [s] for subsequent tap changes in a set. Control may reset before actually changing taps. (Getter)
OpenDSSDirect.RegControls.TapNumber
— MethodTapNumber(dss::DSSContext, Value::Int64)
Integer number of the tap that the controlled transformer winding is currentliy on. (Setter)
OpenDSSDirect.RegControls.TapNumber
— MethodTapNumber(dss::DSSContext) -> Int64
Integer number of the tap that the controlled transformer winding is currentliy on. (Getter)
OpenDSSDirect.RegControls.TapWinding
— MethodTapWinding(dss::DSSContext, Value::Int64)
Tapped winding number (Setter)
OpenDSSDirect.RegControls.TapWinding
— MethodTapWinding(dss::DSSContext) -> Int64
Tapped winding number (Getter)
OpenDSSDirect.RegControls.Transformer
— MethodTransformer(dss::DSSContext, Value::String)
Name of the transformer this regulator controls (Setter)
OpenDSSDirect.RegControls.Transformer
— MethodTransformer(dss::DSSContext) -> String
Name of the transformer this regulator controls (Getter)
OpenDSSDirect.RegControls.VoltageLimit
— MethodVoltageLimit(dss::DSSContext, Value::Float64)
First house voltage limit on PT secondary base. Setting to 0 disables this function. (Setter)
OpenDSSDirect.RegControls.VoltageLimit
— MethodVoltageLimit(dss::DSSContext) -> Float64
First house voltage limit on PT secondary base. Setting to 0 disables this function. (Getter)
OpenDSSDirect.RegControls.Winding
— MethodWinding(dss::DSSContext, Value::Float64)
Winding number for PT and CT connections (Setter)
OpenDSSDirect.RegControls.Winding
— MethodWinding(dss::DSSContext) -> Float64
Winding number for PT and CT connections (Getter)
Relays
OpenDSSDirect.Relays.AllNames
— MethodAllNames(dss::DSSContext) -> Vector{String}
Array of strings containing names of all Relay elements
OpenDSSDirect.Relays.Close
— MethodClose(dss::DSSContext)
Close the switched object controlled by the relay. Resets relay to first operation.
OpenDSSDirect.Relays.Count
— MethodCount(dss::DSSContext) -> Int64
Number of Relays in circuit
OpenDSSDirect.Relays.First
— MethodFirst(dss::DSSContext) -> Int64
Set First Relay active. If none, returns 0.
OpenDSSDirect.Relays.Idx
— MethodIdx(dss::DSSContext, Value::Int64)
Active Relay by index into the Relay list. 1..Count (Setter)
OpenDSSDirect.Relays.Idx
— MethodIdx(dss::DSSContext) -> Int64
Active Relay by index into the Relay list. 1..Count (Getter)
OpenDSSDirect.Relays.MonitoredObj
— MethodMonitoredObj(dss::DSSContext, Value::String)
Full name of object this Relay is monitoring. (Setter)
OpenDSSDirect.Relays.MonitoredObj
— MethodMonitoredObj(dss::DSSContext) -> String
Full name of object this Relay is monitoring. (Getter)
OpenDSSDirect.Relays.MonitoredTerm
— MethodMonitoredTerm(dss::DSSContext, Value::Int64)
Number of terminal of monitored element that this Relay is monitoring. (Setter)
OpenDSSDirect.Relays.MonitoredTerm
— MethodMonitoredTerm(dss::DSSContext) -> Int64
Number of terminal of monitored element that this Relay is monitoring. (Getter)
OpenDSSDirect.Relays.Name
— MethodName(dss::DSSContext, Value::String)
Name of active relay. (Setter)
OpenDSSDirect.Relays.Name
— MethodName(dss::DSSContext) -> String
Name of active relay. (Getter)
OpenDSSDirect.Relays.Next
— MethodNext(dss::DSSContext) -> Int64
Advance to next Relay object. Returns 0 when no more relays.
OpenDSSDirect.Relays.NormalState
— MethodNormalState(
dss::DSSContext,
Value::Union{Int64, OpenDSSDirect.Lib.ActionCodes}
)
Get/set normal state of relay. (Setter)
OpenDSSDirect.Relays.NormalState
— MethodNormalState(
dss::DSSContext
) -> OpenDSSDirect.Lib.ActionCodes
Get/set normal state of relay. (Getter)
OpenDSSDirect.Relays.Open
— MethodOpen(dss::DSSContext)
Open relay's controlled element and lock out the relay.
OpenDSSDirect.Relays.Reset
— MethodReset(dss::DSSContext)
Reset relay to normal state. If open, lock out the relay. If closed, resets relay to first operation.
OpenDSSDirect.Relays.State
— MethodState(
dss::DSSContext,
Value::Union{Int64, OpenDSSDirect.Lib.ActionCodes}
)
Get/Set present state of relay. (Setter) If set to open (ActionCodes.Open = 1), open relay's controlled element and lock out the relay. If set to close (ActionCodes.Close = 2), close relay's controlled element and resets relay to first operation.
OpenDSSDirect.Relays.State
— MethodState(dss::DSSContext) -> OpenDSSDirect.Lib.ActionCodes
Get/Set present state of relay. (Getter) If set to open (ActionCodes.Open = 1), open relay's controlled element and lock out the relay. If set to close (ActionCodes.Close = 2), close relay's controlled element and resets relay to first operation.
OpenDSSDirect.Relays.SwitchedObj
— MethodSwitchedObj(dss::DSSContext, Value::String)
Full name of element that will be switched when relay trips. (Setter)
OpenDSSDirect.Relays.SwitchedObj
— MethodSwitchedObj(dss::DSSContext) -> String
Full name of element that will be switched when relay trips. (Getter)
OpenDSSDirect.Relays.SwitchedTerm
— MethodSwitchedTerm(dss::DSSContext, Value::Int64)
Terminal number of the switched object that will be opened when the relay trips. (Setter)
OpenDSSDirect.Relays.SwitchedTerm
— MethodSwitchedTerm(dss::DSSContext) -> Int64
Terminal number of the switched object that will be opened when the relay trips. (Getter)
Sensors
OpenDSSDirect.Sensors.AllNames
— MethodAllNames(dss::DSSContext) -> Vector{String}
Array of Sensor names.
OpenDSSDirect.Sensors.AllocationFactor
— MethodAllocationFactor(dss::DSSContext) -> Vector{Float64}
Array of doubles for the allocation factors for each phase.
OpenDSSDirect.Sensors.Count
— MethodCount(dss::DSSContext) -> Int64
Number of Sensors in Active Circuit.
OpenDSSDirect.Sensors.Currents
— MethodCurrents(dss::DSSContext, Value::Vector{Float64})
Array of doubles for the line current measurements; don't use with kW and kVAR. (Setter)
OpenDSSDirect.Sensors.Currents
— MethodCurrents(dss::DSSContext) -> Vector{Float64}
Array of doubles for the line current measurements; don't use with kW and kVAR. (Getter)
OpenDSSDirect.Sensors.First
— MethodFirst(dss::DSSContext) -> Int64
Sets the first sensor active. Returns 0 if none.
OpenDSSDirect.Sensors.Idx
— MethodIdx(dss::DSSContext, Value::Int64)
Sensor Index (Setter)
OpenDSSDirect.Sensors.Idx
— MethodIdx(dss::DSSContext) -> Int64
Sensor Index (Getter)
OpenDSSDirect.Sensors.IsDelta
— MethodIsDelta(dss::DSSContext, Value::Bool)
True if measured voltages are line-line. Currents are always line currents. (Setter)
OpenDSSDirect.Sensors.IsDelta
— MethodIsDelta(dss::DSSContext) -> Bool
True if measured voltages are line-line. Currents are always line currents. (Getter)
OpenDSSDirect.Sensors.MeteredElement
— MethodMeteredElement(dss::DSSContext, Value::String)
Full Name of the measured element (Setter)
OpenDSSDirect.Sensors.MeteredElement
— MethodMeteredElement(dss::DSSContext) -> String
Full Name of the measured element (Getter)
OpenDSSDirect.Sensors.MeteredTerminal
— MethodMeteredTerminal(dss::DSSContext, Value::Int64)
Number of the measured terminal in the measured element. (Setter)
OpenDSSDirect.Sensors.MeteredTerminal
— MethodMeteredTerminal(dss::DSSContext) -> Int64
Number of the measured terminal in the measured element. (Getter)
OpenDSSDirect.Sensors.Name
— MethodName(dss::DSSContext, Value::String)
Name of the active sensor. (Setter)
OpenDSSDirect.Sensors.Name
— MethodName(dss::DSSContext) -> String
Name of the active sensor. (Getter)
OpenDSSDirect.Sensors.Next
— MethodNext(dss::DSSContext) -> Int64
Sets the next Sensor active. Returns 0 if no more.
OpenDSSDirect.Sensors.PctError
— MethodPctError(dss::DSSContext, Value::Int64)
Assumed percent error in the Sensor measurement. Default is 1. (Setter)
OpenDSSDirect.Sensors.PctError
— MethodPctError(dss::DSSContext) -> Int64
Assumed percent error in the Sensor measurement. Default is 1. (Getter)
OpenDSSDirect.Sensors.ReverseDelta
— MethodReverseDelta(dss::DSSContext, Value::Bool)
True if voltage measurements are 1-3, 3-2, 2-1. (Setter)
OpenDSSDirect.Sensors.ReverseDelta
— MethodReverseDelta(dss::DSSContext) -> Bool
True if voltage measurements are 1-3, 3-2, 2-1. (Getter)
OpenDSSDirect.Sensors.Weight
— MethodWeight(dss::DSSContext, Value::Float64)
Weighting factor for this Sensor measurement with respect to other Sensors. Default is 1. (Setter)
OpenDSSDirect.Sensors.Weight
— MethodWeight(dss::DSSContext) -> Float64
Weighting factor for this Sensor measurement with respect to other Sensors. Default is 1. (Getter)
OpenDSSDirect.Sensors.kVBase
— MethodkVBase(dss::DSSContext, Value::Float64)
Voltage base for the sensor measurements. LL for 2 and 3-phase sensors, LN for 1-phase sensors. (Setter)
OpenDSSDirect.Sensors.kVBase
— MethodkVBase(dss::DSSContext) -> Float64
Voltage base for the sensor measurements. LL for 2 and 3-phase sensors, LN for 1-phase sensors. (Getter)
OpenDSSDirect.Sensors.kVS
— MethodkVS(dss::DSSContext, Value::Vector{Float64})
Array of doubles for the LL or LN (depending on Delta connection) voltage measurements. (Setter)
OpenDSSDirect.Sensors.kVS
— MethodkVS(dss::DSSContext) -> Vector{Float64}
Array of doubles for the LL or LN (depending on Delta connection) voltage measurements. (Getter)
OpenDSSDirect.Sensors.kW
— MethodkW(dss::DSSContext, Value::Vector{Float64})
Array of doubles for P measurements. Overwrites Currents with a new estimate using kVAR. (Setter)
OpenDSSDirect.Sensors.kW
— MethodkW(dss::DSSContext) -> Vector{Float64}
Array of doubles for P measurements. Overwrites Currents with a new estimate using kVAR. (Getter)
OpenDSSDirect.Sensors.kvar
— Methodkvar(dss::DSSContext, Value::Vector{Float64})
Array of doubles for Q measurements. Overwrites Currents with a new estimate using kW. (Setter)
OpenDSSDirect.Sensors.kvar
— Methodkvar(dss::DSSContext) -> Vector{Float64}
Array of doubles for Q measurements. Overwrites Currents with a new estimate using kW. (Getter)
Settings
OpenDSSDirect.Settings.AllocationFactors
— MethodAllocationFactors(dss::DSSContext, Value::Float64)
Sets all load allocation factors for all loads defined by XFKVA property to this value (Setter)
OpenDSSDirect.Settings.AllowDuplicates
— MethodAllowDuplicates(dss::DSSContext, Value::Bool)
{True | False*} Designates whether to allow duplicate names of objects (Setter)
OpenDSSDirect.Settings.AllowDuplicates
— MethodAllowDuplicates(dss::DSSContext) -> Bool
{True | False*} Designates whether to allow duplicate names of objects (Getter)
OpenDSSDirect.Settings.AutoBusList
— MethodAutoBusList(dss::DSSContext, Value::String)
List of Buses or (File=xxxx) syntax for the AutoAdd solution mode. (Setter)
OpenDSSDirect.Settings.AutoBusList
— MethodAutoBusList(dss::DSSContext) -> String
List of Buses or (File=xxxx) syntax for the AutoAdd solution mode. (Getter)
OpenDSSDirect.Settings.CktModel
— MethodCktModel(
dss::DSSContext,
Value::Union{Int64, OpenDSSDirect.Lib.CktModels}
)
{dssMultiphase * | dssPositiveSeq} IIndicate if the circuit model is positive sequence. (Setter)
OpenDSSDirect.Settings.CktModel
— MethodCktModel(dss::DSSContext) -> OpenDSSDirect.Lib.CktModels
{dssMultiphase * | dssPositiveSeq} IIndicate if the circuit model is positive sequence. (Getter)
OpenDSSDirect.Settings.ControlTrace
— MethodControlTrace(dss::DSSContext, Value::Bool)
{True | False*} Denotes whether to trace the control actions to a file. (Setter)
OpenDSSDirect.Settings.ControlTrace
— MethodControlTrace(dss::DSSContext) -> Bool
{True | False*} Denotes whether to trace the control actions to a file. (Getter)
OpenDSSDirect.Settings.EmergVmaxpu
— MethodEmergVmaxpu(dss::DSSContext, Value::Float64)
Per Unit maximum voltage for Emergency conditions. (Setter)
OpenDSSDirect.Settings.EmergVmaxpu
— MethodEmergVmaxpu(dss::DSSContext) -> Float64
Per Unit maximum voltage for Emergency conditions. (Getter)
OpenDSSDirect.Settings.EmergVminpu
— MethodEmergVminpu(dss::DSSContext, Value::Float64)
Per Unit minimum voltage for Emergency conditions. (Setter)
OpenDSSDirect.Settings.EmergVminpu
— MethodEmergVminpu(dss::DSSContext) -> Float64
Per Unit minimum voltage for Emergency conditions. (Getter)
OpenDSSDirect.Settings.IterateDisabled
— MethodIterateDisabled(dss::DSSContext, Value::Bool)
Controls whether First
/Next
iteration includes or skips disabled circuit elements. The default behavior from OpenDSS is to skip those. The user can still activate the element by name or index.
The default value for IterateDisabled is 0, keeping the original behavior. Set it to 1 (or True
) to include disabled elements. Other numeric values are reserved for other potential behaviors.
(Setter) (API Extension)
OpenDSSDirect.Settings.IterateDisabled
— MethodIterateDisabled(dss::DSSContext) -> Bool
Controls whether First
/Next
iteration includes or skips disabled circuit elements. The default behavior from OpenDSS is to skip those. The user can still activate the element by name or index.
The default value for IterateDisabled is 0, keeping the original behavior. Set it to 1 (or True
) to include disabled elements. Other numeric values are reserved for other potential behaviors.
(Getter) (API Extension)
OpenDSSDirect.Settings.LoadsTerminalCheck
— MethodLoadsTerminalCheck(dss::DSSContext, Value::Bool)
Get/Set the state of terminal checking in all load elements. (Setter)
This controls whether the terminals are checked when updating the currents in Load component. Defaults to true. If the loads are guaranteed to have their terminals closed throughout the simulation, this can be set to false to save some time.
(API Extension)
OpenDSSDirect.Settings.LoadsTerminalCheck
— MethodLoadsTerminalCheck(dss::DSSContext) -> Bool
Get/Set the state of terminal checking in all load elements. (Getter)
This controls whether the terminals are checked when updating the currents in Load component. Defaults to true. If the loads are guaranteed to have their terminals closed throughout the simulation, this can be set to false to save some time.
(API Extension)
OpenDSSDirect.Settings.LossRegs
— MethodLossRegs(dss::DSSContext, Value::Vector{Int64})
Integer array defining which energy meter registers to use for computing losses (Setter)
OpenDSSDirect.Settings.LossRegs
— MethodLossRegs(dss::DSSContext) -> Vector{Int64}
Integer array defining which energy meter registers to use for computing losses (Getter)
OpenDSSDirect.Settings.LossWeight
— MethodLossWeight(dss::DSSContext, Value::Float64)
Weighting factor applied to Loss register values. (Setter)
OpenDSSDirect.Settings.LossWeight
— MethodLossWeight(dss::DSSContext) -> Float64
Weighting factor applied to Loss register values. (Getter)
OpenDSSDirect.Settings.NormVmaxpu
— MethodNormVmaxpu(dss::DSSContext, Value::Float64)
Per Unit maximum voltage for Normal conditions. (Setter)
OpenDSSDirect.Settings.NormVmaxpu
— MethodNormVmaxpu(dss::DSSContext) -> Float64
Per Unit maximum voltage for Normal conditions. (Getter)
OpenDSSDirect.Settings.NormVminpu
— MethodNormVminpu(dss::DSSContext, Value::Float64)
Per Unit minimum voltage for Normal conditions. (Setter)
OpenDSSDirect.Settings.NormVminpu
— MethodNormVminpu(dss::DSSContext) -> Float64
Per Unit minimum voltage for Normal conditions. (Getter)
OpenDSSDirect.Settings.PriceCurve
— MethodPriceCurve(dss::DSSContext, Value::String)
Name of LoadShape object that serves as the source of price signal data for yearly simulations, etc. (Setter)
OpenDSSDirect.Settings.PriceCurve
— MethodPriceCurve(dss::DSSContext) -> String
Name of LoadShape object that serves as the source of price signal data for yearly simulations, etc. (Getter)
OpenDSSDirect.Settings.PriceSignal
— MethodPriceSignal(dss::DSSContext, Value::Float64)
Price Signal for the Circuit (Setter)
OpenDSSDirect.Settings.PriceSignal
— MethodPriceSignal(dss::DSSContext) -> Float64
Price Signal for the Circuit (Getter)
OpenDSSDirect.Settings.Trapezoidal
— MethodTrapezoidal(dss::DSSContext, Value::Bool)
{True | False *} Gets value of trapezoidal integration flag in energy meters. (Setter)
OpenDSSDirect.Settings.Trapezoidal
— MethodTrapezoidal(dss::DSSContext) -> Bool
{True | False *} Gets value of trapezoidal integration flag in energy meters. (Getter)
OpenDSSDirect.Settings.UERegs
— MethodUERegs(dss::DSSContext, Value::Vector{Int64})
Array of Integers defining energy meter registers to use for computing UE (Setter)
OpenDSSDirect.Settings.UERegs
— MethodUERegs(dss::DSSContext) -> Vector{Int64}
Array of Integers defining energy meter registers to use for computing UE (Getter)
OpenDSSDirect.Settings.UEWeight
— MethodUEWeight(dss::DSSContext, Value::Float64)
Weighting factor applied to UE register values. (Setter)
OpenDSSDirect.Settings.UEWeight
— MethodUEWeight(dss::DSSContext) -> Float64
Weighting factor applied to UE register values. (Getter)
OpenDSSDirect.Settings.VoltageBases
— MethodVoltageBases(dss::DSSContext, Value::Vector{Float64})
Array of doubles defining the legal voltage bases in kV L-L (Setter)
OpenDSSDirect.Settings.VoltageBases
— MethodVoltageBases(dss::DSSContext) -> Vector{Float64}
Array of doubles defining the legal voltage bases in kV L-L (Getter)
OpenDSSDirect.Settings.ZoneLock
— MethodZoneLock(dss::DSSContext, Value::Bool)
{True | False*} Locks Zones on energy meters to prevent rebuilding if a circuit change occurs. (Setter)
OpenDSSDirect.Settings.ZoneLock
— MethodZoneLock(dss::DSSContext) -> Bool
{True | False*} Locks Zones on energy meters to prevent rebuilding if a circuit change occurs. (Getter)
Solution
OpenDSSDirect.Solution.AddType
— MethodAddType(
dss::DSSContext,
Value::Union{Int64, OpenDSSDirect.Lib.AutoAddTypes}
)
Type of device to add in AutoAdd Mode: {dssGen (Default) | dssCap} (Setter)
OpenDSSDirect.Solution.AddType
— MethodAddType(dss::DSSContext) -> OpenDSSDirect.Lib.AutoAddTypes
Type of device to add in AutoAdd Mode: {dssGen (Default) | dssCap} (Getter)
OpenDSSDirect.Solution.Algorithm
— MethodAlgorithm(
dss::DSSContext,
Value::Union{Int64, OpenDSSDirect.Lib.SolutionAlgorithms}
)
Base Solution algorithm: {dssNormalSolve | dssNewtonSolve} (Setter)
OpenDSSDirect.Solution.Algorithm
— MethodAlgorithm(
dss::DSSContext
) -> OpenDSSDirect.Lib.SolutionAlgorithms
Base Solution algorithm: {dssNormalSolve | dssNewtonSolve} (Getter)
OpenDSSDirect.Solution.BuildYMatrix
— MethodBuildYMatrix(
dss::DSSContext,
BuildOption::Int64,
AllocateVI::Int64
)
Build Y Matrix
OpenDSSDirect.Solution.BusLevels
— MethodBusLevels(dss::DSSContext) -> Vector{Int32}
BusLevels
OpenDSSDirect.Solution.Capkvar
— MethodCapkvar(dss::DSSContext, Value::Float64)
Capacitor kvar for adding capacitors in AutoAdd mode (Setter)
OpenDSSDirect.Solution.Capkvar
— MethodCapkvar(dss::DSSContext) -> Float64
Capacitor kvar for adding capacitors in AutoAdd mode (Getter)
OpenDSSDirect.Solution.CheckControls
— MethodCheckControls(dss::DSSContext)
Check Controls
OpenDSSDirect.Solution.CheckFaultStatus
— MethodCheckFaultStatus(dss::DSSContext)
Check Fault Status
OpenDSSDirect.Solution.Cleanup
— MethodCleanup(dss::DSSContext)
Clean up Solution
OpenDSSDirect.Solution.ControlActionsDone
— MethodControlActionsDone(dss::DSSContext, Value::Bool)
Flag indicating the control actions are done. (Setter)
OpenDSSDirect.Solution.ControlActionsDone
— MethodControlActionsDone(dss::DSSContext) -> Bool
Flag indicating the control actions are done. (Getter)
OpenDSSDirect.Solution.ControlIterations
— MethodControlIterations(dss::DSSContext, Value::Int64)
Value of the control iteration counter (Setter)
OpenDSSDirect.Solution.ControlIterations
— MethodControlIterations(dss::DSSContext) -> Int64
Value of the control iteration counter (Getter)
OpenDSSDirect.Solution.ControlMode
— MethodControlMode(
dss::DSSContext,
Value::Union{Int64, OpenDSSDirect.Lib.ControlModes}
)
{dssStatic* | dssEvent | dssTime} Modes for control devices (Setter)
OpenDSSDirect.Solution.ControlMode
— MethodControlMode(
dss::DSSContext
) -> OpenDSSDirect.Lib.ControlModes
{dssStatic* | dssEvent | dssTime} Modes for control devices (Getter)
OpenDSSDirect.Solution.Converged
— MethodConverged(dss::DSSContext, Value::Bool)
Flag to indicate whether the circuit solution converged (Setter)
OpenDSSDirect.Solution.Converged
— MethodConverged(dss::DSSContext) -> Bool
Flag to indicate whether the circuit solution converged (Getter)
OpenDSSDirect.Solution.Convergence
— MethodConvergence(dss::DSSContext, Value::Float64)
Solution convergence tolerance.
OpenDSSDirect.Solution.Convergence
— MethodConvergence(dss::DSSContext) -> Float64
Solution convergence tolerance.
OpenDSSDirect.Solution.DblHour
— MethodDblHour(dss::DSSContext, Value::Float64)
Hour as a double, including fractional part (Setter)
OpenDSSDirect.Solution.DblHour
— MethodDblHour(dss::DSSContext) -> Float64
Hour as a double, including fractional part (Getter)
OpenDSSDirect.Solution.DefaultDaily
— MethodDefaultDaily(dss::DSSContext, Value::String)
Default daily load shape (defaults to "Default") (Setter)
OpenDSSDirect.Solution.DefaultDaily
— MethodDefaultDaily(dss::DSSContext) -> String
Default daily load shape (defaults to "Default") (Getter)
OpenDSSDirect.Solution.DefaultYearly
— MethodDefaultYearly(dss::DSSContext, Value::String)
Default Yearly load shape (defaults to "Default") (Setter)
OpenDSSDirect.Solution.DefaultYearly
— MethodDefaultYearly(dss::DSSContext) -> String
Default Yearly load shape (defaults to "Default") (Getter)
OpenDSSDirect.Solution.DoControlActions
— MethodDoControlActions(dss::DSSContext)
Do Control Actions
OpenDSSDirect.Solution.EventLog
— MethodEventLog(dss::DSSContext) -> Vector{String}
Array of strings containing the Event Log
OpenDSSDirect.Solution.FinishTimeStep
— MethodFinishTimeStep(dss::DSSContext)
Finish Time Step
OpenDSSDirect.Solution.Frequency
— MethodFrequency(dss::DSSContext, Value::Float64)
Set the Frequency for next solution (Setter)
OpenDSSDirect.Solution.Frequency
— MethodFrequency(dss::DSSContext) -> Float64
Set the Frequency for next solution (Getter)
OpenDSSDirect.Solution.GenMult
— MethodGenMult(dss::DSSContext, Value::Float64)
Default Multiplier applied to generators (like LoadMult) (Setter)
OpenDSSDirect.Solution.GenMult
— MethodGenMult(dss::DSSContext) -> Float64
Default Multiplier applied to generators (like LoadMult) (Getter)
OpenDSSDirect.Solution.GenPF
— MethodGenPF(dss::DSSContext, Value::Float64)
PF for generators in AutoAdd mode (Setter)
OpenDSSDirect.Solution.GenPF
— MethodGenPF(dss::DSSContext) -> Float64
PF for generators in AutoAdd mode (Getter)
OpenDSSDirect.Solution.GenkW
— MethodGenkW(dss::DSSContext, Value::Float64)
Generator kW for AutoAdd mode (Setter)
OpenDSSDirect.Solution.GenkW
— MethodGenkW(dss::DSSContext) -> Float64
Generator kW for AutoAdd mode (Getter)
OpenDSSDirect.Solution.Hour
— MethodHour(dss::DSSContext, Value::Float64)
Set Hour for time series solutions. (Setter)
OpenDSSDirect.Solution.Hour
— MethodHour(dss::DSSContext) -> Float64
Set Hour for time series solutions. (Getter)
OpenDSSDirect.Solution.IncMatrix
— MethodIncMatrix(dss::DSSContext) -> Vector{Int32}
Returns the data from the incidence matrix, if calculated
OpenDSSDirect.Solution.IncMatrixCols
— MethodIncMatrixCols(dss::DSSContext) -> Vector{String}
Element names for the columns of the incidence matrix, if calculated
OpenDSSDirect.Solution.IncMatrixRows
— MethodIncMatrixRows(dss::DSSContext) -> Vector{String}
Element names for the rows of the incidence matrix, if calculated
OpenDSSDirect.Solution.InitSnap
— MethodInitSnap(dss::DSSContext)
Initialize Snapshot Solution
OpenDSSDirect.Solution.IntervalHrs
— MethodIntervalHrs(dss::DSSContext, Value::Float64)
Solution.IntervalHrs variable used for devices that integrate for custom solution algorithms (Setter)
OpenDSSDirect.Solution.IntervalHrs
— MethodIntervalHrs(dss::DSSContext) -> Float64
Solution.IntervalHrs variable used for devices that integrate for custom solution algorithms (Getter)
OpenDSSDirect.Solution.Iterations
— MethodIterations(dss::DSSContext) -> Int64
Number of iterations taken for last solution. (Same as TotalIterations)
OpenDSSDirect.Solution.LDCurve
— MethodLDCurve(dss::DSSContext, Value::String)
Load-Duration Curve name for LD modes
OpenDSSDirect.Solution.LDCurve
— MethodLDCurve(dss::DSSContext) -> String
Load-Duration Curve name for LD modes
OpenDSSDirect.Solution.Laplacian
— MethodLaplacian(dss::DSSContext) -> Vector{Int32}
Returns the data from the Laplacian, if calculated
OpenDSSDirect.Solution.LoadModel
— MethodLoadModel(
dss::DSSContext,
Value::Union{Int64, OpenDSSDirect.Lib.SolutionLoadModels}
)
Load Model: {dssPowerFlow (default) | dssAdmittance}
OpenDSSDirect.Solution.LoadModel
— MethodLoadModel(
dss::DSSContext
) -> OpenDSSDirect.Lib.SolutionLoadModels
Load Model: {dssPowerFlow (default) | dssAdmittance}
OpenDSSDirect.Solution.LoadMult
— MethodLoadMult(dss::DSSContext, Value::Float64)
Default load multiplier applied to all non-fixed loads
OpenDSSDirect.Solution.LoadMult
— MethodLoadMult(dss::DSSContext) -> Float64
Default load multiplier applied to all non-fixed loads
OpenDSSDirect.Solution.MaxControlIterations
— MethodMaxControlIterations(dss::DSSContext, Value::Int64)
Maximum allowable control iterations
OpenDSSDirect.Solution.MaxControlIterations
— MethodMaxControlIterations(dss::DSSContext) -> Int64
Maximum allowable control iterations
OpenDSSDirect.Solution.MaxIterations
— MethodMaxIterations(dss::DSSContext, Value::Int64)
Max allowable iterations.
OpenDSSDirect.Solution.MaxIterations
— MethodMaxIterations(dss::DSSContext) -> Int64
Max allowable iterations.
OpenDSSDirect.Solution.MinIterations
— MethodMinIterations(dss::DSSContext, Value::Int64)
(read) Minimum number of iterations required for a power flow solution. (write) Mininum number of iterations required for a power flow solution.
OpenDSSDirect.Solution.MinIterations
— MethodMinIterations(dss::DSSContext) -> Int64
(read) Minimum number of iterations required for a power flow solution. (write) Mininum number of iterations required for a power flow solution.
OpenDSSDirect.Solution.Mode
— MethodMode(
dss::DSSContext,
Value::Union{Int64, OpenDSSDirect.Lib.SolveModes}
)
Set present solution mode (by a text code - see DSS Help)
OpenDSSDirect.Solution.Mode
— MethodMode(dss::DSSContext) -> OpenDSSDirect.Lib.SolveModes
Get present solution mode (by a text code - see DSS Help)
OpenDSSDirect.Solution.ModeID
— MethodModeID(dss::DSSContext) -> String
ID (text) of the present solution mode
OpenDSSDirect.Solution.MostIterationsDone
— MethodMostIterationsDone(dss::DSSContext) -> Int64
Max number of iterations required to converge at any control iteration of the most recent solution.
OpenDSSDirect.Solution.Number
— MethodNumber(dss::DSSContext, Value::Int64)
Number of solutions to perform for Monte Carlo and time series simulations
OpenDSSDirect.Solution.Number
— MethodNumber(dss::DSSContext) -> Int64
Number of solutions to perform for Monte Carlo and time series simulations
OpenDSSDirect.Solution.PctGrowth
— MethodPctGrowth(dss::DSSContext, Value::Float64)
Percent default annual load growth rate (Setter)
OpenDSSDirect.Solution.PctGrowth
— MethodPctGrowth(dss::DSSContext) -> Float64
Percent default annual load growth rate (Getter)
OpenDSSDirect.Solution.ProcessTime
— MethodProcessTime(dss::DSSContext) -> Float64
Gets the time required to perform the latest solution (Read only)
OpenDSSDirect.Solution.Random
— MethodRandom(
dss::DSSContext,
Value::Union{Int64, OpenDSSDirect.Lib.RandomModes}
)
Randomization mode for random variables "Gaussian" or "Uniform" (Setter)
OpenDSSDirect.Solution.Random
— MethodRandom(dss::DSSContext) -> OpenDSSDirect.Lib.RandomModes
Randomization mode for random variables "Gaussian" or "Uniform" (Getter)
OpenDSSDirect.Solution.SampleControlDevices
— MethodSampleControlDevices(dss::DSSContext)
Sample Control Devices
OpenDSSDirect.Solution.SampleDoControlActions
— MethodSampleDoControlActions(dss::DSSContext)
Sample Do Control Actions
OpenDSSDirect.Solution.Seconds
— MethodSeconds(dss::DSSContext, Value::Float64)
Seconds from top of the hour.
OpenDSSDirect.Solution.Seconds
— MethodSeconds(dss::DSSContext) -> Float64
Seconds from top of the hour.
OpenDSSDirect.Solution.Solve
— MethodSolve(dss::DSSContext)
Solve
OpenDSSDirect.Solution.SolveAll
— MethodSolveAll(dss::DSSContext)
Solves the circuits for all the Actors created
OpenDSSDirect.Solution.SolveDirect
— MethodSolveDirect(dss::DSSContext)
Solve direct
OpenDSSDirect.Solution.SolveNoControl
— MethodSolveNoControl(dss::DSSContext)
Solve no control
OpenDSSDirect.Solution.SolvePFlow
— MethodSolvePFlow(dss::DSSContext)
Solve Power Flow
OpenDSSDirect.Solution.SolvePlusControl
— MethodSolvePlusControl(dss::DSSContext)
Solve Plus Control
OpenDSSDirect.Solution.SolveSnap
— MethodSolveSnap(dss::DSSContext)
Solve Snap
OpenDSSDirect.Solution.StepSize
— MethodStepSize(dss::DSSContext, Value::Float64)
Time step size in sec
OpenDSSDirect.Solution.StepSize
— MethodStepSize(dss::DSSContext) -> Float64
Time step size in sec
OpenDSSDirect.Solution.StepSizeHr
— MethodStepSizeHr(dss::DSSContext, Value::Float64)
Set Stepsize in Hr (Setter)
OpenDSSDirect.Solution.StepSizeMin
— MethodStepSizeMin(dss::DSSContext, Value::Float64)
Set Stepsize in minutes (Setter)
OpenDSSDirect.Solution.SystemYChanged
— MethodSystemYChanged(dss::DSSContext) -> Bool
Flag that indicates if elements of the System Y have been changed by recent activity.
OpenDSSDirect.Solution.TimeTimeStep
— MethodTimeTimeStep(dss::DSSContext) -> Float64
Get the solution process time + sample time for time step
OpenDSSDirect.Solution.TotalIterations
— MethodTotalIterations(dss::DSSContext) -> Int64
Total iterations including control iterations for most recent solution.
OpenDSSDirect.Solution.TotalTime
— MethodTotalTime(dss::DSSContext, Value::Float64)
(read) Gets the accumulated time of the simulation (write) Sets the Accumulated time of the simulation
OpenDSSDirect.Solution.TotalTime
— MethodTotalTime(dss::DSSContext) -> Float64
(read) Gets the accumulated time of the simulation (write) Sets the Accumulated time of the simulation
OpenDSSDirect.Solution.Year
— MethodYear(dss::DSSContext, Value::Int64)
Set year for planning studies (Setter)
OpenDSSDirect.Solution.Year
— MethodYear(dss::DSSContext) -> Int64
Set year for planning studies (Getter)
Storages
OpenDSSDirect.Storages.AllNames
— MethodAllNames(dss::DSSContext) -> Vector{String}
List of strings with all Storage names
OpenDSSDirect.Storages.Count
— MethodCount(dss::DSSContext) -> Int32
Number of Storages
OpenDSSDirect.Storages.First
— MethodFirst(dss::DSSContext) -> Int32
Set first Storage active; returns 0 if none.
OpenDSSDirect.Storages.Idx
— MethodIdx(dss::DSSContext, Value::Int64)
Active Storage by index; 1..Count (Setter)
OpenDSSDirect.Storages.Idx
— MethodIdx(dss::DSSContext) -> Int64
Active Storage by index; 1..Count (Getter)
OpenDSSDirect.Storages.Name
— MethodName(dss::DSSContext, Value::String)
Set the name active Storage by name
OpenDSSDirect.Storages.Name
— MethodName(dss::DSSContext) -> String
Get the name of the active Storage
OpenDSSDirect.Storages.Next
— MethodNext(dss::DSSContext) -> Int32
Sets next Storage active; returns 0 if no more.
OpenDSSDirect.Storages.RegisterNames
— MethodRegisterNames(dss::DSSContext) -> Vector{String}
Array of Names of all Storage energy meter registers
OpenDSSDirect.Storages.RegisterValues
— MethodRegisterValues(dss::DSSContext) -> Vector{Float64}
Array of values in Storage registers.
OpenDSSDirect.Storages.State
— MethodState(
dss::DSSContext,
Value::Union{Int64, OpenDSSDirect.Lib.StorageStates}
)
Set state: 0=Idling; 1=Discharging; -1=Charging;
Related enumeration: StorageStates
OpenDSSDirect.Storages.State
— MethodState(dss::DSSContext)
Get state: 0=Idling; 1=Discharging; -1=Charging;
Related enumeration: StorageStates
OpenDSSDirect.Storages.puSOC
— MethodpuSOC(dss::DSSContext, Value::Float64)
Per unit state of charge (Setter)
OpenDSSDirect.Storages.puSOC
— MethodpuSOC(dss::DSSContext) -> Float64
Per unit state of charge (Getter)
SwtControls
OpenDSSDirect.SwtControls.Action
— MethodAction(
dss::DSSContext,
Value::Union{Int64, OpenDSSDirect.Lib.ActionCodes}
)
Open or Close the switch. No effect if switch is locked. However, Reset removes any lock and then closes the switch (shelf state). (Setter)
OpenDSSDirect.SwtControls.Action
— MethodAction(dss::DSSContext) -> OpenDSSDirect.Lib.ActionCodes
Open or Close the switch. No effect if switch is locked. However, Reset removes any lock and then closes the switch (shelf state). (Getter)
OpenDSSDirect.SwtControls.AllNames
— MethodAllNames(dss::DSSContext) -> Vector{String}
Array of strings with all SwtControl names in the active circuit.
OpenDSSDirect.SwtControls.Delay
— MethodDelay(dss::DSSContext, Value::Float64)
Time delay [s] betwen arming and opening or closing the switch. Control may reset before actually operating the switch. (Setter)
OpenDSSDirect.SwtControls.Delay
— MethodDelay(dss::DSSContext) -> Float64
Time delay [s] betwen arming and opening or closing the switch. Control may reset before actually operating the switch. (Getter)
OpenDSSDirect.SwtControls.First
— MethodFirst(dss::DSSContext) -> Int64
Sets the first SwtControl active. Returns 0 if no more.
OpenDSSDirect.SwtControls.Idx
— MethodIdx(dss::DSSContext, Value::Int64)
SwtControl Index (Setter)
OpenDSSDirect.SwtControls.Idx
— MethodIdx(dss::DSSContext) -> Int64
SwtControl Index (Getter)
OpenDSSDirect.SwtControls.IsLocked
— MethodIsLocked(dss::DSSContext, Value::Bool)
The lock prevents both manual and automatic switch operation. (Setter)
OpenDSSDirect.SwtControls.IsLocked
— MethodIsLocked(dss::DSSContext) -> Bool
The lock prevents both manual and automatic switch operation. (Getter)
OpenDSSDirect.SwtControls.Name
— MethodName(dss::DSSContext, Value::String)
Sets a SwtControl active by Name. (Setter)
OpenDSSDirect.SwtControls.Name
— MethodName(dss::DSSContext) -> String
Sets a SwtControl active by Name. (Getter)
OpenDSSDirect.SwtControls.Next
— MethodNext(dss::DSSContext) -> Int64
Sets the next SwtControl active. Returns 0 if no more.
OpenDSSDirect.SwtControls.NormalState
— MethodNormalState(
dss::DSSContext,
Value::Union{Int64, OpenDSSDirect.Lib.ActionCodes}
)
Normal state of switch (Setter)
OpenDSSDirect.SwtControls.NormalState
— MethodNormalState(
dss::DSSContext
) -> OpenDSSDirect.Lib.ActionCodes
Normal state of switch (Getter)
OpenDSSDirect.SwtControls.Reset
— MethodReset(dss::DSSContext)
Reset SWT controls
OpenDSSDirect.SwtControls.State
— MethodState(
dss::DSSContext,
Value::Union{Int64, OpenDSSDirect.Lib.ActionCodes}
)
State of switch (Setter)
OpenDSSDirect.SwtControls.State
— MethodState(dss::DSSContext) -> OpenDSSDirect.Lib.ActionCodes
State of switch (Getter)
OpenDSSDirect.SwtControls.SwitchedObj
— MethodSwitchedObj(dss::DSSContext, Value::String)
Full name of the switched element. (Setter)
OpenDSSDirect.SwtControls.SwitchedObj
— MethodSwitchedObj(dss::DSSContext) -> String
Full name of the switched element. (Getter)
OpenDSSDirect.SwtControls.SwitchedTerm
— MethodSwitchedTerm(dss::DSSContext, Value::Int64)
Terminal number where the switch is located on the SwitchedObj (Setter)
OpenDSSDirect.SwtControls.SwitchedTerm
— MethodSwitchedTerm(dss::DSSContext) -> Int64
Terminal number where the switch is located on the SwitchedObj (Getter)
Text
OpenDSSDirect.Text.Command
— MethodCommand(dss::DSSContext, Value::String) -> String
Input command string for the DSS. (Setter)
OpenDSSDirect.Text.Command
— MethodCommand(dss::DSSContext, Value::Vector{String})
Runs a list of commands all at once in the engine. Ignores potential intermediate output in the global result.
(API Extension)
OpenDSSDirect.Text.Command
— MethodCommand(dss::DSSContext) -> String
Input command string for the DSS. (Getter)
OpenDSSDirect.Text.CommandBlock
— MethodCommandBlock(dss::DSSContext, Value::String)
Runs a large string (block) containing many lines of commands. Ignores potential intermediate output in the global result.
(API Extension)
OpenDSSDirect.Text.Result
— MethodResult(dss::DSSContext) -> String
Result string for the last command.
Topology
OpenDSSDirect.Topology.ActiveBranch
— MethodActiveBranch(dss::DSSContext) -> Int64
Returns index of the active branch
OpenDSSDirect.Topology.ActiveLevel
— MethodActiveLevel(dss::DSSContext) -> Int64
Topological depth of the active branch
OpenDSSDirect.Topology.AllIsolatedBranches
— MethodAllIsolatedBranches(dss::DSSContext) -> Vector{String}
Array of all isolated branch names. (Getter)
OpenDSSDirect.Topology.AllIsolatedLoads
— MethodAllIsolatedLoads(dss::DSSContext) -> Vector{String}
Array of all isolated load names. (Setter)
OpenDSSDirect.Topology.AllLoopedPairs
— MethodAllLoopedPairs(dss::DSSContext) -> Vector{String}
Array of all looped element names, by pairs.
OpenDSSDirect.Topology.BackwardBranch
— MethodBackwardBranch(dss::DSSContext) -> Int64
Move back toward the source, return index of new active branch, or 0 if no more.
OpenDSSDirect.Topology.BranchName
— MethodBranchName(dss::DSSContext, Value::String)
Name of the active branch.
OpenDSSDirect.Topology.BranchName
— MethodBranchName(dss::DSSContext) -> String
Name of the active branch.
OpenDSSDirect.Topology.BusName
— MethodBusName(dss::DSSContext, Value::String)
Set the active branch to one containing this bus, return index or 0 if not found (Setter)
OpenDSSDirect.Topology.BusName
— MethodBusName(dss::DSSContext) -> String
Set the active branch to one containing this bus, return index or 0 if not found (Getter)
OpenDSSDirect.Topology.First
— MethodFirst(dss::DSSContext) -> Int64
Sets the first branch active, returns 0 if none.
OpenDSSDirect.Topology.FirstLoad
— MethodFirstLoad(dss::DSSContext) -> Int64
First load at the active branch, return index or 0 if none.
OpenDSSDirect.Topology.ForwardBranch
— MethodForwardBranch(dss::DSSContext) -> Int64
Move forward in the tree, return index of new active branch or 0 if no more
OpenDSSDirect.Topology.LoopedBranch
— MethodLoopedBranch(dss::DSSContext) -> Int64
Move to looped branch, return index or 0 if none.
OpenDSSDirect.Topology.Next
— MethodNext(dss::DSSContext) -> Int64
Sets the next branch active, returns 0 if no more.
OpenDSSDirect.Topology.NextLoad
— MethodNextLoad(dss::DSSContext) -> Int64
Next load at the active branch, return index or 0 if no more.
OpenDSSDirect.Topology.NumIsolatedBranches
— MethodNumIsolatedBranches(dss::DSSContext) -> Int64
Number of isolated branches (PD elements and capacitors).
OpenDSSDirect.Topology.NumIsolatedLoads
— MethodNumIsolatedLoads(dss::DSSContext) -> Int64
Number of isolated loads
OpenDSSDirect.Topology.NumLoops
— MethodNumLoops(dss::DSSContext) -> Int64
Number of loops
OpenDSSDirect.Topology.ParallelBranch
— MethodParallelBranch(dss::DSSContext) -> Int64
Move to directly parallel branch, return index or 0 if none.
TSData
OpenDSSDirect.TSData.AllNames
— MethodAllNames(dss::DSSContext) -> Vector{String}
Array of names of all TSData objects.
OpenDSSDirect.TSData.Count
— MethodCount(dss::DSSContext) -> Int64
Number of TSData Objects in Active Circuit
OpenDSSDirect.TSData.DiaCable
— MethodDiaCable(dss::DSSContext, Value::Float64)
DiaCable (Setter)
OpenDSSDirect.TSData.DiaCable
— MethodDiaCable(dss::DSSContext) -> Float64
DiaCable (Getter)
OpenDSSDirect.TSData.DiaIns
— MethodDiaIns(dss::DSSContext, Value::Float64)
DiaIns (Setter)
OpenDSSDirect.TSData.DiaIns
— MethodDiaIns(dss::DSSContext) -> Float64
DiaIns (Getter)
OpenDSSDirect.TSData.DiaShield
— MethodDiaShield(dss::DSSContext, Value::Float64)
DiaShield (Setter)
OpenDSSDirect.TSData.DiaShield
— MethodDiaShield(dss::DSSContext) -> Float64
DiaShield (Getter)
OpenDSSDirect.TSData.Diameter
— MethodDiameter(dss::DSSContext, Value::Float64)
Diameter (Setter)
OpenDSSDirect.TSData.Diameter
— MethodDiameter(dss::DSSContext) -> Float64
Diameter (Getter)
OpenDSSDirect.TSData.EmergAmps
— MethodEmergAmps(dss::DSSContext, Value::Float64)
Emergency ampere rating (Setter)
OpenDSSDirect.TSData.EmergAmps
— MethodEmergAmps(dss::DSSContext) -> Float64
Emergency ampere rating (Getter)
OpenDSSDirect.TSData.EpsR
— MethodEpsR(dss::DSSContext, Value::Float64)
EpsR (Setter)
OpenDSSDirect.TSData.EpsR
— MethodEpsR(dss::DSSContext) -> Float64
EpsR (Getter)
OpenDSSDirect.TSData.First
— MethodFirst(dss::DSSContext) -> Int64
Sets first TSData to be active. Returns 0 if none.
OpenDSSDirect.TSData.GMRUnits
— MethodGMRUnits(
dss::DSSContext,
Value::Union{Int64, OpenDSSDirect.Lib.LineUnits}
)
GMRUnits (Setter)
OpenDSSDirect.TSData.GMRUnits
— MethodGMRUnits(dss::DSSContext) -> OpenDSSDirect.Lib.LineUnits
GMRUnits (Getter)
OpenDSSDirect.TSData.GMRac
— MethodGMRac(dss::DSSContext, Value::Float64)
GMRac (Setter)
OpenDSSDirect.TSData.GMRac
— MethodGMRac(dss::DSSContext) -> Float64
GMRac (Getter)
OpenDSSDirect.TSData.Idx
— MethodIdx(dss::DSSContext, Value::Int64)
Active TSData by index. 1..Count (Setter)
OpenDSSDirect.TSData.Idx
— MethodIdx(dss::DSSContext) -> Int64
Active TSData by index. 1..Count (Getter)
OpenDSSDirect.TSData.InsLayer
— MethodInsLayer(dss::DSSContext, Value::Float64)
InsLayer (Setter)
OpenDSSDirect.TSData.InsLayer
— MethodInsLayer(dss::DSSContext) -> Float64
InsLayer (Getter)
OpenDSSDirect.TSData.Name
— MethodName(dss::DSSContext, Value::String)
Sets a TSData active by name.
OpenDSSDirect.TSData.Name
— MethodName(dss::DSSContext) -> String
Sets a TSData active by name.
OpenDSSDirect.TSData.Next
— MethodNext(dss::DSSContext) -> Int64
Sets next TSData to be active. Returns 0 if no more.
OpenDSSDirect.TSData.NormAmps
— MethodNormAmps(dss::DSSContext, Value::Float64)
Normal Ampere rating (Setter)
OpenDSSDirect.TSData.NormAmps
— MethodNormAmps(dss::DSSContext) -> Float64
Normal Ampere rating (Getter)
OpenDSSDirect.TSData.Rac
— MethodRac(dss::DSSContext, Value::Float64)
Rac (Setter)
OpenDSSDirect.TSData.Rac
— MethodRac(dss::DSSContext) -> Float64
Rac (Getter)
OpenDSSDirect.TSData.Radius
— MethodRadius(dss::DSSContext, Value::Float64)
Radius (Setter)
OpenDSSDirect.TSData.Radius
— MethodRadius(dss::DSSContext) -> Float64
Radius (Getter)
OpenDSSDirect.TSData.RadiusUnits
— MethodRadiusUnits(
dss::DSSContext,
Value::Union{Int64, OpenDSSDirect.Lib.LineUnits}
)
RadiusUnits (Setter)
OpenDSSDirect.TSData.RadiusUnits
— MethodRadiusUnits(dss::DSSContext) -> OpenDSSDirect.Lib.LineUnits
RadiusUnits (Getter)
OpenDSSDirect.TSData.Rdc
— MethodRdc(dss::DSSContext, Value::Float64)
Rdc (Setter)
OpenDSSDirect.TSData.Rdc
— MethodRdc(dss::DSSContext) -> Float64
Rdc (Getter)
OpenDSSDirect.TSData.ResistanceUnits
— MethodResistanceUnits(
dss::DSSContext,
Value::Union{Int64, OpenDSSDirect.Lib.LineUnits}
)
ResistanceUnits (Setter)
OpenDSSDirect.TSData.ResistanceUnits
— MethodResistanceUnits(
dss::DSSContext
) -> OpenDSSDirect.Lib.LineUnits
ResistanceUnits (Getter)
OpenDSSDirect.TSData.TapeLap
— MethodTapeLap(dss::DSSContext, Value::Float64)
TapeLap (Setter)
OpenDSSDirect.TSData.TapeLap
— MethodTapeLap(dss::DSSContext) -> Float64
TapeLap (Getter)
OpenDSSDirect.TSData.TapeLayer
— MethodTapeLayer(dss::DSSContext, Value::Float64)
TapeLayer (Setter)
OpenDSSDirect.TSData.TapeLayer
— MethodTapeLayer(dss::DSSContext) -> Float64
TapeLayer (Getter)
Transformers
OpenDSSDirect.Transformers.AllLossesByType
— MethodAllLossesByType(dss::DSSContext) -> Vector{ComplexF64}
Complex array with the losses by type (total losses, load losses, no-load losses), in VA, concatenated for ALL transformers
OpenDSSDirect.Transformers.AllNames
— MethodAllNames(dss::DSSContext) -> Vector{String}
Array of strings with all Transformer names in the active circuit.
OpenDSSDirect.Transformers.CoreType
— MethodCoreType(dss::DSSContext, Value::Int64)
Transformer Core Type: 0=shell;1 = 1-phase; 3= 3-leg; 5= 5-leg (Setter)
OpenDSSDirect.Transformers.CoreType
— MethodCoreType(dss::DSSContext) -> Int64
Transformer Core Type: 0=shell;1 = 1-phase; 3= 3-leg; 5= 5-leg (Getter)
OpenDSSDirect.Transformers.First
— MethodFirst(dss::DSSContext) -> Int64
Sets the first Transformer active. Returns 0 if no more.
OpenDSSDirect.Transformers.Idx
— MethodIdx(dss::DSSContext, Value::Int64)
Transformer Index (Setter)
OpenDSSDirect.Transformers.Idx
— MethodIdx(dss::DSSContext) -> Int64
Transformer Index (Getter)
OpenDSSDirect.Transformers.IsDelta
— MethodIsDelta(dss::DSSContext, Value::Bool)
Active Winding delta or wye connection? (Setter)
OpenDSSDirect.Transformers.IsDelta
— MethodIsDelta(dss::DSSContext) -> Bool
Active Winding delta or wye connection? (Getter)
OpenDSSDirect.Transformers.LossesByType
— MethodLossesByType(dss::DSSContext) -> Vector{ComplexF64}
Complex array with the losses by type (total losses, load losses, no-load losses), in VA
OpenDSSDirect.Transformers.MaxTap
— MethodMaxTap(dss::DSSContext, Value::Float64)
Active Winding maximum tap in per-unit. (Setter)
OpenDSSDirect.Transformers.MaxTap
— MethodMaxTap(dss::DSSContext) -> Float64
Active Winding maximum tap in per-unit. (Getter)
OpenDSSDirect.Transformers.MinTap
— MethodMinTap(dss::DSSContext, Value::Float64)
Active Winding minimum tap in per-unit. (Setter)
OpenDSSDirect.Transformers.MinTap
— MethodMinTap(dss::DSSContext) -> Float64
Active Winding minimum tap in per-unit. (Getter)
OpenDSSDirect.Transformers.Name
— MethodName(dss::DSSContext, Value::String)
Sets a Transformer active by Name. (Setter)
OpenDSSDirect.Transformers.Name
— MethodName(dss::DSSContext) -> String
Sets a Transformer active by Name. (Getter)
OpenDSSDirect.Transformers.Next
— MethodNext(dss::DSSContext) -> Int64
Sets the next Transformer active. Returns 0 if no more.
OpenDSSDirect.Transformers.NumTaps
— MethodNumTaps(dss::DSSContext, Value::Int64)
Active Winding number of tap steps betwein MinTap and MaxTap. (Setter)
OpenDSSDirect.Transformers.NumTaps
— MethodNumTaps(dss::DSSContext) -> Int64
Active Winding number of tap steps betwein MinTap and MaxTap. (Getter)
OpenDSSDirect.Transformers.NumWindings
— MethodNumWindings(dss::DSSContext, Value::Int64)
Number of windings on this transformer. Allocates memory; set or change this property first. (Setter)
OpenDSSDirect.Transformers.NumWindings
— MethodNumWindings(dss::DSSContext) -> Int64
Number of windings on this transformer. Allocates memory; set or change this property first. (Getter)
OpenDSSDirect.Transformers.R
— MethodR(dss::DSSContext, Value::Float64)
Active Winding resistance in % (Setter)
OpenDSSDirect.Transformers.R
— MethodR(dss::DSSContext) -> Float64
Active Winding resistance in % (Getter)
OpenDSSDirect.Transformers.RdcOhms
— MethodRdcOhms(dss::DSSContext, Value::Float64)
dc Resistance of active winding in ohms for GIC analysis (Setter)
OpenDSSDirect.Transformers.RdcOhms
— MethodRdcOhms(dss::DSSContext) -> Float64
dc Resistance of active winding in ohms for GIC analysis (Getter)
OpenDSSDirect.Transformers.Rneut
— MethodRneut(dss::DSSContext, Value::Float64)
Active Winding neutral resistance [ohms] for wye connections. Set less than zero for ungrounded wye. (Setter)
OpenDSSDirect.Transformers.Rneut
— MethodRneut(dss::DSSContext) -> Float64
Active Winding neutral resistance [ohms] for wye connections. Set less than zero for ungrounded wye. (Getter)
OpenDSSDirect.Transformers.Tap
— MethodTap(dss::DSSContext, Value::Float64)
Active Winding tap in per-unit. (Setter)
OpenDSSDirect.Transformers.Tap
— MethodTap(dss::DSSContext) -> Float64
Active Winding tap in per-unit. (Getter)
OpenDSSDirect.Transformers.Wdg
— MethodWdg(dss::DSSContext, Value::Float64)
Active Winding Number from 1..NumWindings. Update this before reading or setting a sequence of winding properties (R, Tap, kV, kVA, etc.) (Setter)
OpenDSSDirect.Transformers.Wdg
— MethodWdg(dss::DSSContext) -> Float64
Active Winding Number from 1..NumWindings. Update this before reading or setting a sequence of winding properties (R, Tap, kV, kVA, etc.) (Getter)
OpenDSSDirect.Transformers.WdgCurrents
— MethodWdgCurrents(dss::DSSContext) -> Vector{Float64}
All Winding currents (ph1, wdg1, wdg2,... ph2, wdg1, wdg2 ...)
WARNING: If the transformer has open terminal(s), results may be wrong, i.e. avoid using this in those situations. For more information, see https://github.com/dss-extensions/dss-extensions/issues/24
OpenDSSDirect.Transformers.WdgVoltages
— MethodWdgVoltages(dss::DSSContext) -> Vector{ComplexF64}
Complex array of voltages for active winding
WARNING: If the transformer has open terminal(s), results may be wrong, i.e. avoid using this in those situations. For more information, see https://github.com/dss-extensions/dss-extensions/issues/24
OpenDSSDirect.Transformers.XfmrCode
— MethodXfmrCode(dss::DSSContext, Value::String)
Name of an XfrmCode that supplies electircal parameters for this Transformer. (Setter)
OpenDSSDirect.Transformers.XfmrCode
— MethodXfmrCode(dss::DSSContext) -> String
Name of an XfrmCode that supplies electircal parameters for this Transformer. (Getter)
OpenDSSDirect.Transformers.Xhl
— MethodXhl(dss::DSSContext, Value::Float64)
Percent reactance between windings 1 and 2, on winding 1 kVA base. Use for 2-winding or 3-winding transformers. (Setter)
OpenDSSDirect.Transformers.Xhl
— MethodXhl(dss::DSSContext) -> Float64
Percent reactance between windings 1 and 2, on winding 1 kVA base. Use for 2-winding or 3-winding transformers. (Getter)
OpenDSSDirect.Transformers.Xht
— MethodXht(dss::DSSContext, Value::Float64)
Percent reactance between windigns 1 and 3, on winding 1 kVA base. Use for 3-winding transformers only. (Setter)
OpenDSSDirect.Transformers.Xht
— MethodXht(dss::DSSContext) -> Float64
Percent reactance between windigns 1 and 3, on winding 1 kVA base. Use for 3-winding transformers only. (Getter)
OpenDSSDirect.Transformers.Xlt
— MethodXlt(dss::DSSContext, Value::Float64)
Percent reactance between windings 2 and 3, on winding 1 kVA base. Use for 3-winding transformers only. (Setter)
OpenDSSDirect.Transformers.Xlt
— MethodXlt(dss::DSSContext) -> Float64
Percent reactance between windings 2 and 3, on winding 1 kVA base. Use for 3-winding transformers only. (Getter)
OpenDSSDirect.Transformers.Xneut
— MethodXneut(dss::DSSContext, Value::Float64)
Active Winding neutral reactance [ohms] for wye connections. (Setter)
OpenDSSDirect.Transformers.Xneut
— MethodXneut(dss::DSSContext) -> Float64
Active Winding neutral reactance [ohms] for wye connections. (Getter)
OpenDSSDirect.Transformers.kV
— MethodkV(dss::DSSContext, Value::Float64)
Active Winding kV rating. Phase-phase for 2 or 3 phases, actual winding kV for 1 phase transformer. (Setter)
OpenDSSDirect.Transformers.kV
— MethodkV(dss::DSSContext) -> Float64
Active Winding kV rating. Phase-phase for 2 or 3 phases, actual winding kV for 1 phase transformer. (Getter)
OpenDSSDirect.Transformers.kVA
— MethodkVA(dss::DSSContext, Value::Float64)
Active Winding kVA rating. On winding 1, this also determines normal and emergency current ratings for all windings. (Setter)
OpenDSSDirect.Transformers.kVA
— MethodkVA(dss::DSSContext) -> Float64
Active Winding kVA rating. On winding 1, this also determines normal and emergency current ratings for all windings. (Getter)
OpenDSSDirect.Transformers.strWdgCurrents
— MethodstrWdgCurrents(dss::DSSContext) -> String
All winding currents in CSV string form like the WdgCurrents property
WARNING: If the transformer has open terminal(s), results may be wrong, i.e. avoid using this in those situations. For more information, see https://github.com/dss-extensions/dss-extensions/issues/24
Vsources
OpenDSSDirect.Vsources.AllNames
— MethodAllNames(dss::DSSContext) -> Vector{String}
Names of all Vsource objects in the circuit
OpenDSSDirect.Vsources.AngleDeg
— MethodAngleDeg(dss::DSSContext, Value::Float64)
Phase angle of first phase in degrees (Setter)
OpenDSSDirect.Vsources.AngleDeg
— MethodAngleDeg(dss::DSSContext) -> Float64
Phase angle of first phase in degrees (Getter)
OpenDSSDirect.Vsources.BasekV
— MethodBasekV(dss::DSSContext, Value::Float64)
Source voltage in kV (Setter)
OpenDSSDirect.Vsources.BasekV
— MethodBasekV(dss::DSSContext) -> Float64
Source voltage in kV (Getter)
OpenDSSDirect.Vsources.Count
— MethodCount(dss::DSSContext) -> Int64
Number of Vsource Object
OpenDSSDirect.Vsources.First
— MethodFirst(dss::DSSContext) -> Int64
Sets the first VSOURCE to be active; Returns 0 if none
OpenDSSDirect.Vsources.Frequency
— MethodFrequency(dss::DSSContext, Value::Float64)
Source frequency in Hz (Setter)
OpenDSSDirect.Vsources.Frequency
— MethodFrequency(dss::DSSContext) -> Float64
Source frequency in Hz (Getter)
OpenDSSDirect.Vsources.Idx
— MethodIdx(dss::DSSContext, Value::Int64)
VSOURCE Index (Setter)
OpenDSSDirect.Vsources.Idx
— MethodIdx(dss::DSSContext) -> Int64
VSOURCE Index (Getter)
OpenDSSDirect.Vsources.Name
— MethodName(dss::DSSContext, Value::String)
Active VSOURCE name (Setter)
OpenDSSDirect.Vsources.Name
— MethodName(dss::DSSContext) -> String
Active VSOURCE name (Getter)
OpenDSSDirect.Vsources.Next
— MethodNext(dss::DSSContext) -> Int64
Sets the next VSOURCE object to be active; returns zero if no more
OpenDSSDirect.Vsources.PU
— MethodPU(dss::DSSContext, Value::Float64)
Source pu voltage. (Setter)
OpenDSSDirect.Vsources.PU
— MethodPU(dss::DSSContext) -> Float64
Source pu voltage. (Getter)
OpenDSSDirect.Vsources.Phases
— MethodPhases(dss::DSSContext, Value::Int64)
Number of phases (Setter)
OpenDSSDirect.Vsources.Phases
— MethodPhases(dss::DSSContext) -> Int64
Number of phases (Getter)
WireData
OpenDSSDirect.WireData.AllNames
— MethodAllNames(dss::DSSContext) -> Vector{String}
Array of names of all WireData objects.
OpenDSSDirect.WireData.CapRadius
— MethodCapRadius(dss::DSSContext, Value::Float64)
CapRadius (Setter)
OpenDSSDirect.WireData.CapRadius
— MethodCapRadius(dss::DSSContext) -> Float64
CapRadius (Getter)
OpenDSSDirect.WireData.Count
— MethodCount(dss::DSSContext) -> Int64
Number of WireData Objects in Active Circuit
OpenDSSDirect.WireData.Diameter
— MethodDiameter(dss::DSSContext, Value::Float64)
Diameter (Setter)
OpenDSSDirect.WireData.Diameter
— MethodDiameter(dss::DSSContext) -> Float64
Diameter (Getter)
OpenDSSDirect.WireData.EmergAmps
— MethodEmergAmps(dss::DSSContext, Value::Float64)
Emergency ampere rating (Setter)
OpenDSSDirect.WireData.EmergAmps
— MethodEmergAmps(dss::DSSContext) -> Float64
Emergency ampere rating (Getter)
OpenDSSDirect.WireData.First
— MethodFirst(dss::DSSContext) -> Int64
Sets first WireData to be active. Returns 0 if none.
OpenDSSDirect.WireData.GMRUnits
— MethodGMRUnits(
dss::DSSContext,
Value::Union{Int64, OpenDSSDirect.Lib.LineUnits}
)
GMRUnits (Setter)
OpenDSSDirect.WireData.GMRUnits
— MethodGMRUnits(dss::DSSContext) -> OpenDSSDirect.Lib.LineUnits
GMRUnits (Getter)
OpenDSSDirect.WireData.GMRac
— MethodGMRac(dss::DSSContext, Value::Float64)
GMRac (Setter)
OpenDSSDirect.WireData.GMRac
— MethodGMRac(dss::DSSContext) -> Float64
GMRac (Getter)
OpenDSSDirect.WireData.Idx
— MethodIdx(dss::DSSContext, Value::Int64)
Active WireData by index. 1..Count (Setter)
OpenDSSDirect.WireData.Idx
— MethodIdx(dss::DSSContext) -> Int64
Active WireData by index. 1..Count (Getter)
OpenDSSDirect.WireData.Name
— MethodName(dss::DSSContext, Value::String)
Sets a WireData active by name.
OpenDSSDirect.WireData.Name
— MethodName(dss::DSSContext) -> String
Sets a WireData active by name.
OpenDSSDirect.WireData.Next
— MethodNext(dss::DSSContext) -> Int64
Sets next WireData to be active. Returns 0 if no more.
OpenDSSDirect.WireData.NormAmps
— MethodNormAmps(dss::DSSContext, Value::Float64)
Normal Ampere rating (Setter)
OpenDSSDirect.WireData.NormAmps
— MethodNormAmps(dss::DSSContext) -> Float64
Normal Ampere rating (Getter)
OpenDSSDirect.WireData.Rac
— MethodRac(dss::DSSContext, Value::Float64)
Rac (Setter)
OpenDSSDirect.WireData.Rac
— MethodRac(dss::DSSContext) -> Float64
Rac (Getter)
OpenDSSDirect.WireData.Radius
— MethodRadius(dss::DSSContext, Value::Float64)
Radius (Setter)
OpenDSSDirect.WireData.Radius
— MethodRadius(dss::DSSContext) -> Float64
Radius (Getter)
OpenDSSDirect.WireData.RadiusUnits
— MethodRadiusUnits(dss::DSSContext, Value::Float64)
RadiusUnits (Setter)
OpenDSSDirect.WireData.RadiusUnits
— MethodRadiusUnits(dss::DSSContext) -> Float64
RadiusUnits (Getter)
OpenDSSDirect.WireData.Rdc
— MethodRdc(dss::DSSContext, Value::Float64)
Rdc (Setter)
OpenDSSDirect.WireData.Rdc
— MethodRdc(dss::DSSContext) -> Float64
Rdc (Getter)
OpenDSSDirect.WireData.ResistanceUnits
— MethodResistanceUnits(
dss::DSSContext,
Value::Union{Int64, OpenDSSDirect.Lib.LineUnits}
)
ResistanceUnits (Setter)
OpenDSSDirect.WireData.ResistanceUnits
— MethodResistanceUnits(
dss::DSSContext
) -> OpenDSSDirect.Lib.LineUnits
ResistanceUnits (Getter)
XYCurves
OpenDSSDirect.XYCurves.AllNames
— MethodAllNames(dss::DSSContext) -> Vector{String}
List of strings with all XYCurve names
OpenDSSDirect.XYCurves.Count
— MethodCount(dss::DSSContext) -> Int64
Number of XYCurve Objects
OpenDSSDirect.XYCurves.First
— MethodFirst(dss::DSSContext) -> Int64
Sets first XYcurve object active; returns 0 if none.
OpenDSSDirect.XYCurves.Idx
— MethodIdx(dss::DSSContext, Value::Int64)
XYCurve Index (Setter)
OpenDSSDirect.XYCurves.Idx
— MethodIdx(dss::DSSContext) -> Int64
XYCurve Index (Getter)
OpenDSSDirect.XYCurves.Name
— MethodName(dss::DSSContext, Value::String)
Name of active XYCurve Object (Setter)
OpenDSSDirect.XYCurves.Name
— MethodName(dss::DSSContext) -> String
Name of active XYCurve Object (Getter)
OpenDSSDirect.XYCurves.Next
— MethodNext(dss::DSSContext) -> Int64
Advances to next XYCurve object; returns 0 if no more objects of this class
OpenDSSDirect.XYCurves.Npts
— MethodNpts(dss::DSSContext, Value::Int64)
Number of points in X-Y curve (Setter)
OpenDSSDirect.XYCurves.Npts
— MethodNpts(dss::DSSContext) -> Int64
Number of points in X-Y curve (Getter)
OpenDSSDirect.XYCurves.X
— MethodX(dss::DSSContext, Value::Float64)
X value for given Y. (Setter)
OpenDSSDirect.XYCurves.X
— MethodX(dss::DSSContext) -> Float64
X value for given Y. (Getter)
OpenDSSDirect.XYCurves.XArray
— MethodXArray(dss::DSSContext, Value::Vector{Float64})
X values as a Array of doubles. Set Npts to max number expected if setting (Setter)
OpenDSSDirect.XYCurves.XArray
— MethodXArray(dss::DSSContext) -> Vector{Float64}
X values as a Array of doubles. Set Npts to max number expected if setting (Getter)
OpenDSSDirect.XYCurves.XScale
— MethodXScale(dss::DSSContext, Value::Float64)
Factor to scale X values from original curve (Setter)
OpenDSSDirect.XYCurves.XScale
— MethodXScale(dss::DSSContext) -> Float64
Factor to scale X values from original curve (Getter)
OpenDSSDirect.XYCurves.XShift
— MethodXShift(dss::DSSContext, Value::Float64)
Amount to shift X value from original curve (Setter)
OpenDSSDirect.XYCurves.XShift
— MethodXShift(dss::DSSContext) -> Float64
Amount to shift X value from original curve (Getter)
OpenDSSDirect.XYCurves.Y
— MethodY(dss::DSSContext, Value::Float64)
Y value for given X. (Setter)
OpenDSSDirect.XYCurves.Y
— MethodY(dss::DSSContext) -> Float64
Y value for given X. (Getter)
OpenDSSDirect.XYCurves.YArray
— MethodYArray(dss::DSSContext, Value::Vector{Float64})
Y values in curve; Set Npts to max number expected if setting (Setter)
OpenDSSDirect.XYCurves.YArray
— MethodYArray(dss::DSSContext) -> Vector{Float64}
Y values in curve; Set Npts to max number expected if setting (Getter)
OpenDSSDirect.XYCurves.YScale
— MethodYScale(dss::DSSContext, Value::Float64)
Factor to scale Y values from original curve. Represents a curve shift. (Setter)
OpenDSSDirect.XYCurves.YScale
— MethodYScale(dss::DSSContext) -> Float64
Factor to scale Y values from original curve. Represents a curve shift. (Getter)
OpenDSSDirect.XYCurves.YShift
— MethodYShift(dss::DSSContext, Value::Float64)
Amount to shift Y value from original curve (Setter)
OpenDSSDirect.XYCurves.YShift
— MethodYShift(dss::DSSContext) -> Float64
Amount to shift Y value from original curve (Getter)
YMatrix
OpenDSSDirect.YMatrix.AddInAuxCurrents
— MethodAddInAuxCurrents(dss::DSSContext, SType::Int64)
Add in auxiliary currents
OpenDSSDirect.YMatrix.BuildYMatrixD
— MethodBuildYMatrixD(
dss::DSSContext,
BuildOps::Int64,
AllocateVI::Bool
)
Build Y MatrixD
OpenDSSDirect.YMatrix.CheckConvergence
— MethodCheckConvergence(dss::DSSContext) -> Bool
Update and return the convergence flag. Used for external solver loops.
(API Extension)
OpenDSSDirect.YMatrix.GetPCInjCurr
— MethodGetPCInjCurr(dss::DSSContext)
Get PC Current Injections
OpenDSSDirect.YMatrix.GetSourceInjCurrents
— MethodGetSourceInjCurrents(dss::DSSContext)
Get Source Current Injections
OpenDSSDirect.YMatrix.IVector
— MethodIVector(dss::DSSContext) -> Ptr{ComplexF64}
Get access to the internal Current pointer
OpenDSSDirect.YMatrix.Iteration
— MethodIteration(dss::DSSContext, Value::Int64)
Iteration (Setter) (API Extension)
OpenDSSDirect.YMatrix.Iteration
— MethodIteration(dss::DSSContext) -> Int64
Iteration (Getter) (API Extension)
OpenDSSDirect.YMatrix.LoadsNeedUpdating
— MethodLoadsNeedUpdating(dss::DSSContext, Value::Bool)
LoadsNeedUpdating (Setter) (API Extension)
OpenDSSDirect.YMatrix.LoadsNeedUpdating
— MethodLoadsNeedUpdating(dss::DSSContext) -> Bool
LoadsNeedUpdating (Getter) (API Extension)
OpenDSSDirect.YMatrix.SetGeneratordQdV
— MethodSetGeneratordQdV(dss::DSSContext)
SetGeneratordQdV (API Extension)
OpenDSSDirect.YMatrix.SolutionInitialized
— MethodSolutionInitialized(dss::DSSContext, Value::Bool)
SolutionInitialized (Setter) (API Extension)
OpenDSSDirect.YMatrix.SolutionInitialized
— MethodSolutionInitialized(dss::DSSContext) -> Bool
SolutionInitialized (Getter) (API Extension)
OpenDSSDirect.YMatrix.SolveSystem
— MethodSolveSystem(
dss::DSSContext,
NodeV::Vector{ComplexF64}
) -> Int64
Solve System for a given V vector
OpenDSSDirect.YMatrix.SolveSystem
— MethodSolveSystem(dss::DSSContext) -> Int64
Solve System for the internal V vector
OpenDSSDirect.YMatrix.SolverOptions
— MethodSolverOptions(dss::DSSContext, Value::Int64)
SolverOptions (Setter) (API Extension)
OpenDSSDirect.YMatrix.SolverOptions
— MethodSolverOptions(dss::DSSContext) -> Int64
SolverOptions (Getter) (API Extension)
OpenDSSDirect.YMatrix.SystemYChanged
— MethodSystemYChanged(dss::DSSContext, Value::Bool)
SystemY has changed (Setter)
OpenDSSDirect.YMatrix.SystemYChanged
— MethodSystemYChanged(dss::DSSContext) -> Bool
SystemY has changed (Getter)
OpenDSSDirect.YMatrix.UseAuxCurrents
— MethodUseAuxCurrents(dss::DSSContext, Value::Bool)
Use auxiliary currents (Setter)
OpenDSSDirect.YMatrix.UseAuxCurrents
— MethodUseAuxCurrents(dss::DSSContext) -> Bool
Use auxiliary currents (Getter)
OpenDSSDirect.YMatrix.VVector
— MethodVVector(dss::DSSContext) -> Ptr{ComplexF64}
Get access to the internal Voltage pointer
OpenDSSDirect.YMatrix.ZeroInjCurr
— MethodZeroInjCurr(dss::DSSContext)
Zero Current Injections
OpenDSSDirect.YMatrix.getI
— MethodgetI(dss::DSSContext) -> Vector{ComplexF64}
Get the data from the internal Current pointer
OpenDSSDirect.YMatrix.getV
— MethodgetV(dss::DSSContext) -> Vector{ComplexF64}
Get the data from the internal Voltage pointer
OpenDSSDirect.YMatrix.getYsparse
— FunctiongetYsparse(
dss::DSSContext
) -> SparseArrays.SparseMatrixCSC{ComplexF64, Int64}
getYsparse(
dss::DSSContext,
factor::Bool
) -> SparseArrays.SparseMatrixCSC{ComplexF64, Int64}
Return SparseMatrixCSC of ComplexF64
ZIP
OpenDSSDirect.ZIP.Close
— MethodClose(dss::DSSContext)
Closes the current open ZIP file
(API Extension)
OpenDSSDirect.ZIP.Contains
— MethodContains(dss::DSSContext, Name::String) -> Bool
Check if the given path name is present in the current ZIP file.
(API Extension)
OpenDSSDirect.ZIP.Extract
— MethodExtract(dss::DSSContext, FileName::String) -> Vector{Int8}
Extracts the contents of the file "FileName" from the current (open) ZIP file. Returns a byte-string.
(API Extension)
OpenDSSDirect.ZIP.List
— MethodList(dss::DSSContext, regexp::String) -> Vector{String}
List of strings consisting of all names match the regular expression provided in regexp. If no expression is provided, all names in the current open ZIP are returned.
See https://regex.sorokin.engineer/en/latest/regular_expressions.html for information on the expression syntax and options.
(API Extension)
OpenDSSDirect.ZIP.Open
— MethodOpen(dss::DSSContext, Value::String)
Opens and prepares a ZIP file to be used by the DSS text parser. Currently, the ZIP format support is limited by what is provided in the Free Pascal distribution. Besides that, the full filenames inside the ZIP must be shorter than 256 characters. The limitations should be removed in a future revision.
(API Extension)
OpenDSSDirect.ZIP.Redirect
— MethodRedirect(dss::DSSContext, FileInZip::String)
Runs a "Redirect" command inside the current (open) ZIP file. In the current implementation, all files required by the script must be present inside the ZIP, using relative paths. The only exceptions are memory-mapped files.
(API Extension)