You can call the function DoFault to simulate short circuits. The options available in this function are the same as those in the Fault | Specify Classical Fault command in OneLiner.
After a fault simulation, you can copy the voltage and current results into PowerScript program variables for reports or for further processing.
Because a single fault simulation command in OneLiner can initiate simulation of multiple faults of different fault types and branch outages, you must call the function ShowFault or PickFault to specify the fault of interest.
You can use the functions GetSCVoltage and GetSCCurrent to retrieve post-fault voltage and current at the terminals of a network object. You can get the total fault current by calling GetSCCurrent with the pre-defined handle of short circuit solution, HND_SC.
PowerScript function GetRelayTime is used to retrieve operating time of a given relay.
DoFault Simulates one or more faults.
FaultDescription Returns the fault description in a string.
GetRelayTime Gets the operating time of a relay.
GetSCCurrent Gets the current flow for a load, generator, shunt or branch.
GetSCVoltage Gets the voltage at a bus or at the end buses of a branch.
PickFault Selects one of the fault results.
ShowFault Selects one of the fault results and show it on one-line diagram.