Skip to content
Snippets Groups Projects
Commit 75f3e040 authored by Simon Barner's avatar Simon Barner
Browse files

GREEN

- With minor changes

Issue-Ref: 4031
Issue-Url: https://af3-developer.fortiss.org/issues/4031



Signed-off-by: default avatarSimon Barner <barner@fortiss.org>
parent 1b46965a
No related branches found
No related tags found
1 merge request!36[4031] Add inverted pendulum co-simulation example
af3_faq.html d8c75496edc6c9f92de3b6232f5807a098ac6c5e GREEN
example_co-simulation.html 0a596270a252905f4fe63fd09a91b267043ec82b YELLOW
example_co-simulation.html bff08158abf7a4da63edccc11110ec0ecd3f3c7e GREEN
examples.MainPage.html 35767ea5322b5fd47a9cca1c5e766b6a08ace244 GREEN
furtherResources.MainPage.html f55b30fcb7f05731f948970e7d8f74ab4c968e52 GREEN
getting_started.html b86d1cd97ff68a01aa55e12b46e7cf7f08c79b70 GREEN
......
......@@ -125,8 +125,8 @@
<b>Note:</b> The following example has been tested on <b>Windows</b> only. We are aware of a bug preventing the simulation of Overture FMUs with OpenModelica on Linux. macOS is not supported as of now.
</p>
The following example illustrates the co-simulation capabilities of AutoFOCUS 3 and shows how this feature can be leveraged for tool-interoperability.
To highlight the potential of the Functional Mock-up Interface (FMI) standard, the following example considers a controlled inverted pendulum.
The example at hand illustrates the co-simulation capabilities of AutoFOCUS 3 and shows how this feature can be leveraged for tool-interoperability.
To highlight the potential of the Functional Mock-up Interface (FMI) standard, we consider a controlled inverted pendulum.
On the one hand, both the pendulum's dynamics and the PID controller are modeled using OpenModelica - a tool dedicated to the development of continuous systems.
The input and environment models, on the other hand, have been developed in AutoFOCUS 3 and Overture respectively - both representing models with a discrete notion of time.
......@@ -161,6 +161,7 @@
<h3>AutoFOCUS 3</h3>
<ol>
<li>Install GCC as explained in the <a href="./ModandSim/cosimulation_with_af3.html">AutoFOCUS 3 co-simulation documentation</a></li>
<li>Download the following AutoFOCUS 3 model: <a href="./gettingStarted/dat/af3_input.af3_23">Input Model</a></li>
<li>Import the project: <b>'File &rarr; Import AF3-Project'</b></li>
</ol>
......@@ -171,8 +172,7 @@
<li><a href="http://overturetool.org/download/">Download</a>, unzip and launch Overture</li>
<li>Install the FMI exporter for Overture following these instructions: <a href="https://into-cps-association.github.io/constituent-model-development/overture/fmi-support.html">FMI support for Overture</a></li>
<li>Download the following Overture project: <a href="./gettingStarted/dat/overture_environment.zip">Environment Model</a></li>
<li>Unzip the archive.</li>
<li>Import the project: <b>'File &rarr; Import... &rarr; General &rarr; Existing Projects into Workspace'</b></li>
<li>Import the project: <b>'File &rarr; Import... &rarr; General &rarr; Existing Projects into Workspace &rarr; Select archive file'</b></li>
</ol>
<h3>OpenModelica</h3>
......@@ -180,7 +180,8 @@
<ol>
<li><a href="https://openmodelica.org/">Download</a></td> and install OpenModelica</li>
<li>Download the following OpenModelica model: <a href="./gettingStarted/dat/openmodelica_system.mo">System &amp; Controller Model</a></li>
<li>Import the project: <b>'File &rarr; Open Model/Library Files(s)'</b></li>
<li>Launch OMEdit - OpenModelica Connection Editor</li>
<li>Import the project: <b>'File &rarr; Open Model/Library Files(s)'</b> and open it by double-clicking <tt>openmodelica_system</tt></li>
</ol>
<h2>FMU Export</h2>
......@@ -188,8 +189,8 @@
<h3>AutoFOCUS 3</h3>
<ol>
<li>Create a folder within the AF3 workspace. FMUs cannot be exported to the workspace's root folder.</li>
<li>Export the <b>Input</b> component as FMU: <b>'[Right-click on component] &rarr; Export to FMU 2.0'</b></li>
<li>Switch to the <i>Storage</i> perspective and create a folder within the AF3 workspace. FMUs cannot be exported to the workspace's root folder.</li>
<li>Return to the <i>Modeling</i> perspective and export the <b>Input</b> component as FMU: <b>'[Right-click on component] &rarr; Export to FMU 2.0'</b></li>
<li>Set the component to be executed at a frequency of <b>100 Hz</b> and store it in the previously created folder within AF3's workspace.</li>
</ol>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment