Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
FMI TUTORIAL
John Batteh
Modelon Inc.
North America Modelica User’s Group
September 28-29, 2016
Troy, MI
2016-09-28 © Mode...
AGENDA
2016-10-11 © Modelon
• FMI Overview
• Tutorial Overview
• Hands-on Exercises
2
FUNCTIONAL MOCKUP INTERFACE (FMI)
• Tool independent standard to support both model exchange and co-
simulation of dynamic...
Combined simulation for system integration
Solution
 As a universal solution to this problem the Functional Mockup
Interf...
USE CASE II:
• Combine different modeling formats into
coherent co-simulation (cyber-physical systems)
 Physical models, ...
USE CASE III: VIRTUALIZATION FOR CONTROLS
2016-10-11 6
 The Functional Mock-up Interface (FMI) is a tool independent
standard for
 Model Exchange (ME)
 Co-Simulation (CS)
 T...
WHAT IS AN FMU?
• Component which implements the FMI standard is called
Functional Mockup Unit (FMU)
• Zipped file (*.fmu)...
ENSURING COMPATIBILITY
2016-10-11 9
https://www.fmi-standard.org/tools
FMI: A BUSINESS MODEL INNOVATION
• FMI-compliant tools often allow liberally licensed
export of models for distribution in...
FMI: A BUSINESS MODEL INNOVATION
1. Separate the model authoring tool
from the model execution tool!
2. Free the model uni...
IP PROTECTION
• FMUs contain compiled code
• FMU creator controls level of openness
 Internal variables
 Parameters
 In...
TYPICAL FMI-BASED WORKFLOWS
2016-10-11 13
Model Authoring Tool(s)
Low-cost Model Execution Platform
May combine FMUs from ...
DEVELOPMENT TO DEPLOYMENT
14
FMU Export
via Model
Export
PyFMI
Parameters
Results
Functional Mockup Interface (FMI)
FMU Si...
15
ALL CONNECTED!
PART II
Tutorial Overview
TUTORIAL OVERVIEW
• Goal: demonstrate FMI-based workflows in several FMI
compliant tools with hands-on exercises
 Modelic...
TUTORIAL USE CASE
2016-10-11 18
TUTORIAL USE CASE: VEHICLE
2016-10-11 19
TUTORIAL USE CASE: COOLING LOOP
2016-10-11 20
GETTING STARTED
• USB sticks passed around with all tutorial files
(instructions, software, licenses, sample files, FMUs)
...
LICENSING LOGISTICS
• Dymola
 Full Dymola license required for FMI import and export
• MapleSim
 Contact MapleSoft repre...
FMI VIDEOS
2016-10-11 23
Modelon YouTube Channel
https://www.youtube.com/results?s
earch_query=modelon
FMI Tech Day Replay...
john.batteh@modelon.com, (734) 274-5933
THANK YOU FOR YOUR ATTENTION
Upcoming SlideShare
Loading in …5
×

Modelon FMI Tutorial NAMUG 2016

5,479 views

Published on

Functional Mock-Up Interface (FMI) - Tool independent standard to support both model exchange and co-simulation of dynamic models

Published in: Technology

Modelon FMI Tutorial NAMUG 2016

  1. 1. FMI TUTORIAL John Batteh Modelon Inc. North America Modelica User’s Group September 28-29, 2016 Troy, MI 2016-09-28 © Modelon
  2. 2. AGENDA 2016-10-11 © Modelon • FMI Overview • Tutorial Overview • Hands-on Exercises 2
  3. 3. FUNCTIONAL MOCKUP INTERFACE (FMI) • Tool independent standard to support both model exchange and co- simulation of dynamic models • Original development of standard part of EU-funded MODELISAR project led and initiated by Daimler • First version FMI 1.0 published in 2010 • FMI currently supported by more than 85 tools (see www.fmi-standard.org for most up to date list) • Active development as Modelica® Association project • FMI 2.0 released July 2014 and brings additional functionality to FMI standard 32016-10-11
  4. 4. Combined simulation for system integration Solution  As a universal solution to this problem the Functional Mockup Interface (FMI) was developed by the EU-project MODELISAR, and is now maintained by the Modelica® Association USE CASE I: ? supplier1 supplier2 supplier3 supplier4 supplier5 OEM supplier1 tool 1 supplier2 supplier3 supplier4 supplier5 tool 2 tool 3 tool 4 tool 5 FMI OEM 2016-10-11 4
  5. 5. USE CASE II: • Combine different modeling formats into coherent co-simulation (cyber-physical systems)  Physical models, 1D-3D  Controls / Software 2016-10-11 5 FEA CFD Modelica / 1-D Systems Simulation FMI-based System Simulation Block Diagrams Controls
  6. 6. USE CASE III: VIRTUALIZATION FOR CONTROLS 2016-10-11 6
  7. 7.  The Functional Mock-up Interface (FMI) is a tool independent standard for  Model Exchange (ME)  Co-Simulation (CS)  The FMI defines an interface to be implemented by an executable called Functional Mock-up Unit (FMU) FMI FLAVORS Tool Solver FMU Model Tool FMU Model Solver
  8. 8. WHAT IS AN FMU? • Component which implements the FMI standard is called Functional Mockup Unit (FMU) • Zipped file (*.fmu) containing the XML description file and the implementation in source or binary form • Separation of description of interface data (XML file) from functionality (C code or binary) • Additional data and functionality can be included • Information and interface specification: www.fmi- standard.org 2016-10-11 8
  9. 9. ENSURING COMPATIBILITY 2016-10-11 9 https://www.fmi-standard.org/tools
  10. 10. FMI: A BUSINESS MODEL INNOVATION • FMI-compliant tools often allow liberally licensed export of models for distribution in the organization • Exported FMU’s most often don’t require a license from the model authoring tool • Deployment from few simulation specialists to designers, domain specialists, control engineers • One FMU used by many engineers (control design) • One FMU run on many cores (robust design) 2016-10-11 10
  11. 11. FMI: A BUSINESS MODEL INNOVATION 1. Separate the model authoring tool from the model execution tool! 2. Free the model unit (FMU) from license restrictions 3. Make the standard widely accepted: https://fmi-standard.org/tools 2016-10-11 11
  12. 12. IP PROTECTION • FMUs contain compiled code • FMU creator controls level of openness  Internal variables  Parameters  Inputs and outputs only • Suitable for sharing between OEMs and suppliers 2016-10-11 12
  13. 13. TYPICAL FMI-BASED WORKFLOWS 2016-10-11 13 Model Authoring Tool(s) Low-cost Model Execution Platform May combine FMUs from several tools Export: exported FMU freely licensed • Additional work flow automation for  pre-processing,  model calibration,  post-processing,  analysis,  automated reporting  automated requirements verification • True democratization of simulation • Greatly improved utilization of models
  14. 14. DEVELOPMENT TO DEPLOYMENT 14 FMU Export via Model Export PyFMI Parameters Results Functional Mockup Interface (FMI) FMU Simulator Custom GUI 2016-10-11
  15. 15. 15 ALL CONNECTED!
  16. 16. PART II Tutorial Overview
  17. 17. TUTORIAL OVERVIEW • Goal: demonstrate FMI-based workflows in several FMI compliant tools with hands-on exercises  Modelica models (vehicle thermal management, vehicle, cooling loop)  FMU creation (Dymola, MapleSim)  FMU import, simulation, and post-processing • FMI is a standard but we need tools to work with it • Several tools are provided to support tutorial, both open source and commercial (evaluation licenses) • Choose exercises based on interest and tools (note some have tool pre-requisites, i.e. MATLAB/Simulink) • FULL DISCLOSURE: tutorial based on tools in use at Modelon (full list of FMI-compliant tools at www.fmi- standard.org) 2011-09-30 © Modelon EFD
  18. 18. TUTORIAL USE CASE 2016-10-11 18
  19. 19. TUTORIAL USE CASE: VEHICLE 2016-10-11 19
  20. 20. TUTORIAL USE CASE: COOLING LOOP 2016-10-11 20
  21. 21. GETTING STARTED • USB sticks passed around with all tutorial files (instructions, software, licenses, sample files, FMUs) • Open FMIWorkshop.pdf with full tutorial instructions • Feel free to try your own FMI tools with workshop • Ask questions if you need help or have problems 2016-10-11 21
  22. 22. LICENSING LOGISTICS • Dymola  Full Dymola license required for FMI import and export • MapleSim  Contact MapleSoft representatives • MATLAB/Simulink  FMI Toolbox (evaluation license provided) + MATLAB/Simulink required for FMU import into Simulink  FMU export from Simulink also requires Simulink Coder • Excel  FMI Add-in for Excel (evaluation license provided)  Requires 32 bit Microsoft Office due to 32 bit FMUs • Evaluation licenses expire on October 3, 2016 but all FMUs included with tools execute with demo licenses per Users’ Guide (contact Modelon for more information) 2016-10-11 22
  23. 23. FMI VIDEOS 2016-10-11 23 Modelon YouTube Channel https://www.youtube.com/results?s earch_query=modelon FMI Tech Day Replay http://www.modelon.com/campaigns/2013-fmi-detroit/
  24. 24. john.batteh@modelon.com, (734) 274-5933 THANK YOU FOR YOUR ATTENTION

×