You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
% IActiveClass: DSS MATLAB interface class to DSS C-API
3
+
%
4
+
% Properties:
5
+
% ActiveClassName - (read-only) Returns name of active class.
6
+
% AllNames - (read-only) Array of strings consisting of all element names in the active class.
7
+
% Count - (read-only) Number of elements in Active Class. Same as NumElements Property.
8
+
% First - (read-only) 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.
9
+
% Name - Name of the Active Element of the Active Class
10
+
% Next - (read-only) 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.
11
+
% NumElements - (read-only) Number of elements in this class. Same as Count property.
12
+
13
+
properties
14
+
ActiveClassName
15
+
AllNames
16
+
Count
17
+
First
18
+
Name
19
+
Next
20
+
NumElements
21
+
end
22
+
23
+
methods
24
+
25
+
functionresult=get.ActiveClassName(obj)
26
+
% (read-only) Returns name of active class.
27
+
result = calllib('dss_capi_v7', 'ActiveClass_Get_ActiveClassName');
28
+
end
29
+
30
+
functionresult=get.AllNames(obj)
31
+
% (read-only) Array of strings consisting of all element names in the active class.
32
+
result =DSS_MATLAB.get_string_array('ActiveClass_Get_AllNames');
33
+
end
34
+
35
+
functionresult=get.Count(obj)
36
+
% (read-only) Number of elements in Active Class. Same as NumElements Property.
37
+
result = calllib('dss_capi_v7', 'ActiveClass_Get_Count');
38
+
end
39
+
40
+
functionresult=get.First(obj)
41
+
% (read-only) 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.
42
+
result = calllib('dss_capi_v7', 'ActiveClass_Get_First');
43
+
end
44
+
45
+
functionresult=get.Name(obj)
46
+
% Name of the Active Element of the Active Class
47
+
result = calllib('dss_capi_v7', 'ActiveClass_Get_Name');
% (read-only) 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.
56
+
result = calllib('dss_capi_v7', 'ActiveClass_Get_Next');
57
+
end
58
+
59
+
functionresult=get.NumElements(obj)
60
+
% (read-only) Number of elements in this class. Same as Count property.
61
+
result = calllib('dss_capi_v7', 'ActiveClass_Get_NumElements');
% Cust_Interrupts - (read-only) Annual number of customer-interruptions from this bus
9
+
% Distance - (read-only) Distance from energymeter (if non-zero)
10
+
% Int_Duration - (read-only) Average interruption duration, hr.
11
+
% Isc - (read-only) Short circuit currents at bus; Complex Array.
12
+
% Lambda - (read-only) Accumulated failure rate downstream from this bus; faults per year
13
+
% N_Customers - (read-only) Total numbers of customers served downline from this bus
14
+
% N_interrupts - (read-only) Number of interruptions this bus per year
15
+
% Name - (read-only) Name of Bus
16
+
% Nodes - (read-only) Integer Array of Node Numbers defined at the bus in same order as the voltages.
17
+
% NumNodes - (read-only) Number of Nodes this bus.
18
+
% SectionID - (read-only) Integer ID of the feeder section in which this bus is located.
19
+
% SeqVoltages - (read-only) Double Array of sequence voltages at this bus.
20
+
% TotalMiles - (read-only) Total length of line downline from this bus, in miles. For recloser siting algorithm.
21
+
% VLL - (read-only) For 2- and 3-phase buses, returns array of complex numbers represetin L-L voltages in volts. Returns -1.0 for 1-phase bus. If more than 3 phases, returns only first 3.
22
+
% VMagAngle - (read-only) Variant Array of doubles containing voltages in Magnitude (VLN), angle (deg)
23
+
% Voc - (read-only) Open circuit voltage; Complex array.
24
+
% Voltages - (read-only) Complex array of voltages at this bus.
25
+
% YscMatrix - (read-only) Complex array of Ysc matrix at bus. Column by column.
26
+
% Zsc0 - (read-only) Complex Zero-Sequence short circuit impedance at bus.
27
+
% Zsc1 - (read-only) Complex Positive-Sequence short circuit impedance at bus..
28
+
% ZscMatrix - (read-only) Complex array of Zsc matrix at bus. Column by column.
29
+
% kVBase - (read-only) Base voltage at bus in kV
30
+
% puVLL - (read-only) 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.
31
+
% puVmagAngle - (read-only) Array of doubles containig voltage magnitude, angle pairs in per unit
32
+
% puVoltages - (read-only) Complex Array of pu voltages at the bus.
result = calllib('dss_capi_v7', 'Bus_Get_Cust_Duration');
96
+
end
97
+
98
+
functionresult=get.Cust_Interrupts(obj)
99
+
% (read-only) Annual number of customer-interruptions from this bus
100
+
result = calllib('dss_capi_v7', 'Bus_Get_Cust_Interrupts');
101
+
end
102
+
103
+
functionresult=get.Distance(obj)
104
+
% (read-only) Distance from energymeter (if non-zero)
105
+
result = calllib('dss_capi_v7', 'Bus_Get_Distance');
106
+
end
107
+
108
+
functionresult=get.Int_Duration(obj)
109
+
% (read-only) Average interruption duration, hr.
110
+
result = calllib('dss_capi_v7', 'Bus_Get_Int_Duration');
111
+
end
112
+
113
+
functionresult=get.Isc(obj)
114
+
% (read-only) Short circuit currents at bus; Complex Array.
115
+
result =DSS_MATLAB.get_float64_array('Bus_Get_Isc');
116
+
end
117
+
118
+
functionresult=get.Lambda(obj)
119
+
% (read-only) Accumulated failure rate downstream from this bus; faults per year
120
+
result = calllib('dss_capi_v7', 'Bus_Get_Lambda');
121
+
end
122
+
123
+
functionresult=get.N_Customers(obj)
124
+
% (read-only) Total numbers of customers served downline from this bus
125
+
result = calllib('dss_capi_v7', 'Bus_Get_N_Customers');
126
+
end
127
+
128
+
functionresult=get.N_interrupts(obj)
129
+
% (read-only) Number of interruptions this bus per year
130
+
result = calllib('dss_capi_v7', 'Bus_Get_N_interrupts');
131
+
end
132
+
133
+
functionresult=get.Name(obj)
134
+
% (read-only) Name of Bus
135
+
result = calllib('dss_capi_v7', 'Bus_Get_Name');
136
+
end
137
+
138
+
functionresult=get.Nodes(obj)
139
+
% (read-only) Integer Array of Node Numbers defined at the bus in same order as the voltages.
140
+
result =DSS_MATLAB.get_int32_array('Bus_Get_Nodes');
141
+
end
142
+
143
+
functionresult=get.NumNodes(obj)
144
+
% (read-only) Number of Nodes this bus.
145
+
result = calllib('dss_capi_v7', 'Bus_Get_NumNodes');
146
+
end
147
+
148
+
functionresult=get.SectionID(obj)
149
+
% (read-only) Integer ID of the feeder section in which this bus is located.
150
+
result = calllib('dss_capi_v7', 'Bus_Get_SectionID');
151
+
end
152
+
153
+
functionresult=get.SeqVoltages(obj)
154
+
% (read-only) Double Array of sequence voltages at this bus.
155
+
result =DSS_MATLAB.get_float64_array('Bus_Get_SeqVoltages');
156
+
end
157
+
158
+
functionresult=get.TotalMiles(obj)
159
+
% (read-only) Total length of line downline from this bus, in miles. For recloser siting algorithm.
160
+
result = calllib('dss_capi_v7', 'Bus_Get_TotalMiles');
161
+
end
162
+
163
+
functionresult=get.VLL(obj)
164
+
% (read-only) For 2- and 3-phase buses, returns array of complex numbers represetin L-L voltages in volts. Returns -1.0 for 1-phase bus. If more than 3 phases, returns only first 3.
165
+
result =DSS_MATLAB.get_float64_array('Bus_Get_VLL');
166
+
end
167
+
168
+
functionresult=get.VMagAngle(obj)
169
+
% (read-only) Variant Array of doubles containing voltages in Magnitude (VLN), angle (deg)
170
+
result =DSS_MATLAB.get_float64_array('Bus_Get_VMagAngle');
171
+
end
172
+
173
+
functionresult=get.Voc(obj)
174
+
% (read-only) Open circuit voltage; Complex array.
175
+
result =DSS_MATLAB.get_float64_array('Bus_Get_Voc');
176
+
end
177
+
178
+
functionresult=get.Voltages(obj)
179
+
% (read-only) Complex array of voltages at this bus.
180
+
result =DSS_MATLAB.get_float64_array('Bus_Get_Voltages');
181
+
end
182
+
183
+
functionresult=get.YscMatrix(obj)
184
+
% (read-only) Complex array of Ysc matrix at bus. Column by column.
185
+
result =DSS_MATLAB.get_float64_array('Bus_Get_YscMatrix');
186
+
end
187
+
188
+
functionresult=get.Zsc0(obj)
189
+
% (read-only) Complex Zero-Sequence short circuit impedance at bus.
190
+
result =DSS_MATLAB.get_float64_array('Bus_Get_Zsc0');
191
+
end
192
+
193
+
functionresult=get.Zsc1(obj)
194
+
% (read-only) Complex Positive-Sequence short circuit impedance at bus..
195
+
result =DSS_MATLAB.get_float64_array('Bus_Get_Zsc1');
196
+
end
197
+
198
+
functionresult=get.ZscMatrix(obj)
199
+
% (read-only) Complex array of Zsc matrix at bus. Column by column.
200
+
result =DSS_MATLAB.get_float64_array('Bus_Get_ZscMatrix');
201
+
end
202
+
203
+
functionresult=get.kVBase(obj)
204
+
% (read-only) Base voltage at bus in kV
205
+
result = calllib('dss_capi_v7', 'Bus_Get_kVBase');
206
+
end
207
+
208
+
functionresult=get.puVLL(obj)
209
+
% (read-only) 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.
210
+
result =DSS_MATLAB.get_float64_array('Bus_Get_puVLL');
211
+
end
212
+
213
+
functionresult=get.puVmagAngle(obj)
214
+
% (read-only) Array of doubles containig voltage magnitude, angle pairs in per unit
215
+
result =DSS_MATLAB.get_float64_array('Bus_Get_puVmagAngle');
216
+
end
217
+
218
+
functionresult=get.puVoltages(obj)
219
+
% (read-only) Complex Array of pu voltages at the bus.
220
+
result =DSS_MATLAB.get_float64_array('Bus_Get_puVoltages');
0 commit comments