Publicerad: 2019-02-26
ISBN: 978-91-7685-148-7
ISSN: 1650-3686 (tryckt), 1650-3740 (online)
In this paper, a new method of importing FMUs (Functional Mock-up Unit) [1] to a multi-domain, mixed-mode simulator is presented. Supporting FMI (Functional Mock-up Interface) 2.0 for Model Exchange by converting an FMU to an HDL (Hardware Description Language) wrapper model not only takes advantage of the existing simulator capabilities, but also avoids a significant amount of work in the core of the simulator. The selected HDL in this paper is MAST which is used in both Saber and SaberHDL simulators [2][7]. To make the FMU import process easier, a general conversion utility, FMU2MAST, was developed which converts an FMU to a MAST model automatically. Two examples, bouncing ball and motor drive system are presented. With these two examples, three techniques used in this method are discussed: Accurate event detection in a variable time-step integration algorithm; Re-initialization of a state variable in MAST; and solving DAE (Differential Algebraic Equation) of a coupling FMUs system. This new FMU import method has been proved a success with 44 examples exported from five different tools.
1. Functional Mock-up Interface for Model Exchange and Co-Simulation, 2.0 July 25, 2014. https://www.fmistandard.org/downloads
2. OpenMAST Language Reference Manual, 1.0, June 2004.
3. Christian Bertsch, Award Mukbil, Andreas Junghanns, Improve Interoperability of FMI-supporting Tools with Reference FMUs, pp. 533-540, Proceedings of the 12th International Modelica Conference, May 15-17, 2017, Prague, Czech Republic
4. R. Scott Coopper, The Designer’s Guide to Analog & Mixed-Signal Modeling, March 1, 2001
5. Modelica – A Unified Object-Oriented Language for Physical System Modeling Language Specification, Version 3.0, September 5, 2007
6. Peter J. Ashenden, Gregory D. Peterson, Darrel A. Teegarden, The System Designer’s Guide to VHDL-AMS: Analog, Mixed-Signal, and Mixed-Technology Modeling, September 10, 2002 7. Saber Simulator Guide: Reference Manual, Synopsys, June 2006
8. Yutaka Hirano, Satoshi Shimada, “Initiatives for acausal model connection using FMI in JSAE”, Proceedings of the 11th International Modelica Conference September 21-23, 2015, Versailles, France
9. T. Blochwitz, M. Otter et al., “Functional Mockup Interface 2.0: The Standard for Tool independent Exchange of Simulation Models”, Proceedings of the 9th International Modelica Conference, September 3-5, 2012, Munich, Germany