getBusInfo

Gets the information for all Bus in busNames

Contents

Syntax

Buses = getBusInfo(DSSCircObj);
Buses = getBusInfo(DSSCircObj,busNames);
Buses = getBusInfo(DSSCircObj,busNames,forceFindCoords);

Description

Function to get the information for buses in the OpenDSS circuit. If optional input busNames contains a cell array, the function will return a structure for each busName, otherwise Buses will contain all buses in the circuit.

Inputs

Outputs

Buses is a structure with all the parameters for the buses in busNames. Fields are:

Example

Returns bus information

[DSSCircObj, DSSText, gridpvPath] = DSSStartup;
DSSText.command = ['Compile "' gridpvPath 'ExampleCircuit\master_Ckt24.dss"'];
DSSText.command = 'solve';
Buses = getBusInfo(DSSCircObj) %Get information for all buses
Buses = getBusInfo(DSSCircObj,{'N1311915'}) %Get information for one bus
%
Buses = 

6058x1 struct array with fields:

    name
    numPhases
    nodes
    voltageAngle
    voltage
    voltagePU
    phaseVoltages
    phaseVoltagesPU
    distance
    kVBase
    seqVoltages
    cplxSeqVoltages
    ZscMatrix
    Zsc1
    Zsc0
    YscMatrix
    coordinates


Buses = 

               name: 'N1311915'
          numPhases: 1
              nodes: 1
       voltageAngle: 0.6600
            voltage: 2.0362e+04
          voltagePU: 1.0223
      phaseVoltages: [2.0362e+04 0 0]
    phaseVoltagesPU: [1.0223 0 0]
           distance: 2.3813
             kVBase: 19.9186
        seqVoltages: [-1 -1 -1]
    cplxSeqVoltages: [-1 -1 -1 -1 -1 -1]
          ZscMatrix: 0
               Zsc1: [0 0]
               Zsc0: [0 0]
          YscMatrix: 0
        coordinates: [31.6145 -80.9461]