Skip to content

Commit b1462af

Browse files
committed
Dymola Documentation
Adding dymola documentation
1 parent cce6b31 commit b1462af

File tree

9 files changed

+61
-0
lines changed

9 files changed

+61
-0
lines changed
20.1 KB
Loading
81.1 KB
Loading
169 KB
Loading
30.8 KB
Loading
Loading
29.6 KB
Loading
292 KB
Loading

documentation/t.tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<toc-element topic="Overview.md"/>
1111
<toc-element topic="How-to-perform-Basic-Translation.topic"/>
1212
<toc-element topic="Open-Output-in-Wolfram-System-Modeler.md"/>
13+
<toc-element topic="Open-and-Simulate-in-Dymola.md"/>
1314
<toc-element topic="PreconfiguredImport.topic"/>
1415
</toc-element>
1516
</instance-profile>
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Open and Simulate in Dymola
2+
3+
The output files from the translation are located in the <>output' folder can be opened in any Modelica IDE. [Dymola](https://dymola.com/) will be used for this example.
4+
5+
6+
## Before you start
7+
8+
Make sure that:
9+
- You have cloned the [repository](https://github.com/alSETLab/XSLTConferencePaper/).
10+
- Install [Dymola](https://discover.3ds.com/free-trial-version-of-dymola-for-windows). To complete the steps below successfully you will need to have a license, you can get one [here](https://www.claytex.com/about-us/contact-us/).
11+
- Download the OpenIPSL library version 3.0.1 from this [link](https://github.com/OpenIPSL/OpenIPSL/releases/tag/v3.0.1). Uncrompress the .zip file and place it in a folder where you have read/write rights, e.g., <code>./Documents/Dymola/</code>
12+
13+
## Load and ``Check'' the Model
14+
15+
Before simulating a Modelica model, it is necessary to determine if the model is sytactically and sematically valid. This is carried out below for a test model.
16+
17+
1. Open Dymola
18+
19+
```bash
20+
Start -> All apps -> Dymola 2024x
21+
```
22+
23+
2. Load the OpenIPSL library
24+
25+
```bash
26+
File -> Open -> Load...
27+
```
28+
![Dymola Load](../images/dymola/01_loadopenipsl.png)
29+
30+
Browse to the location where you have saved OpenIPSL. Selecte the <code>package.mo</code>, from <code> ./YourFolderWithOpenIPSL/OpenIPSL/package.mo </code> file and click on <code>Open</code>.
31+
32+
![Dymola Load Package](../images/dymola/02_loadpackage.png)
33+
34+
35+
3. Load the <code>ieee14.mo</code> file
36+
```bash
37+
File -> Open -> Load...
38+
Find 'ieee14.mo' in the 'XSLTConferencePaper/output' folder.
39+
```
40+
41+
4. Locate the <code>ieee14_package</code> under the 'Projects Browser' of Dymola. Tip it over and double-click 'ieee14'.
42+
![Projects Browser](../images/dymola/03_check.png)
43+
44+
5. Click on the 'Graphics' tab of Dymola, then click the 'Check' button, which should show the message below:
45+
46+
![Check](../images/dymola/04_log.png)
47+
48+
## Simulate
49+
Having passed the check, you can now attempt to simulate the model.
50+
51+
1. Navigate to the 'Projects Browser' of Dymola, right click on the <code>ieee14</code> model and select 'Simulation Model'
52+
![Simulation Model](../images/dymola/05_simulationmodel.png)
53+
54+
2. Click on the 'Simulation' tab of Dymola, and click on the 'Simulate' icon.
55+
![Simulation Model](../images/dymola/06_simulate.png)
56+
57+
3. After the simulation is completed, select a few simulation outputs as shown below. Note that the fault applied results in an unstable system!
58+
![Simulation Result](../images/dymola/07_simoutput.png)
59+
60+
Have fun playing around with the model!

0 commit comments

Comments
 (0)