Arquitectura Para La Interoperabilidad De Unidades De Simulacion´ Basadas En Fmu

Total Page:16

File Type:pdf, Size:1020Kb

Arquitectura Para La Interoperabilidad De Unidades De Simulacion´ Basadas En Fmu ARQUITECTURA PARA LA INTEROPERABILIDAD DE UNIDADES DE SIMULACION´ BASADAS EN FMU Proyecto Fin de Carrera Ingenier´ıaInform´atica 16/02/2015 Autora: Tutores: S´anchez Medrano, Mar´ıadel Carmen Hern´andezCabrera, Jos´eJuan Evora´ G´omez,Jos´e Hern´andezTejera, Francisco M. Escuela de Ingenier´ıaInform´atica.Universidad de Las Palmas de G.C. Proyecto fin de carrera Proyecto fin de carrera de la Escuela de Ingenier´ıaInform´atica de la Universidad de Las Palmas de Gran Canaria presentado por la alumna: Apellidos y nombre de la alumna: S´anchez Medrano, Mar´ıadel Carmen T´ıtulo: Arquitectura para la interoperabilidad de unidades de simulaci´onbasadas en FMU Fecha: Febrero de 2015 Tutores: Hern´andezCabrera, Jos´eJuan Evora´ G´omez,Jos´e Hern´andezTejera, Francisco M. Escuela de Ingenier´ıaInform´atica.Universidad de Las Palmas de G.C. Dedicatoria A MI MADRE Y A MI PADRE Escuela de Ingenier´ıaInform´atica.Universidad de Las Palmas de G.C. Agradecimientos A mis tutores. A Jos´eJuan Hern´andezCabrera por su direcci´ony orientaci´onen este proyecto. Por ser un excelente mentor que ha permitido iniciarme en la l´ıneade investi- gadora y en el aprendizaje de otras filosof´ıasde programaci´on.A Jos´e Evora´ G´omezpor sus explicaciones y ayuda incondicional durante todo el desarrollo. A Francisco Mario Hern´andezpor darme la oportunidad de integrarme en este excelente equipo. A todo el grupo de profesores que me han instruido durante todos estos a~nosper- miti´endomeconseguir el objetivo deseado: ser ingeniera inform´atica. A todos mis compa~neros y amigos de carrera, en especial a Alberto y Dani. Con ellos he compartido estos ´ultimosa~nos de carrera llenos de vivencias y an´ecdotas.Gracias a todos por estar ah´ıya que sin ustedes este camino no hubiera podido ser tan f´acil y divertido. He conocido a grandes amigos en estos a~noscon los que espero seguir haciendo proyectos juntos y poderlos ayudar cuando lo necesiten. A Edu por aguantarme en la carrera, en los momentos buenos y malos, teniendo en ´elun apoyo incondicional en todo momento. Y en especial a mi familia, sobretodo a mis padres. Ellos han sido un gran apoyo, no s´oloa nivel econ´omico.Han sido el verdadero sost´enmoral y an´ımicodel cual yo he salido fortalecida siempre, en cualquiera de las condiciones que me encontrase, viendo en ellos la mayor de las ayudas. Siempre han estado ah´ıcuando los he necesitado alegr´andose cuando he conseguido mis metas y apoy´andomea conseguirlas. S´eque para ellos es un orgullo que haya llegado hasta aqu´ısobretodo por todo el esfuerzo que hay detr´as. Nunca podr´eagradec´erselolo suficiente. Un recuerdo muy, muy, muy especial a mi madre que esperaba este momento con ilusi´ony que desgraciadamente no ha podido ver. Me gustar´ıafinalizar este documento dici´endolesa todos ustedes de todo coraz´on <Muchas gracias! Escuela de Ingenier´ıaInform´atica.Universidad de Las Palmas de G.C. ´Indice general Lista de figuras IX 1. Motivaci´ony objetivos iniciales 1 2. Antecedentes y contextualizaci´on 5 2.1. Functional Mock-up Interface . .5 2.2. Estado del arte . .7 2.2.1. JFMI . .7 2.2.2. Herramientas para la ejecuci´ondistribuida de FMUs . .7 3. Resultados 13 3.1. Arquitectura . 14 3.1.1. El Remote Builder . 15 3.1.2. El Container . 16 3.1.3. Publication Protocol . 17 3.1.4. Mirror o FMU espejo . 18 3.1.5. Skeleton . 18 V ´INDICE GENERAL 3.1.6. Execution Protocol . 19 3.2. JavaFMI . 20 3.3. Manual de Usuario . 20 3.3.1. Lanzamiento del servidor . 21 3.3.2. Generar la FMU espejo . 21 3.3.3. Utilizaci´onde las FMUs . 22 3.4. Dise~noModular . 24 3.4.1. Fmu Remote Builder . 25 3.4.2. Repositorio de las librer´ıasdin´amicas . 26 3.4.3. Container . 28 3.4.4. Skeleton . 29 4. Proceso de desarrollo 33 4.1. Metodolog´ıade desarrollo . 33 4.2. Primera etapa: Familiarizaci´oncon herramientas y metodolog´ıasde desa- rrollo . 33 4.3. Segunda etapa: Creaci´onde las librer´ıasdin´amicas. 35 4.3.1. Elecci´onlibrer´ıaspara manejo sockets . 35 4.3.2. Programaci´onorientada a objetos en C . 36 4.3.3. Definici´ondel protocolo de comunicaci´on. 38 4.4. Tercera Etapa. Creaci´ondel Remote Builder . 39 4.4.1. Empaquetado de la FMU . 40 VI ´INDICE GENERAL 4.4.2. Obtenci´ondel puerto y env´ıode la FMU . 40 4.4.3. Modificaci´onde ficheros binarios . 41 4.5. Cuarta etapa. Migraci´ona la versi´ondel est´andarFMI v2 RC1 . 42 4.6. Quinta Etapa. Creaci´ondel Skeleton y Container . 43 4.6.1. Creaci´ondel Skeleton . 43 4.6.2. Creaci´ondel Container . 43 4.7. Temporizaci´on. 44 5. Herramientas Utilizadas 47 5.1. Recursos Hardware . 47 5.2. Recursos Software . 48 6. Conclusiones y trabajo futuro 51 6.1. Conclusiones . 51 6.2. Trabajo Futuro . 53 A. Functional Mock-up Interface 55 B. Git flow 59 C. Principios de la orientaci´ona objetos 61 D. Licencia LGPL 63 Bibliograf´ıa 69 VII ´INDICE GENERAL VIII ´Indice de figuras 3.1. Estructura del Remotifier . 15 3.2. Publication Protocol . 17 3.3. Protocolo Comunicaci´onentre la FMU espejo y la FMU en remoto . 19 3.4. Dise~noModular del Remotifier . 24 3.5. Diagrama de Clases del Fmu Remote Builder . 26 3.6. Diagrama de Clases del Container . 28 3.7. Diagrama de Clases del Skeleton . 30 4.1. Comparativa ejecuci´onLibCurl frente a las librerias de sistema . 36 4.2. Porcentajes temporizaci´on . 45 A.1. Estructura interna de una FMU . 58 B.1. Modelo de ramas Git Flow . 60 IX Facultad de Inform´atica.Universidad de Las Palmas de G.C. Cap´ıtulo1 Motivaci´ony objetivos iniciales En diversos sectores de la industria, como puede ser la el´ectricao la automovil´ıstica, la simulaci´ones una parte fundamental del dise~noy fabricaci´onde los productos. Con ello, se intenta disminuir costes y asegurar que los productos sean lo m´asfiables posible. Para dar soporte a estas necesidades, en el mercado existen diversas herramientas de simulaci´on,cada una especializada en un determinado tipo de problema y con una orientaci´onconcreta al modelado del sistema: Anylogic, MatLab, Dymola... Puede suceder, por ejemplo en la industria automovil´ıstica,que un ingeniero reali- zando la simulaci´onde un motor, necesite utilizar la simulaci´onde una buj´ıaque ha sido realizada con otra herramienta. A´unm´as,el ingeniero que est´arealizando la simu- laci´ondel motor no tiene por qu´etener instalada la herramienta con la que se realiz´o la simulaci´onde dicha buj´ıa. Por tanto existe la necesidad tanto de poder integrar simulaciones realizadas con herramientas distintas, como de distribuir una simulaci´onen un formato ejecutable, es decir, que no requiera tener instalada la herramienta con la que se desarroll´o. En 2010, la fundaci´onModelisar present´oel est´andarFunctional Mock-up Interface (FMI) como una soluci´ona estas necesidades de interoperabilidad entre herramientas de simulaci´on.En FMI, se define una interfaz com´un(API) que permite la distribuci´on e interoperabilidad de simulaciones. As´ı, una simulaci´onpuede transformarse en un formato ejecutable para su distribuci´oncon una interfaz p´ublicaconocida. En este 1 CAP´ITULO 1. MOTIVACION´ Y OBJETIVOS INICIALES est´andar,una simulaci´onse empaqueta en un formato de fichero llamado Functional Mock-up Unit (FMU). Una simulaci´onen formato FMU se define como un fichero comprimido en formato zip. Este fichero, adem´asde incluir una descripci´onde la propia simulaci´on,incluye unas librer´ıasdin´amicasque permiten la ejecuci´onde la simulaci´on en m´ultiplessistemas operativos. Para ello, se incluyen los binarios compilados de unas librer´ıaspara: win32, win64, linux32, linux64 y Mac OS. No obstante, existen otro tipo de necesidades relacionadas con la interoperabilidad de simulaciones. En el caso de que se deseara simular el uso de la electricidad en las viviendas de una ciudad como Las Palmas de Gran Canaria, unas 200.000 aproxima- damente, habr´ıaque resolver la interoperabilidad en una ejecuci´ondistribuida. En este caso, dado que es una simulaci´onmuy grande, podr´ıaempaquetarse la simulaci´onde un edificio o un barrio en una FMU con el objetivo de repartirlas en una red de ordenadores. En general, cuando una simulaci´onrequiere muchos componentes que tienen que ser simulados, podemos encontrarnos con un problema de falta de recursos en el ordenador: por ejemplo insuficiente memoria RAM. Para resolver este problema, se plantea la posibilidad de realizar una ejecuci´ondistribuida de los componentes. Este problema, que se presenta habitualmente en simulaciones muy grandes, ha sido identificado por el Instituto Universitario SIANI de la Universidad de Las Palmas de Gran Canaria. Adem´asotros institutos de investigaci´oneuropeos y empresas, con los que tiene relaci´onel SIANI, tambi´endemandan soluciones de escalabilidad en simula- ciones. En este proyecto concretamente se aborda la interoperabilidad distribuida de simulaciones bajo el est´andarFMI. Objetivos iniciales El objetivo de este proyecto es el dar a los usuarios del est´andar FMI la posibilidad de poder ejecutar las unidades de simulaci´on(FMUs) de forma distribuida. Para conseguir el objetivo principal del proyecto se han desglosado los siguientes subobjetivos: Estudiar el est´andarFMI. Definici´onde una arquitectura. La definici´onde la arquitectura es una parte fundamental en el desarrollo de software ya que define a grandes rasgos los m´odu- los que van a formar parte en el proceso. A lo largo de las diversas iteraciones del 2 CAP´ITULO 1. MOTIVACION´ Y OBJETIVOS INICIALES desarrollo esta arquitectura ha sufrido cambios significativos guiando el desarrollo y redefiniendo los subobjetivos del mismo.
Recommended publications
  • Hardware-In-The-Loop Simulation of Aircraft Actuator
    Hardware-in-the-Loop Simulation of Aircraft Actuator Robert Braun Fluid and Mechanical Engineering Systems Degree Project Department of Management and Engineering LIU-IEI-TEK-A{08/00674{SE Master Thesis LinkÄoping,September 3, 2009 Department of Management and Engineering Division of Fluid and Mechanical Engineering Systems Supervisor: Professor Petter Krus Front page picture: http://www.flickr.com/photos/thomasbecker/2747758112 Abstract Advanced computer simulations will play a more and more important role in future aircraft development and aeronautic research. Hardware-in-the-loop simulations enable examination of single components without the need of a full-scale model of the system. This project investigates the possibility of conducting hardware-in-the-loop simulations using a hydraulic test rig utilizing modern computer equipment. Controllers and models have been built in Simulink and Hopsan. Most hydraulic and mechanical components used in Hopsan have also been translated from Fortran to C and compiled into shared libraries (.dll). This provides an easy way of importing Hopsan models in LabVIEW, which is used to control the test rig. The results have been compared between Hopsan and LabVIEW, and no major di®erences in the results could be found. Importing Hopsan components to LabVIEW can potentially enable powerful features not available in Hopsan, such as hardware-in-the-loop simulations, multi-core processing and advanced plot- ting tools. It does however require fast computer systems to achieve real- time speed. The results of this project can provide interesting starting points in the development of the next generation of Hopsan. Preface This thesis work has been written at the Division of Fluid and Mechanical Engineering Systems (FluMeS), part of the Department of Management and Engineering (IEI) at LinkÄopingUniversity (LiU).
    [Show full text]
  • Aircraft System Simulation for Preliminary Design
    28TH INTERNATIONAL CONGRESS OF THE AERONAUTICAL SCIENCES AIRCRAFT SYSTEM SIMULATION FOR PRELIMINARY DESIGN Petter Krus, Robert Braun, Peter Nordin, and Björn Eriksson Linköping University, SE-58183 Linköping, Sweden [email protected] Keywords: aircraft conceptual design, system modeling, mission simulation Abstract subsystem as early in preliminary design as possible, and then use this model to develop the Developments in computational hardware and design further. In this way the simulation model simulation software have come to a point where becomes a point of convergence for the aircraft it is possible to use whole mission simulation in conceptual design as well as the conceptual a framework for conceptual/preliminary design. design of the subsystem as well as a tool for This paper is about the implementation of full further development in preliminary design. system simulation software for Using simulation performance conceptual/preliminary aircraft design. It is characteristics at the whole aircraft level can be based on the new Hopsan NG simulation evaluated very straightforwardly, and things like package, developed at the Linköping University. trim drag are accounted for as a byproduct. The Hopsan NG software is implemented in Furthermore, as the design progress into sub C++. Hopsan NG is the first simulation system design, systems such as actuation software that has support for multi-core systems, fuel systems etc, can also be included simulation for high speed simulation of multi and verified together in the actual flight profile. domain systems. Using simulation models of whole aircraft with In this paper this is demonstrated on a subsystems, it is then possible to do design flight simulation model with subsystems, such as analysis, e.g.
    [Show full text]
  • Diplomarbeit Simulation Von Flugzeugsystemen Mit HOPSAN
    Diplomarbeit Department Fahrzeugtechnik und Flugzeugbau Simulation von Flugzeugsystemen mit HOPSAN Johannes Meier 10. August 2007 2 Hochschule für Angewandte Wissenschaften Hamburg Department Fahrzeugtechnik und Flugzeugbau Berliner Tor 9 20099 Hamburg Verfasser: Johannes Meier Abgabedatum: 10.08.2007 1. Prüfer: Prof. Dr.-Ing. Dieter Scholz, MS 2. Prüfer: Prof. Dr. Schulze Betreuer: Dr. Christian Müller Christian Matalla 3 Kurzreferat In dieser Arbeit wird das Simulationsprogramm Hopsan untersucht. Es ist ein Programm, das für die Simulation von hydraulischen Systemen entworfen wurde. Entwickelt wird es an der Universität von Linköping in Schweden seit 1977 und es ist für jedermann zugänglich. Ziel ist es die Eignung von Hopsan für die Simulation von verschiedenartigen Flugzeugsystemen zu überprüfen. Dabei wird auch auf die Theorie und die Handhabung eingegangen. Diese Arbeit ist in Teilen wie eine Bedienungsanleitung aufgebaut und soll den Einstieg in das Programm erleichtern. Mit Hilfe von Beispielen werden die Möglichkeiten von Hopsan aufgezeigt. Die Beispiele lehnen sich an hydraulische Flugzeugsysteme, Pneumatiksysteme und das Fahrwerk an. Zum Teil werden Ergebnisse von Simulationen mit denen von anderen Simulationspro- grammen verglichen. Die Arbeit mit diesem Programm hat gezeigt, dass die Bedienung ein- fach und schnell von statten geht. Der Vergleich von hydraulischen Systemen mit anderen Programmen ergab sehr ähnliche Ergebnisse. Weiterhin hat die Untersuchung gezeigt, dass Hopsan nur unter bestimmten Voraussetzungen für Pneumatiksysteme geeignete ist. 1 DEPARTMENT FAHRZEUGTECHNIK UND FLUGZEUGBAU Simulation von Flugzeugsystemen mit HOPSAN Aufgabenstellung zur Diplomarbeit gemäß Prüfungsordnung Hintergrund HOPSAN ist eine integrierte Umgebung zur Simulation von strömungsmechanischen Syste- men zur Leistungsübertragung. Ein System oder eine Komponente können vor dem Bau und der Inbetriebnahme getestet und analysiert werden.
    [Show full text]
  • A Novel Fmi and Tlm-Based Desktop Simulator for Detailed Studies of Thermal Pilot Comfort
    A NOVEL FMI AND TLM-BASED DESKTOP SIMULATOR FOR DETAILED STUDIES OF THERMAL PILOT COMFORT *Robert Hällqvist , **Jörg Schminder , *Magnus Eek , ***Robert Braun , **Roland Gårdhagen , ***Petter Krus *Systems Simulation and Concept Design, Saab Aeronautics, Linköping, Sweden **Applied Thermodynamics and Fluid Mechanics, Linköping University, Linköping, Sweden ***Fluid and Mechatronic Systems, Linköping University, Linköping, Sweden Keywords: OMSimulator, FMI, TLM, Pilot Thermal Comfort, Modelling and Simulation Abstract can be shifted to earlier design phases if detailed simulations of large portions of a complete Modelling and Simulation is key in aircraft sys- aircraft are feasible. However, in order to further tem development. This paper presents a novel, increase the use of M&S, and expand the scope multi-purpose, desktop simulator that can be of analysis using models, simulation of coupled used for detailed studies of the overall perfor- models developed in a wide variety of different mance of coupled sub-systems, preliminary con- tools need to be made available on the engineers’ trol design, and multidisciplinary optimization. and researchers’ desktop computers. Also, Here, interoperability between industrially rel- risks associated with tool-vendor lock-in and evant tools for model development and simu- licensing costs need to be kept at a minimum lation is established via the Functional Mock- if the benefits of M&S are to be further exploited. up Interface (FMI) and System Structure and Parametrization (SSP) standards. Robust and The ITEA3 financed research project Open distributed simulation is enabled via the Trans- Cyber Physical System Model-Driven Certified mission Line element Method (TLM). The ad- Development (OpenCPS) [1] aims to address the vantages of the presented simulator are demon- challenges identified by academia and industry strated via an industrially relevant use-case where in terms of efficient model integration and simulations of pilot thermal comfort are coupled simulation.
    [Show full text]
  • Distributed System Simulation Methods
    Linköping Studies in Science and Technology Dissertations No. 1732 Distributed System Simulation Methods For Model-Based Product Development Robert Braun Division of Fluid and Mechatronic Systems Department of Management and Engineering Linköping University, SE–581 83 Linköping, Sweden Linköping 2015 Copyright © Robert Braun, 2015 Distributed System Simulation Methods For Model-Based Product Development ISBN 978-91-7685-875-2 ISSN 0345-7524 Distributed by: Division of Fluid and Mechatronic Systems Department of Management and Engineering Linköping University SE-581 83 Linköping, Sweden Printed in Sweden by LiU-Tryck, Linköping 2015. To Emma Computers are useless. They can only give you answers. ” Pablo Picasso Abstract With the current trend towards multi-core processors and computer grids, parallelism in system simulation is becoming inevitable. Performing multi- ple tasks concurrently can save both time and money. However, this also puts higher demands on simulation software. This thesis investigates how simulation-based product development can benefit from distributed simulation. One parallelization method is to cut apart models for simulation with dis- tributed solvers by using time delays. The transmission line element method (TLM) is used, which eliminates numerical errors by introducing physically motivated time delays. Results show that linear speed-ups can be obtained for large models with balanced workloads. Different task scheduling techniques are tested. It is found that a fork-join algorithm with implicit synchronization performs best for models with a large total workload. On the other hand, a task-pool implementation with lock-based synchronization works better with smaller workloads. The distributed solver method virtually equals co-simulation between differ- ent simulation tools.
    [Show full text]
  • Metamodelling for Design of Mechatronic and Cyber-Physical Systems
    applied sciences Article Metamodelling for Design of Mechatronic and Cyber-Physical Systems Krzysztof Pietrusewicz West Pomeranian University of Technology, Szczecin, Sikorskiego 37, 70-313 Szczecin, Poland; [email protected]; Tel.: +48-663-398-396 Received: 30 November 2018; Accepted: 17 January 2019; Published: 22 January 2019 Featured Application: The presented results were used to design innovative mechatronic solutions: motion control algorithm of 5-axis feed drive “X-5” processing centre owned by the AVIA company, loading and forestry crane control system designed within the EU 7FP IAPP project called iLOAD. Abstract: The paper presents the issue of metamodeling of Domain-Specific Languages (DSL) for the purpose of designing complex mechatronics systems. Usually, one of the problems during the development of such projects is an interdisciplinary character of the team that is involved in this endeavour. The success of a complex machine project (e.g., Computer Numerically Controlled machine (CNC), loading crane, forestry crane) often depends on a proper communication between team members. The domain-specific modelling languages developed using one of the two approaches discussed in the work, lead to a machine design that can be carried out much more efficiently than with conventional approaches. Within the paper, the Meta-Object Facility (MOF) approach to metamodeling is presented; it is much more prevalent in modern modelling software tools than Graph-Object-Property-Relationship-Role (GOPRR). The main outcome of this work is the first presentation of researchML modelling language that is the result of more than twenty ambitious research and development projects. It is effectively used within new enterprises and leads to improved traceability of the project goals.
    [Show full text]
  • Structure Couplings in Hydraulic Percussion Units
    Engineering with Computers DOI 10.1007/s00366-016-0476-8 ORIGINAL ARTICLE A co‑simulation method for system‑level simulation of fluid– structure couplings in hydraulic percussion units Håkan Andersson1,2 · Peter Nordin3 · Thomas Borrvall4 · Kjell Simonsson2 · Daniel Hilding4 · Mikael Schill4 · Petter Krus3 · Daniel Leidermark2 Received: 3 December 2015 / Accepted: 8 August 2016 © The Author(s) 2016. This article is published with open access at Springerlink.com Abstract This paper addresses a co-simulation method for use of the Functional Mock-up Interface standard. A simple fluid power driven machinery equipment, i.e. oil hydraulic but relevant model is used to validate the method. machinery. In these types of machinery, the fluid–structure interaction affects the end-product performance to a large Keywords Co-simulation · Fluid–structure coupling · extent, hence an efficient co-simulation method is of high System simulation · Functional mock-up interface · Fluid importance. The proposed method is based on a 1D system power machinery · Transmission line modelling model representing the fluid components of the hydrau- lic machinery, within which structural 3D Finite Element (FE) models can be incorporated for detailed simulation 1 Introduction of specific sub-models or complete structural assemblies. This means that the fluid system simulation will get a more During the last years, the development of commercial soft- accurate structural response, and that the structural simu- ware suits for simulating Fluid–Structure Interaction (FSI) lation will get more correct fluid loads at every time step, problems has been substantial, and today FSI-functionality compared to decoupled analysis. Global system parameters exists in many simulation environments, e.g.
    [Show full text]
  • FMU-Proxy: a Framework for Distributed Access to Functional Mock-Up Units
    FMU-proxy: A Framework for Distributed Access to Functional Mock-up Units FMU-proxy: A Framework for Distributed Access to Functional Mock-up Units Hatledal,FMU-proxy: Lars Ivar and Zhang, A Framework Houxiang and Styve, for Arne Distributed and Hovland, Geir Access to Functional 79 Mock-up Units Lars Ivar Hatledal1 Houxiang Zhang1 Arne Styve2 Geir Hovland3 1Department of Ocean Operations and Civil Engineering, NTNU, Norway, {laht,hozh}@ntnu.no 2Department of ICT and Natural Sciences, NTNU, Norway, [email protected] 3Department of Engineering Sciences, UiA, Norway, [email protected] Abstract A model implementing the FMI standard is known as an Functional Mock-up Unit (FMU), and is distributed as The main goal of the Functional Mock-up Interface (FMI) a zip-file with the extension .fmu. This archive contains: standard is to allow simulation models to be shared across tools. To accomplish this, FMI relies on a combination • An XML-file that contains meta-data about the of XML-files and compiled C-code packaged in a zip model, named modelDescription.xml. archive. This archive is called an Functional Mock-up Unit (FMU) and uses the extension .fmu. In theory, an • C-code implementing a set of functions defined by FMU can support multiple platforms, however this is not the FMI standard. always the case and depends on the type of binaries the exporting tool was able to provide. Furthermore, a library • Other optional resources required by the model im- providing FMI support may not be available in a particular plementation. language, and/or it may not support the whole standard.
    [Show full text]
  • The Openmodelica Integrated Modeling, Simulation and Optimization Environment
    The OpenModelica Integrated Modeling, Simulation and Optimization Environment Peter Fritzson1, Adrian Pop1, Adeel Asghar1, Bernhard Bachmann1, Willi Braun2, Robert Braun1, Lena Buffoni1, Francesco Casella3, Rodrigo Castro6, Alejandro Danós6, Rüdiger Franke7, Mahder Gebremedhin1, Bernt Lie8, Alachew Mengist1, Kannan Moudgalya5, Lennart Ochel1, Arunkumar Palanisamy1, Wladimir Schamai9, Martin Sjölund1, Bernhard Thiele1, Volker Waurich4, Per Östlund1 1PELAB – Programming Environment Lab, Dept. of Computer and Information Science Linköping University, SE-581 83 Linköping, Sweden 2FH Bielefeld, Bielefeld, Germany 3Dept. Electronics and Information, Politecnico di Milano, Milan, Italy 4TU Dresden, Dresden, Germany 5IIT Bombay, Mumbai, India 6Dept. Computer Science, Universidad de Buenos Aires, Argentina 7ABB AG, DE-68309 Mannheim, Germany 8University of South-Eastern Norway, Porsgrunn, Norway 9Danfoss Power Solutions GmbH & Co. OHG, Offenbach, Germany [email protected], [email protected] Abstract OpenModelica have expanded enormously. The Open Source Modelica Consortium which supports the long- OpenModelica is currently the most complete open- term development of OpenModelica was created in source Modelica- and FMI-based modeling, simulation, 2007, initially with seven founding organizations. The optimization, and model-based development scope and intensity of the open source development has environment. Moreover, the OpenModelica gradually increased. At the time of this writing the environment provides a number of facilities such as consortium
    [Show full text]
  • Simulation Aided Design and Testing of Hydromechanical Transmissions 2C2-1
    Proceedings of the 9th JFPS International Symposium on Fluid Power, Matsue, 2014 Oct. 28 - 31, 2014 2C2-1 SIMULATION AIDED DESIGN AND TESTING OF HYDROMECHANICAL TRANSMISSIONS Karl Pettersson*, L. Viktor Larsson**, K. Viktor Larsson**, and Petter Krus** *Volvo Construction Equipment, Eskilstuna, Sweden, E-mail: [email protected] **Division of Fluid and Mechatronic Systems, Department of Management and Engineering, Linköping University, Sweden ABSTRACT This paper demonstrates the use of high-speed simulation in transmission conceptual design and presents a transmission test bed for hardware-in-the-loop simulations of hydromechanical transmission concepts. Complex transmissions, such as multiple-mode hydromechanical transmissions and hydraulic hybrid transmissions, present new difficulties and costs in the development process. There is today a greater demand for more efficient product development and more work has shifted towards simulation. The Hopsan simulation package allows robust, high-speed simulations suitable for both offline and hardware-in-the-loop simulation. New simulation models for hydromechanical transmissions are developed and used to simulate a known two-mode transmission concept. The same concept is also tested in hardware-in-the-loop simulations in the proposed transmission test bed. Results show good agreement with the hardware tests and highlight the proficiency of the simulation tools. KEYWORDS Hydromechanical Transmission, Hardware-in-the-loop, Hopsan NOMENCLATURE INTRODUCTION There is today an increased need for more efficient product development methods to shorten lead times and lower costs. One way to accomplish this is to shift devel- B Viscous friction opment work from prototype testing to simulation using D Hydraulic displacement model-based product development. This way, further F Force knowledge can be gained earlier in the development J Inertia process without physical testing and expensive prototype P Power demonstrators.
    [Show full text]
  • On the Modular Modelling for Dynamical Simulation with Application to Fluid Systems
    On the Modular Modelling for Dynamical Simulation with Application to Fluid Systems CARL-JOHAN SJÖSTEDT Licentiate thesis TRITA – MMK 2005:30 Department of Machine Design ISSN 1400-1179 Royal Institute of Technology ISRN/KTH/MMK/R-05/30-SE SE-100 44 Stockholm TRITA – MMK 2005:30 ISSN 1400-1179 ISRN/KTH/MMK/R-05/30-SE On the Modular Modelling for Dynamical Simulation with Application to Fluid Systems Carl-Johan Sjöstedt Licentiate thesis Academic thesis, which with the approval of Kungliga Tekniska Högskolan, will be presented for public review in fulfilment of the requirements for a Licentiate of Engineering in Machine Design. The public review is held at Kungliga Tekniska Högskolan, Machine Design, Brinellvägen 83, room A425 at 10.00, 2005-12-06 Abstract This licentiate thesis highlights some topics on modular modelling for dynamical simulation with application to fluid systems. The results are based on experience from the development of the fuel cell component simulation environment NFCCPP. The general application is cross-enterprise simulation of technical systems. There are four main topics: component definition including selection of interfaces, lumped modelling of fluid components, the use of dynamical equations to reduce simulation time in large systems and methods of to protect the intellectual property (IP) of a component. An overview of different dynamical fluid simulation tools such as HOPSAN, MATLAB/Simulink and Easy5 is presented. Special focus is on interfaces, where different approaches for representing interfaces are presented using an illustrative example. Selecting interfaces is however not a separated task from how to set up and solve the underlying equations, which also is shown.
    [Show full text]
  • The Openmodelica Integrated Environment for Modeling, Simulation, and Model-Based Development
    Modeling, Identification and Control, Vol. 41, No. 4, 2020, pp. 241{285, ISSN 1890{1328 The OpenModelica Integrated Environment for Modeling, Simulation, and Model-Based Development Peter Fritzson 1 Adrian Pop 1 Karim Abdelhak 2 Adeel Asghar 1 Bernhard Bachmann 2 Willi Braun 2 Daniel Bouskela 9 Robert Braun 1 Lena Buffoni 1 Francesco Casella 3 Rodrigo Castro 5 R¨udigerFranke 6 Dag Fritzson 1 Mahder Gebremedhin 1 Andreas Heuermann 1 Bernt Lie 7 Alachew Mengist 1 Lars Mikelsons 1 Kannan Moudgalya 4 Lennart Ochel 1 Arunkumar Palanisamy 1 Vitalij Ruge 2 Wladimir Schamai 8 Martin Sj¨olund 1 Bernhard Thiele 1 John Tinnerholm 1 Per Ostlund¨ 1 1PELAB { Programming Environment Lab, Dept. of Computer and Information Science Link¨opingUniversity, SE-581 83 Link¨oping,Sweden. E-mail: fpeter.fritszon,[email protected] 2FH Bielefeld, Bielefeld, Germany 3Dip. Elettronica, Informazione e Bioingegneria, Politecnico di Milano, Milano, Italy 4Dept. of Chemical Engineering, IIT Bombay, Mumbai, India 5Dept. Computer Science, Universidad de Buenos Aires, Argentina 6ABB AG, DE-68309 Mannheim, Germany 7University of South-Eastern Norway, Porsgrunn, Norway 8Danfoss Power Solutions GmbH & Co. OHG, Offenbach, Germany 9Electricit´ede France, (EDF Lab), Chatou, France Abstract OpenModelica is a unique large-scale integrated open-source Modelica- and FMI-based modeling, simu- lation, optimization, model-based analysis and development environment. Moreover, the OpenModelica environment provides a number of facilities such as debugging; optimization; visualization and 3D ani- mation; web-based model editing and simulation; scripting from Modelica, Python, Julia, and Matlab; efficient simulation and co-simulation of FMI-based models; compilation for embedded systems; Modelica- UML integration; requirement verification; and generation of parallel code for multi-core architectures.
    [Show full text]