You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: kopl.md
+23-26Lines changed: 23 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -10,17 +10,18 @@ nav_order: 7
10
10
`Kopl` is a configurator to help set up and run a simulation. It can also be used to validate the model using the [MSMI validator](./model-interface-validator).
11
11
`Kopl` is not an open source software but can be freely used without any restrictions.
* Get the appropriate version of `Kopl`[here](./downloads).
26
27
* Unzip somewhere on disk and double click the `Kopl` executable
@@ -31,49 +32,45 @@ Here you have two options,either to create an empty configuration or point to an
31
32
* Expand the newly created configuration and double click the setup. This opens up the diagram for connecting several FMUs together.
32
33
* Use the palette on the right hand side to drag and drop components onto the diagram
33
34
34
-
# Adding a new FMU
35
+
##Adding a new FMU
35
36
* It is possible to drag an FMU from the file explorer onto the diagram or drag the FMU element from the Components menu in the Palette.
36
37
* When an FMU block is added to the diagram, you can double click it to open the editor for it.
37
38
* When creating a FMU block from the palette you need to point to the fmu on disk.
38
39
* Press the "load variables" action to read the model description within the FMU. The relevant variables should then be shown in the definitions tab
39
40
* It is now possible to make variables available as input or output. Press the plus button and select the wanted variable to use as input/output within the under the "Input" or "output" tabs.
40
41
41
-
# Connecting the FMUs
42
+
##Connecting the FMUs
42
43
* Once two or more FMUs are added to the diagram it is possible to add connections between the blocks.
43
44
Just start dragging from an output or input slot and drop when hovering over the correct terminal.
44
45
45
-
# Variable groups (MSMI)
46
+
##Variable groups (MSMI)
46
47
* If you want to follow the MSMI standard, you can start creating variable groups in the definitions tab within the variable groups tab.
47
48
* Click the green button or right click an empty space in the local navigator/tree widget
48
49
* Created variable groups may then be choosen as input or output to the FMU
49
50
50
-
<figure>
51
-
<imgsrc="/assets/img/Kopl-variablegroups.png">
52
-
<figcaptionclass="caption" >Definition of nested variable groups</figcaption>
53
-
</figure>
51
+
{% include figure.html
52
+
img="/assets/img/Kopl-variablegroups.png"
53
+
num="2"
54
+
caption="Definition of nested variable groups"
55
+
%}
54
56
55
-
# MSMI validation
57
+
##MSMI validation
56
58
57
59
Right click the configuration and choose validate in the context menu to let the [MSMI validator](./model-interface-validator) validate the current setup
58
60
59
-
# Export
61
+
##Export
60
62
61
63
Right click the configuration and choose export in the context menu, then choose between the different formats.
62
64
63
-
# Simulation
65
+
##Simulation
64
66
65
67
Right click the configuration and choose "Simulation" in the context menu, or run simulation in the diagram.
66
68
This will export the setup and use the CLI behind the scene. The CLI version can be switched (currently necessary on the Linux version) in the preferences.
67
69
See main menu->Tools->Preferences->CoSim configuration.
68
70
When the simulation is done you should be able to see the results in the navigator and basic ploting is available.
69
71
70
-
<figure>
71
-
<imgsrc="/assets/img/Kopl-results.png">
72
-
<figcaption>Results after a simulation is done </figcaption>
0 commit comments