Provides documentation about the Modelica models for the paper '"Power System Modeling for Identification and Control Applications using Modelica and OpenIPSL"
Wolfram System Modeler is developed by Wolfram MathCore, is a simulation software for engineering modeling and simulation based on the Modelica language. Find more information about WSM: here
You will need either a trial version or a license for WSM. To get a trial, follow the link here
WSM runs on Windows, Mac OSX or Linux, see what versions are supported here.
It is recommended you get familiar with WSM by following the WSM Quick Start.
While using these models would require some familiarity with Modelica and WSM, the packages have been setup so that users without such experience can run some of the default simulations.
In the instructions below, we illustrate how to load the OpenIPSL library and the Example1
& Example2
packages:
C:\Users\myUserName\Documents\WSM
in Windows or /Users/myUserName/Documents/WSM
or OSX.Launch WSM and go to File > Open >
, and navigate the folder C:\Users\myUserName\Documents\WSM\OpenIPSL-3.0.1\OpenIPSL-3.0.1\OpenIPSL\
in Windows or /Users/myUserName/Documents/WSM/OpenIPSL-3.0.1/OpenIPSL/
, select the file package.mo
and click on Open
This will load OpenIPSL on WSM’s Class Browser
under User Classes
, as shown below:
C:\Users\myUserName\Documents\WSM\CCTA-OpenIPSL-1.0.x\Example1
in Windows or /Users/myUserName/Documents/WSM/CCTA-OpenIPSL-1.0.x/Example1
in OS X. Then, select the file package.mo
and click on Open
. This will load the package, Example1
in WSM’s Class Browser
browser as shown below.
C:\Users\myUserName\Documents\WSM\CCTA-OpenIPSL-1.0.x\Example2
or in OSX to /Users/myUserName/Documents/WSM/CCTA-OpenIPSL-1.0.x/Example2
, select the file package.mo
and click on Open
. This will load the package, Example2
in WSM’s User Classes
browser as shown below.
Before the models are simulated, is good practice to Validate
it.
Click the arrow next to the Example1
red icon and continue navigating in this way until reaching: Example1.Analysis.RedesignedControllerVerification.C0_8cycles
as shown in the figure below.
Right click on the model C0_8cycles
and then right click on Validate
. This should result a message in the Translation
message window similar to the one in the figure below, note that it indicates Validation of model .... completed successfully
.
Next, repeat the process for one of the models under the Example2
package by clicking on the arrow next to the green icon of Example2
and navigating to Example2.Analysis.PFVariants.Ramping_pf
.
After validating the model, ou should see in the Translation
message window similar to that shown for Example 1.
If validation or simulation fail for either of the listed examples above, you must likely do not have loaded the Modelica Standard Library version 4.0.0. To fix this, go to the Class Browser
and under Libraries
right click on Modelica
. In the pop-up context menu that appears, go to Version
and select 4.0.0
, as shown in the figure below.
.
Any of the models that have been validated can be simulated.
C0_8cycles
model and validate it again. After validation, go to the the top of the toolbar and click on the Simulate Class
button:
.Simulation Center
, generate the code for the model, compile it and run the simulation. If successfull, the Simulation Log
will display the simulation statistics. Furthermore, you can plot the simulation results and zoom-in to a region of interest as shown below. See more on how to use the features of Simulation Center here
Example2
package. Navigate to Example2.Analysis.PFVariants.Ramping_pf
in WSM’s Class Browser, validate the model and click on the Simulate Class
button. This will launch WSM’s Simulation Center
again, which will execute the process required to obtain the simulation results. Once the results are ready, you can plot the results as whon in the figure below.
Note: be patient, this model will take a while to run in WSM!Performing model linearization and linear analysis requires the use of Wolfram Mathematica along with WSM. See an example here.
Nevertheless, at the time of writting this documentation and paper (03/2024), the Wolfram Mathcore team informed us that there is a bug in the current version of WSM (v.14.0.0) that prevent’s the models from successfully being linearized. You can reach out to support@wolfram.com, who are dealing with this issue to check if there is any progress since then.
To go back to the main page, click here