//Create an equivalent circuit for bus 6 Script Base { //This script will solve the power flow and set the base //case for difference flows. //To solve the power flow we have to enter powerflow mode. Entermode(PowerFlow); //Solve the power flow: SolvePowerFlow; //Set the current state as the base case for difference flows. DiffFlowSetAsBase; } DATA (Equiv_Options, [DeleteAllExtGen]) { //Delete all external generators when creating an equivalent? "YES" } Data (BUS, [BusNum, BusEquiv]) { //Specify which buses are in the study system (stay the same) //and which are in the external system (create an equivalent) //Bus Number Study or External? //----------------------------------- 1 "Study" 2 "Study" 3 "Study" 4 "Study" 5 "Study" 6 "External" 7 "Study" } Script Equivalence { //Now we will create the equivalent system. //To do this we must be in Case mode. Entermode(Case); //Create the equivalent based on the data we entered above: Equivalence; } Script PowerFlow { //Solve the power flow for the equivalent system //First enter PowerFlow mode Entermode(PowerFlow); //Solve the power flow SolvePowerFlow; //Show the solution as a difference flow, comparing the power //flow of the equivalent system to that of the original system. DiffFlowMode("DIFFERENCE"); //Now look at the difference flow to see if the equivalent is a //good approximation to the original circuit. //A good approximation will not have many differences. }