(method)


This method executes a direct solution from the system Y matrix, ignoring compensation currents of loads, generators (includes Yprim only).


Example


% Create DSS object

DSSObject = actxserver('OpenDSSEngine.DSS')

if ~DSSObject.Start(0),

                    disp('Unable to start openDSS');

                    return

end;

DSSText = DSSObject.Text;

DSSCircuit = DSSObject.ActiveCircuit;

% Compile a model        

DSSText.Command = 'Compile C:\myPath\myModel.dss';

DSSSolution = DSSCircuit.Solution;


% set the control iterations to 1000

DSSSolution.ControlIterations = 1000; 

% set simulation mode daily

DSSSolution.Mode = 1;

% set simulation step size 1 h

DSSSolution.StepSize = 1;


% Solve the model (Direct)

DSSSolution.SolveDirect(); 


% gets the new hour we are located

myHour = DSSSolution.Hour;