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: Simon Barner's avatarSimon Barner <barner@fortiss.org>
parent 1b46965a
af3_faq.html d8c75496edc6c9f92de3b6232f5807a098ac6c5e GREEN af3_faq.html d8c75496edc6c9f92de3b6232f5807a098ac6c5e GREEN
example_co-simulation.html 0a596270a252905f4fe63fd09a91b267043ec82b YELLOW example_co-simulation.html bff08158abf7a4da63edccc11110ec0ecd3f3c7e GREEN
examples.MainPage.html 35767ea5322b5fd47a9cca1c5e766b6a08ace244 GREEN examples.MainPage.html 35767ea5322b5fd47a9cca1c5e766b6a08ace244 GREEN
furtherResources.MainPage.html f55b30fcb7f05731f948970e7d8f74ab4c968e52 GREEN furtherResources.MainPage.html f55b30fcb7f05731f948970e7d8f74ab4c968e52 GREEN
getting_started.html b86d1cd97ff68a01aa55e12b46e7cf7f08c79b70 GREEN getting_started.html b86d1cd97ff68a01aa55e12b46e7cf7f08c79b70 GREEN
......
...@@ -125,8 +125,8 @@ ...@@ -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. <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> </p>
The following example illustrates the co-simulation capabilities of AutoFOCUS 3 and shows how this feature can be leveraged for tool-interoperability. 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, the following example considers a controlled inverted pendulum. 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. 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. 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 @@ ...@@ -161,6 +161,7 @@
<h3>AutoFOCUS 3</h3> <h3>AutoFOCUS 3</h3>
<ol> <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>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> <li>Import the project: <b>'File &rarr; Import AF3-Project'</b></li>
</ol> </ol>
...@@ -171,8 +172,7 @@ ...@@ -171,8 +172,7 @@
<li><a href="http://overturetool.org/download/">Download</a>, unzip and launch Overture</li> <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>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>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 &rarr; Select archive file'</b></li>
<li>Import the project: <b>'File &rarr; Import... &rarr; General &rarr; Existing Projects into Workspace'</b></li>
</ol> </ol>
<h3>OpenModelica</h3> <h3>OpenModelica</h3>
...@@ -180,7 +180,8 @@ ...@@ -180,7 +180,8 @@
<ol> <ol>
<li><a href="https://openmodelica.org/">Download</a></td> and install OpenModelica</li> <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>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> </ol>
<h2>FMU Export</h2> <h2>FMU Export</h2>
...@@ -188,8 +189,8 @@ ...@@ -188,8 +189,8 @@
<h3>AutoFOCUS 3</h3> <h3>AutoFOCUS 3</h3>
<ol> <ol>
<li>Create a folder within the AF3 workspace. FMUs cannot be exported to the workspace's root folder.</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>Export the <b>Input</b> component as FMU: <b>'[Right-click on component] &rarr; Export to FMU 2.0'</b></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> <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> </ol>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment