|
2 | 2 | % IBus: DSS MATLAB interface class to DSS C-API |
3 | 3 | % |
4 | 4 | % Properties: |
5 | | - % Coorddefined - False=0 else True. Indicates whether a coordinate has been defined for this bus |
| 5 | + % Coorddefined - Indicates whether a coordinate has been defined for this bus |
6 | 6 | % CplxSeqVoltages - Complex Double array of Sequence Voltages (0, 1, 2) at this Bus. |
7 | 7 | % Cust_Duration - Accumulated customer outage durations |
8 | 8 | % Cust_Interrupts - Annual number of customer-interruptions from this bus |
|
99 | 99 | methods |
100 | 100 |
|
101 | 101 | function result = get.Coorddefined(obj) |
102 | | - % (read-only) False=0 else True. Indicates whether a coordinate has been defined for this bus |
| 102 | + % Indicates whether a coordinate has been defined for this bus |
103 | 103 | result = (calllib(obj.libname, 'ctx_Bus_Get_Coorddefined', obj.dssctx) ~= 0); |
104 | 104 | obj.CheckForError(); |
105 | 105 | end |
106 | 106 |
|
107 | 107 | function result = get.CplxSeqVoltages(obj) |
108 | | - % (read-only) Complex Double array of Sequence Voltages (0, 1, 2) at this Bus. |
| 108 | + % Complex Double array of Sequence Voltages (0, 1, 2) at this Bus. |
109 | 109 | calllib(obj.libname, 'ctx_Bus_Get_CplxSeqVoltages_GR', obj.dssctx); |
110 | 110 | obj.CheckForError(); |
111 | 111 | result = obj.apiutil.get_complex128_gr_array(); |
112 | 112 | end |
113 | 113 |
|
114 | 114 | function result = get.Cust_Duration(obj) |
115 | | - % (read-only) Accumulated customer outage durations |
| 115 | + % Accumulated customer outage durations |
116 | 116 | result = calllib(obj.libname, 'ctx_Bus_Get_Cust_Duration', obj.dssctx); |
117 | 117 | obj.CheckForError(); |
118 | 118 | end |
119 | 119 |
|
120 | 120 | function result = get.Cust_Interrupts(obj) |
121 | | - % (read-only) Annual number of customer-interruptions from this bus |
| 121 | + % Annual number of customer-interruptions from this bus |
122 | 122 | result = calllib(obj.libname, 'ctx_Bus_Get_Cust_Interrupts', obj.dssctx); |
123 | 123 | obj.CheckForError(); |
124 | 124 | end |
125 | 125 |
|
126 | 126 | function result = get.Distance(obj) |
127 | | - % (read-only) Distance from energymeter (if non-zero) |
| 127 | + % Distance from energymeter (if non-zero) |
128 | 128 | result = calllib(obj.libname, 'ctx_Bus_Get_Distance', obj.dssctx); |
129 | 129 | obj.CheckForError(); |
130 | 130 | end |
131 | 131 |
|
132 | 132 | function result = get.Int_Duration(obj) |
133 | | - % (read-only) Average interruption duration, hr. |
| 133 | + % Average interruption duration, hr. |
134 | 134 | result = calllib(obj.libname, 'ctx_Bus_Get_Int_Duration', obj.dssctx); |
135 | 135 | obj.CheckForError(); |
136 | 136 | end |
137 | 137 |
|
138 | 138 | function result = get.Isc(obj) |
139 | | - % (read-only) Short circuit currents at bus; Complex Array. |
| 139 | + % Short circuit currents at bus; Complex Array. |
140 | 140 | calllib(obj.libname, 'ctx_Bus_Get_Isc_GR', obj.dssctx); |
141 | 141 | obj.CheckForError(); |
142 | 142 | result = obj.apiutil.get_complex128_gr_array(); |
143 | 143 | end |
144 | 144 |
|
145 | 145 | function result = get.Lambda(obj) |
146 | | - % (read-only) Accumulated failure rate downstream from this bus; faults per year |
| 146 | + % Accumulated failure rate downstream from this bus; faults per year |
147 | 147 | result = calllib(obj.libname, 'ctx_Bus_Get_Lambda', obj.dssctx); |
148 | 148 | obj.CheckForError(); |
149 | 149 | end |
150 | 150 |
|
151 | 151 | function result = get.N_Customers(obj) |
152 | | - % (read-only) Total numbers of customers served downline from this bus |
| 152 | + % Total numbers of customers served downline from this bus |
153 | 153 | result = calllib(obj.libname, 'ctx_Bus_Get_N_Customers', obj.dssctx); |
154 | 154 | obj.CheckForError(); |
155 | 155 | end |
156 | 156 |
|
157 | 157 | function result = get.N_interrupts(obj) |
158 | | - % (read-only) Number of interruptions this bus per year |
| 158 | + % Number of interruptions this bus per year |
159 | 159 | result = calllib(obj.libname, 'ctx_Bus_Get_N_interrupts', obj.dssctx); |
160 | 160 | obj.CheckForError(); |
161 | 161 | end |
162 | 162 |
|
163 | 163 | function result = get.Name(obj) |
164 | | - % (read-only) Name of Bus |
| 164 | + % Name of Bus |
165 | 165 | result = calllib(obj.libname, 'ctx_Bus_Get_Name', obj.dssctx); |
166 | 166 | obj.CheckForError(); |
167 | 167 | end |
168 | 168 |
|
169 | 169 | function result = get.Nodes(obj) |
170 | | - % (read-only) Integer Array of Node Numbers defined at the bus in same order as the voltages. |
| 170 | + % Integer Array of Node Numbers defined at the bus in same order as the voltages. |
171 | 171 | calllib(obj.libname, 'ctx_Bus_Get_Nodes_GR', obj.dssctx); |
172 | 172 | obj.CheckForError(); |
173 | 173 | result = obj.apiutil.get_int32_gr_array(); |
174 | 174 | end |
175 | 175 |
|
176 | 176 | function result = get.NumNodes(obj) |
177 | | - % (read-only) Number of Nodes this bus. |
| 177 | + % Number of Nodes this bus. |
178 | 178 | result = calllib(obj.libname, 'ctx_Bus_Get_NumNodes', obj.dssctx); |
179 | 179 | obj.CheckForError(); |
180 | 180 | end |
181 | 181 |
|
182 | 182 | function result = get.SectionID(obj) |
183 | | - % (read-only) Integer ID of the feeder section in which this bus is located. |
| 183 | + % Integer ID of the feeder section in which this bus is located. |
184 | 184 | result = calllib(obj.libname, 'ctx_Bus_Get_SectionID', obj.dssctx); |
185 | 185 | obj.CheckForError(); |
186 | 186 | end |
187 | 187 |
|
188 | 188 | function result = get.SeqVoltages(obj) |
189 | | - % (read-only) Double Array of sequence voltages at this bus. Magnitudes only. |
| 189 | + % Double Array of sequence voltages at this bus. Magnitudes only. |
190 | 190 | calllib(obj.libname, 'ctx_Bus_Get_SeqVoltages_GR', obj.dssctx); |
191 | 191 | obj.CheckForError(); |
192 | 192 | result = obj.apiutil.get_float64_gr_array(); |
193 | 193 | end |
194 | 194 |
|
195 | 195 | function result = get.TotalMiles(obj) |
196 | | - % (read-only) Total length of line downline from this bus, in miles. For recloser siting algorithm. |
| 196 | + % Total length of line downline from this bus, in miles. For recloser siting algorithm. |
197 | 197 | result = calllib(obj.libname, 'ctx_Bus_Get_TotalMiles', obj.dssctx); |
198 | 198 | obj.CheckForError(); |
199 | 199 | end |
200 | 200 |
|
201 | 201 | function result = get.VLL(obj) |
202 | | - % (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. |
| 202 | + % 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. |
203 | 203 | calllib(obj.libname, 'ctx_Bus_Get_VLL_GR', obj.dssctx); |
204 | 204 | obj.CheckForError(); |
205 | 205 | result = obj.apiutil.get_complex128_gr_array(); |
206 | 206 | end |
207 | 207 |
|
208 | 208 | function result = get.VMagAngle(obj) |
209 | | - % (read-only) Array of doubles containing voltages in Magnitude (VLN), angle (degrees) |
| 209 | + % Array of doubles containing voltages in Magnitude (VLN), angle (degrees) |
210 | 210 | calllib(obj.libname, 'ctx_Bus_Get_VMagAngle_GR', obj.dssctx); |
211 | 211 | obj.CheckForError(); |
212 | 212 | result = obj.apiutil.get_float64_gr_array(); |
213 | 213 | end |
214 | 214 |
|
215 | 215 | function result = get.Voc(obj) |
216 | | - % (read-only) Open circuit voltage; Complex array. |
| 216 | + % Open circuit voltage; Complex array. |
217 | 217 | calllib(obj.libname, 'ctx_Bus_Get_Voc_GR', obj.dssctx); |
218 | 218 | obj.CheckForError(); |
219 | 219 | result = obj.apiutil.get_complex128_gr_array(); |
220 | 220 | end |
221 | 221 |
|
222 | 222 | function result = get.Voltages(obj) |
223 | | - % (read-only) Complex array of voltages at this bus. |
| 223 | + % Complex array of voltages at this bus. |
224 | 224 | calllib(obj.libname, 'ctx_Bus_Get_Voltages_GR', obj.dssctx); |
225 | 225 | obj.CheckForError(); |
226 | 226 | result = obj.apiutil.get_complex128_gr_array(); |
227 | 227 | end |
228 | 228 |
|
229 | 229 | function result = get.YscMatrix(obj) |
230 | | - % (read-only) Complex array of Ysc matrix at bus. Column by column. |
| 230 | + % Complex array of Ysc matrix at bus. Column by column. |
231 | 231 | calllib(obj.libname, 'ctx_Bus_Get_YscMatrix_GR', obj.dssctx); |
232 | 232 | obj.CheckForError(); |
233 | 233 | result = obj.apiutil.get_complex128_gr_array(); |
234 | 234 | end |
235 | 235 |
|
236 | 236 | function result = get.Zsc0(obj) |
237 | | - % (read-only) Complex Zero-Sequence short circuit impedance at bus. |
| 237 | + % Complex Zero-Sequence short circuit impedance at bus. |
238 | 238 | calllib(obj.libname, 'ctx_Bus_Get_Zsc0_GR', obj.dssctx); |
239 | 239 | obj.CheckForError(); |
240 | 240 | result = obj.apiutil.get_complex128_gr_simple(); |
241 | 241 | end |
242 | 242 |
|
243 | 243 | function result = get.Zsc1(obj) |
244 | | - % (read-only) Complex Positive-Sequence short circuit impedance at bus. |
| 244 | + % Complex Positive-Sequence short circuit impedance at bus. |
245 | 245 | calllib(obj.libname, 'ctx_Bus_Get_Zsc1_GR', obj.dssctx); |
246 | 246 | obj.CheckForError(); |
247 | 247 | result = obj.apiutil.get_complex128_gr_simple(); |
248 | 248 | end |
249 | 249 |
|
250 | 250 | function result = get.ZscMatrix(obj) |
251 | | - % (read-only) Complex array of Zsc matrix at bus. Column by column. |
| 251 | + % Complex array of Zsc matrix at bus. Column by column. |
252 | 252 | calllib(obj.libname, 'ctx_Bus_Get_ZscMatrix_GR', obj.dssctx); |
253 | 253 | obj.CheckForError(); |
254 | 254 | result = obj.apiutil.get_complex128_gr_array(); |
255 | 255 | end |
256 | 256 |
|
257 | 257 | function result = get.kVBase(obj) |
258 | | - % (read-only) Base voltage at bus in kV |
| 258 | + % Base voltage at bus in kV |
259 | 259 | result = calllib(obj.libname, 'ctx_Bus_Get_kVBase', obj.dssctx); |
260 | 260 | obj.CheckForError(); |
261 | 261 | end |
262 | 262 |
|
263 | 263 | function result = get.puVLL(obj) |
264 | | - % (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. |
| 264 | + % 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. |
265 | 265 | calllib(obj.libname, 'ctx_Bus_Get_puVLL_GR', obj.dssctx); |
266 | 266 | obj.CheckForError(); |
267 | 267 | result = obj.apiutil.get_complex128_gr_array(); |
268 | 268 | end |
269 | 269 |
|
270 | 270 | function result = get.puVmagAngle(obj) |
271 | | - % (read-only) Array of doubles containing voltage magnitude, angle (degrees) pairs in per unit |
| 271 | + % Array of doubles containing voltage magnitude, angle (degrees) pairs in per unit |
272 | 272 | calllib(obj.libname, 'ctx_Bus_Get_puVmagAngle_GR', obj.dssctx); |
273 | 273 | obj.CheckForError(); |
274 | 274 | result = obj.apiutil.get_float64_gr_array(); |
275 | 275 | end |
276 | 276 |
|
277 | 277 | function result = get.puVoltages(obj) |
278 | | - % (read-only) Complex Array of pu voltages at the bus. |
| 278 | + % Complex Array of pu voltages at the bus. |
279 | 279 | calllib(obj.libname, 'ctx_Bus_Get_puVoltages_GR', obj.dssctx); |
280 | 280 | obj.CheckForError(); |
281 | 281 | result = obj.apiutil.get_complex128_gr_array(); |
|
0 commit comments