PowerWorld Project Initialization Script
Included in every project file is an initialization script file called OPENPWB.SCP. This is a special type of PowerWorld script file that is used to unload the contents of the project that are used in the simulation. This file must begin with the keyword "INITIALIZATION" and terminate with the keyword "END". Between these two lines, OPENPWB.SCP identifies the name of the case, any oneline diagrams that should be opened immediately, a template file (if any), a script file (if any), and one or more auxiliary data files (if any) to open and read into memory after extracting the files. The file might also contain the keyword "AUTOSTART", indicating that the simulation of the system described by the project file should commence immediately after it is read into memory. The OPENPWB.SCP is generated for you automatically when you save a new project file. Here is an example that loads the case B7FLAT.PWB (in PowerWorld binary format) along with oneline diagram B7FLAT.PWD, the template B7FLAT.PWT, the script B7FLAT.SCP, and the auxiliary file B7FLAT.AUX, and then starts the simulation immediately after all contents are extracted and read:
INITIALIZATION
CASE PWB B7FLAT.PWB
ONELINE B7FLAT.PWD
TEMPLATE B7FLAT.PWT
SCRIPT B7FLAT.SCP
DATAFILE B7FLAT.AUX
AUTOSTART
END
Again, all projects must contain the file OPENPWB.SCP. If a project does not contain this file, an error message will be shown. Simulator automatically includes an OPENPWB.SCP file with every project it creates. Therefore, unless you try to create a project file outside of Simulator, you will not have to worry about this requirement.