Difference between revisions of "Importing FMU From Dymola"
(→Run Test using FMU) |
|||
(13 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
=Workflow= | =Workflow= | ||
We support importing Dymola FMU into SimWB. To run the FMU in SimWB, we need binary for Linux 64-bit or 32-bit depending on the SimWB server. Dymola is currently only available in Windows and they are working towards having a Linux version as well. Meanwhile we need to follow the steps below to get a working FMU in SimWB. Following steps assume you are using Dymola 2015. | We support importing Dymola FMU into SimWB. To run the FMU in SimWB, we need binary for Linux 64-bit or 32-bit depending on the SimWB server. Dymola is currently only available in Windows and they are working towards having a Linux version as well. Meanwhile we need to follow the steps below to get a working FMU in SimWB. Following steps assume you are using Dymola 2015. | ||
− | <div class="toccolours mw-collapsible mw-collapsed" style="width: | + | <div class="toccolours mw-collapsible mw-collapsed" style="width:800px"> |
===Create FMU in Dymola=== | ===Create FMU in Dymola=== | ||
<div class="mw-collapsible-content"> | <div class="mw-collapsible-content"> | ||
*Create Model in Dymola 2015 | *Create Model in Dymola 2015 | ||
− | [[File:FilterModelDymola.png]] | + | [[File:FilterModelDymola.png|800px|left]] |
*Go to 'Simulation' Panel of Dymola | *Go to 'Simulation' Panel of Dymola | ||
− | [[File:FilterModelDymolaSimulation.png]] | + | [[File:FilterModelDymolaSimulation.png|800px|left]] |
*Setup the model for FMU export | *Setup the model for FMU export | ||
**Open Setup Panel by clicking the 'Setup' option in 'Simulation' menu | **Open Setup Panel by clicking the 'Setup' option in 'Simulation' menu | ||
− | [[File:FilterModelDymolaSetup.png]] | + | [[File:FilterModelDymolaSetup.png|800px|left]] |
**This will show the 'General' Setup tab as shown below | **This will show the 'General' Setup tab as shown below | ||
− | [[File:FilterModelDymolaSetupGeneral.png]] | + | [[File:FilterModelDymolaSetupGeneral.png|800px|left]] |
**Click on the 'FMI' Setup tab. Make sure to select 'Cosimulation' mode, Version '2.0', 'Include source code' in the options as shown below. We also support version '1.0'. | **Click on the 'FMI' Setup tab. Make sure to select 'Cosimulation' mode, Version '2.0', 'Include source code' in the options as shown below. We also support version '1.0'. | ||
− | [[File:FilterModelDymolaSetupFMI.png]] | + | [[File:FilterModelDymolaSetupFMI.png|800px|left]] |
*Generate FMU using the 'Translate' option in 'Simulation' menu. | *Generate FMU using the 'Translate' option in 'Simulation' menu. | ||
− | [[File:FilterModelDymolaTranslateFMU.png]] | + | [[File:FilterModelDymolaTranslateFMU.png|800px|left]] |
* The generated FMU file is usually located in 'Documents' folder. | * The generated FMU file is usually located in 'Documents' folder. | ||
− | [[File:FilterModelDymolaExplorer.png]] | + | [[File:FilterModelDymolaExplorer.png|800px|left]] |
</div></div> | </div></div> | ||
− | <div class="toccolours mw-collapsible mw-collapsed" style="width: | + | <div class="toccolours mw-collapsible mw-collapsed" style="width:800px"> |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
===Import FMU to SimWB=== | ===Import FMU to SimWB=== | ||
<div class="mw-collapsible-content"> | <div class="mw-collapsible-content"> | ||
* Open the 'FMU Models' pane in SimWB | * Open the 'FMU Models' pane in SimWB | ||
* Click on ''Select FMU file' button and navigate to the location of FMU created above. | * Click on ''Select FMU file' button and navigate to the location of FMU created above. | ||
− | [[File:FilterModelSimWBImport.png]] | + | [[File:FilterModelSimWBImport.png|800px|left]] |
* Click on 'Parse FMU' button. This will show the input, output, and parameter variables available in FMU to be mapped to RTDB. Inputs and Outputs are selected by default. You can select other variables as required. | * Click on 'Parse FMU' button. This will show the input, output, and parameter variables available in FMU to be mapped to RTDB. Inputs and Outputs are selected by default. You can select other variables as required. | ||
− | [[File:FilterModelSimWBParse.png]] | + | [[File:FilterModelSimWBParse.png|800px|left]] |
* Click on 'New RTDB' button, provide a name for the RTDB to be created, and click 'Generate RTDB' | * Click on 'New RTDB' button, provide a name for the RTDB to be created, and click 'Generate RTDB' | ||
− | [[File:FilterModelSimWBGenerateRTDB.png]] | + | [[File:FilterModelSimWBGenerateRTDB.png|800px|left]] |
* Click on the 'Install FMU' button to install the FMU. | * Click on the 'Install FMU' button to install the FMU. | ||
− | [[File:FilterModelSimWBInstallFMU.png]] | + | [[File:FilterModelSimWBInstallFMU.png|800px|left]] |
* Click on the 'Create FMU Model' to create a FMU model object in SimWB | * Click on the 'Create FMU Model' to create a FMU model object in SimWB | ||
− | [[File:FilterModelSimWBCreateFMUModelObject.png]] | + | [[File:FilterModelSimWBCreateFMUModelObject.png|800px|left]] |
* Now we are ready to use this object in any test like any other model | * Now we are ready to use this object in any test like any other model | ||
</div></div> | </div></div> | ||
− | <div class="toccolours mw-collapsible mw-collapsed" style="width: | + | <div class="toccolours mw-collapsible mw-collapsed" style="width:800px"> |
===Run Test using FMU=== | ===Run Test using FMU=== | ||
Line 89: | Line 43: | ||
* Select the RTDB created for the FMU | * Select the RTDB created for the FMU | ||
* In the models section, right click and add FMU model from the 'FMU models' list | * In the models section, right click and add FMU model from the 'FMU models' list | ||
− | [[File:FilterModelSimWBCreateTest.png]] | + | [[File:FilterModelSimWBCreateTest.png|800px|left]] |
* Create a new Test Session | * Create a new Test Session | ||
− | [[File:FilterModelSimWBCreateTestSession.png]] | + | [[File:FilterModelSimWBCreateTestSession.png|800px|left]] |
* Run the session and change the input to see the output | * Run the session and change the input to see the output | ||
− | [[File:FilterModelSimWBRTViewer.png]] | + | [[File:FilterModelSimWBRTViewer.png|800px|left]] |
</div></div> | </div></div> | ||
=External Links= | =External Links= | ||
#[http://www.3ds.com/products-services/catia/capabilities/systems-engineering/modelica-systems-simulation/dymola Dymola] | #[http://www.3ds.com/products-services/catia/capabilities/systems-engineering/modelica-systems-simulation/dymola Dymola] |
Latest revision as of 18:34, 19 April 2017
Contents
Workflow
We support importing Dymola FMU into SimWB. To run the FMU in SimWB, we need binary for Linux 64-bit or 32-bit depending on the SimWB server. Dymola is currently only available in Windows and they are working towards having a Linux version as well. Meanwhile we need to follow the steps below to get a working FMU in SimWB. Following steps assume you are using Dymola 2015.
Create FMU in Dymola
- Create Model in Dymola 2015
- Go to 'Simulation' Panel of Dymola
- Setup the model for FMU export
- Open Setup Panel by clicking the 'Setup' option in 'Simulation' menu
- This will show the 'General' Setup tab as shown below
- Click on the 'FMI' Setup tab. Make sure to select 'Cosimulation' mode, Version '2.0', 'Include source code' in the options as shown below. We also support version '1.0'.
- Generate FMU using the 'Translate' option in 'Simulation' menu.
- The generated FMU file is usually located in 'Documents' folder.
Import FMU to SimWB
- Open the 'FMU Models' pane in SimWB
- Click on Select FMU file' button and navigate to the location of FMU created above.
- Click on 'Parse FMU' button. This will show the input, output, and parameter variables available in FMU to be mapped to RTDB. Inputs and Outputs are selected by default. You can select other variables as required.
- Click on 'New RTDB' button, provide a name for the RTDB to be created, and click 'Generate RTDB'
- Click on the 'Install FMU' button to install the FMU.
- Click on the 'Create FMU Model' to create a FMU model object in SimWB
- Now we are ready to use this object in any test like any other model