InterPSS is designed to be extensible and its open and loosely coupled system architect allows components developed by users to be easily plugged into the system to augment it functionality, and also important, allows its components to be integrated into other systems to provide certain functionality.Herein, we will demonstrate how to create a simple loadflow program in Elipse, which is an open source tools for Java development.
Before the actual implementation, you should make sure that you have done the following preparations:
Start Eclipse, select Window-->Preference-->Java -->Installed Jres, see below:
Then select Add to add the updated JRE version installed in your local driver:
Then select the JRE version that you have just added, for example, here we select jre1.6.0_06.
InterPSS is developed based on the Objected-orient programing style,using Java as its programming language.Detailed information about the programming style could be found here
We would demonstrate how to create a user-defined program based on the existing InterPSS project using a sample loadflow program.
for example, here we use "package com.stephen.scutep;", as shown below:
To do this, just right click the SampleACloadflow project--> build path -->configure build path --> Libraries,
Then select Add Extenrnal JARs, then go to the driver location where you installed InterPSS,
Then go to lib-->apache, select commons-math.jar,then click open,
You will see that the commons-math.jar has been added into the project,
Simularly to this, you could add other 6 jar documents into the project, their locatons are as:
ipss-plugin,jar, ipss-core.jar both are under Your InterPSS installation location \lib\ipss
org.eclipse.emf.*** are under Your InterPSS installation location \lib\eclipse
spring.jar is under Your InterPSS installation location\lib\spring
-->Application:
Then result would be displayed in the console window, as follow:
Load Flow Summary
Max Power Mismatches
Bus dPmax Bus dQmax
---------------------------------------------------
Bus2 0.000008 Bus2 0.000007 (pu)
0.795773 0.716587 (kva)
BusID Code Volt(pu) Angle(deg) P(pu) Q(pu)
----------------------------------------------------------------------------
Bus1 Swing 1.00000 0.0 1.1153 1.0306
Bus2 ConstP 0.84331 -4.1 -1.0000 -0.8000
Load Flow Summary
Max Power Mismatches
Bus dPmax Bus dQmax
---------------------------------------------------
Bus2 0.000000 Bus2 0.000000 (pu)
0.000771 0.000792 (kva)
BusID Code Volt(pu) Angle(deg) P(pu) Q(pu)
----------------------------------------------------------------------------
Bus1 Swing 1.00000 0.0 0.9679 0.8431
Bus2 ConstP 0.86901 -3.6 -0.8855 -0.6783
Aclf FuncLoad Adjustment/Control
BusID Pact Qact V P(0) Q(0) Status
-------- -------- -------- -------- -------- -------- ------
Bus2 0.8855 0.6784 0.8690 1.0000 0.8000 on
Congratulations! You have successfully created your own loadflow program!