Macrocommando Storingsanalyse

<< Click to Display Table of Contents >>

Navigation:  Macros > Macro commands and parameters > Macro calculating commands >

Macrocommando Storingsanalyse

Purpose:

Calculation of fault analysis for selected nodes and branches. Parameters include transformer arrangements, shunt arrangements and percentages.

 

General notation:

FailureAnalysis ( [transformer controls] , [PQcontrols], [generation], [load], [PV], [wind], [solar time], [transformer control tactics] )

 

The parameters may be omitted from the last one forward. If omitted, the default value below applies.

 

The parameters correspond to the fault analysis settings:

transformer controls: true/false for yes/no automatic adjustment of transformer report switches (default true)

PQcontrols: true/false for applying/not applying the capacitor and coil controls and P and Q controls of load, PV, wind turbine and battery (default true)

generation: generation scaling percentage (default 100)

Load: load scaling percentage (default 100)

PV: PV scaling percentage (default 100)

wind: wind scaling percentage (default 100)

solar time: date time as a broken number (around 44000; default 0/n/a)

trafo control tactic: 0:nothing special; -1:control to low voltage; 1:control to high voltage

 

After successful execution, Network.Result and Object.Result are equal to 'FAILA'.

 

The Selected attribute is modifiable within the macro. Initially, the 'selected' attributes have the value as selected in the network.

 

Example:

 

failureanalysis(TRUE,TRUE,100,100,100,100,0)

for(node,onenode)

 if (onenode.result,=,'FAILA') 

         text(onenode) 

         if (onenode.switchedbranch1,<>,NIL) 

                 text(anode.switchedbranch1)

         end 

 if (anode.switchedbranch2,<>,NIL) 

         text(anode.switchedbranch2)

 end 

 text()

 end

end