InterPSS transient stability simulation is designed to simulate electromechanical transients due to a large disturbance (Dynamic Event) or a sequence of such events in electric power systems.
If you are new to the InterPSS graphic One-line editor, please read the InterPSS Graphic Editor User Guide to get familar with the basic steps to create an InterPSS project.
Under the Application Type and Network Type, Select Transmission and TranStability to define a transient stability simulation project.
First you need to enter Bus loadflow data for establishing a steady-state as the initial condition for transient stability simulation. To add a machine dynamic model, you need to select Generator Type = Swing, PQ, PV or RemoteControl. If you would like to define a custom dynamic model for the bus, select the Dynamic Bus Device Scripting check box (see more discussion on this subject beblow).
Machine Parameter
After a bus has been defined and Generator Type selected (i.e. Swing, PV, PQ or RemoteControl), you need to determine the machine model and define machine parameters for Transient Stability Simulation. You can find more details about InterPSS machine models at InterPSS Reference manual in Transient Stability - Machine & Component Model. To add machine controllers (Excitation system, governor system, PSS), select the Has Excitation Controller and/or Has Governor Controller check box; the PSS is enabled by selecting Has Stabilizer in the Exciter Info tab.
Excitation System Parameter
Various types of excitation system models are included in the InterPSS. To define an excitation system, select an excitation system model in the Type drop down list and enter the necessary parameters. For more detailed information on InterPSS excitation system implementation, please see InterPSS Reference Manual Transient Stability - Excitation System. A user can also select the CML Scripting Exciter to define a custom excitation system using InterPSS Controller Modeling Language (CML). Check the Has Stabilizer box if you want to add a Power System Stabilizer (PSS).
Governor Parameter
Similar to Excitation System, various types of governor models are also included in the InterPSS. To define a Governor system, you need to select an existing InterPSS governor system model from the Type drop down list and then enter necessary parameters. please see InterPSS Reference Manual Transient Stability - Governor System. You can also select the CML Scripting Governor to define a custom governor system by using InterPSS Controller Modeling Language (CML).
Stabilizer Parameter
Similar to the Excitation System, various types of Power System Stabilizer models, or simply referred as Stabilizer in InterPSS, are also included. To define a power system stabilizer, select an existing InterPSS PSS implementation from the Type drop down list and then enter necessary parameters. For more detailed information on the implementation of InterPSS PSS implementation, please see the InterPSS Reference Manual Transient Stability - Stabilizer System. You can also select the CML Scripting Stabilizer to define a custom PSS by using InterPSS Controller Modeling Language (CML).
Controller Modeling Language(CML)
When you select CML controller type, for example CML Scripting Exciter, you will be presented with an editor dialog box with some sample code. You can define your own custom controller model by writing CML scripts. After completing the editing, click the Save button to save your scripts. At this time, InterPSS will compile your scripts. If there is any error, you will be presented with error messages, as shown in the following diagram.
InterPSS Controller Modeling Language is designed to simplify controller modeling for transient stability simulation. One can write CML scripts to define a custom controller, including Exciter, Governor and Stabilizer. You can find more info about CML at the following links:
Dynamic Bus Device Scripting
If the standard InterPSS machine and controller models do not meet your simulation requirement, you can create a custom bus simulation mode by using Dynamic Bus Device scripting. In this approach, you can define a dynamic source or load, where source/load injection current into the network is a function of bus voltage and time
I = f(V, t)
The function could be a set of differential and/or static equations. Dynamic Bus Device gives you a generic way to script such a function. It could be used to model dynamic load including motors, SVC, FACTS or complex generation station dynamics. For more details, see InterPSS Extension Guide - How to Script Dynamic Bus Device .
Branch data required for transient stability simulation is the same as the Short Circuit analysis.
Branch data is prepared the same way as preparing branch data for Loadflow analysis and Short Circuit analysis.
After completing data entry of a transient stability simulation project, you can run simulation by select the Run/Transient Stability menu item or the Run TS button. The simulation progress bar will show the progress of a simulation run with a percentage Run DStab (14%).
For details on all types of Dynamic Event, see the Transient Stability - Dynamic Events reference document.
InterPSS uses loadflow module to establish a steady-state condition for transient stability simulation. This panel allows you to define initialization related parameters, which are the same as InterPSS loadflow analysis. See InterPSS Loadflow User Guide for details.
InterPSS by default outputs all simulation states and variable to its internal database for simulation result display/output purpose. This however will sometime slow down the simulation, since it takes time to write the result to the database, especially for a large size system. When you select the Output state/variable Filter option on the Simulation panel, you have the choice to select a set of states and/or variables to be included in the output list. In this way, you can speed up the simulation process by saving less data into the database. When you select a machine, the output includes all machine states and its controller states, including Excitation system, Governor, PSS.
In the above case, machine states of machine on Bus 0004 and bus variables at Bus 0001 will be output to the database, and available to display after the simulation.
After completing a simulation, right-click a bus, you can have choice to plot any state variable associated with the bus.
You can also select Output->Plot Stability Curve to launch the Simulation Plotting Dialog.
The "P" button allows you to plot a selected state/variable. The "S" allows you to produce scripted output. See the following section for details.
You can write scripts to output a set of variables in certain format. You can click the Scripting tab and write your scripts. Then click the S button to run your scripts.
The following are sample code for scripting the output,
public class OutDStabResult2TextDialog extends ScriptToolAdapter {
public void outDStabResult2TextDialog(
IOutputTextDialog textDialog, // out text dialog
List<String> nameList, // variable name list
List<Hashtable<String, String>> valueList // var value list ) {
// clear the text area
textDialog.clearTextArea();
/* do not modify anything above this line */
// create a comma delimited names (Time, Machine Angle ...
String nameLine = "";
int cnt = 0;
for ( String str : nameList) {
nameLine += str;
if ( cnt++ < nameList.size()-1)
nameLine += ", ";
}
textDialog.appendText(nameLine + "\n");
// create comma delimited value lines
for ( Hashtable<String, String> table : valueList) {
String valueLine = "";
for ( int j = 0; j < nameList.size(); j++) {
String name = nameList.get(j);
valueLine += table.get(name);
if ( j < nameList.size()-1)
valueLine += ", ";
}
textDialog.appendText(valueLine + "\n");
}
/* do not modify anything below this line */
// show the text dialog box
textDialog.showDialog();
}
}
Then you can save the output to a file by clicking the SaveAs button.
Transient stability simulation results are time domain points. They are normally plotted as plots. InterPSS currently provides a plot routine which allows you to plot machine states, bus variables and dynamic bus device states. Although the plot routine provides a quite convenient way to display the results, you may want to do customization or use some existing tools, such as Microsoft Excel, to do the plotting. You can use InterPSS scripting to export the data points to a CSV file and then use any tool to customize the plotting.
When you run a Transient Stability simulation case, you can check the Output Results Scripting option to write custom scripts to customize the simulation result output to a file in CVS format.
@AnDStabOutputScripting (
filename = "c:/tmp/ipssout.csv",
varList = { "str.Angle(Mach@0001), 0001, mach.angle", // display str, bus id, variable
"str.Speed(Mach@0001), 0001, mach.speed",
"str.Speed(Mach@0001), 0001, mach.pe",
"str.Efd(Mach@0001), 0001, exc.efd",
"str.PSS(Mach@0001), 0001, pss.vs",
"str.Voltage(Bus@0002), 0002, bus.vmag"}
)
In this case, you want to output machine.angle at Bus id:0004 under the header Angle(Mach@004). After the simulation, a CSV file will be created. Using Excel, you can process the results in the way you like. Using Microsoft Excel, you can load the CSV file and do further processing.