https://ecp.ep.liu.se/index.php/modelica/issue/feed Modelica Conferences 2024-03-11T10:49:52+01:00 Open Journal Systems <p>The Modelica Conference is the main event for users, library developers, tool vendors and language designers to share their knowledge and learn about the latest scientific and industrial progress related to Modelica and to the Functional Mockup Interface.</p> https://ecp.ep.liu.se/index.php/modelica/article/view/981 Calibration Workflow for Mechanical and Thermal Applications 2024-03-11T10:49:46+01:00 Tim Willert Peter Sundström The calibration of models against measurement data is important to ensure model dynamics that are close to its real-world system. Derivative-free minimizing methods can be used for any model calibration regardless of continuous differentiability requirements, and find a (local) minimum in a reasonable number of iteration steps. A user-friendly, python-based calibration Dash app to use with the cloud-based Modelica platform Modelon Impact is introduced. Basic calibration setup is done through the GUI of the app and graphical feedback (i.e. plots) is provided. Two example calibrations are shown: A mechanical Furuta pendulum that only uses Modelica Standard Library components is calibrated against real-world measurement data, and a low-fidelity heat exchanger testbench model that uses Modelon’s Air Conditioning Library is calibrated against a corresponding high-fidelity model. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Tim Willert, Peter Sundström https://ecp.ep.liu.se/index.php/modelica/article/view/982 SSP in a Modelica Environment 2024-03-11T10:49:47+01:00 Dag Brück System Structure and Parameterization (SSP) is a tool independent standard to define complete systems. Dymola now supports import and export of SSP files; this paper describes how the SSP support was implemented and discusses some of the constraints and unavoidable compromises. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Dag Brück https://ecp.ep.liu.se/index.php/modelica/article/view/908 An FMI- and SSP-based Model Integration Methodology for a Digital Twin Platform of a Holistic Railway Infrastructure System 2024-01-23T15:30:42+01:00 Ozan Kugu Shiyang Zhou Rebecca Nowak Gabor Müller Stefan H. Reiterer Alexander Meierhofer Stefan Lachinger Lukas Wurth Manfred Grafinger <p>Nowadays, the digitalization of large-scale railway infrastructure systems is a major trend, which helps to reduce the life-cycle costs of the railway transportation. For this purpose, the Digital Twin (DT) technology can be used to interoperate different digital data and models, belonging to the railway infrastructure system, in a virtual platform for predictive maintenance, diagnostics and condition monitoring in the railway sector. However, the simulation models of the infrastructure system are tool-dependent, lack ease-of-use and platform compatibility. Therefore, we have to customise them in order to make them more representative and then integrate easily and tool-independently into the DT platform. For this purpose, we propose to use the Functional Mock-up Interface (FMI) and System Structure Parameterization (SSP) technologies as open interface standards between the models and software tools. In this work, we demonstrate the application of the FMI and SSP standards separately for two use cases, which include a multibody simulation (MBS) model of a railway vehicle and residual life time (RLT) calculation of a steel bridge.</p> 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Ozan Kugu, Shiyang Zhou, Rebecca Nowak, Gabor Müller, Stefan H. Reiterer, Alexander Meierhofer, Stefan Lachinger, Lukas Wurth, Manfred Grafinger https://ecp.ep.liu.se/index.php/modelica/article/view/983 PNRG – A Library for Modeling Variable Structure Energy Grids in Modelica using Energetic Petri Nets 2024-03-11T10:49:47+01:00 Christian Gutsche Zizhe Wang Sebastian Götz Volodymyr Prokopets Uwe Aßmann Operating energy grids with a high share of renewable energy sources (RES) requires system reconfiguration as a response to environmental condition changes. To understand them better, simulations are needed and Modelica is an excellent choice for that. Energy grids with event-based reconfigurations are an instance of variable structure systems (VSS). However, the full support of VSS in Modelica is challenging and topic of ongoing research. Petri nets (PNs) offer a formalism for modeling VSS. The capability to simulate PNs in Modelica gives an opportunity to model VSS in Modelica. This paper presents an approach to utilize PNs in Modelica for modeling variable structure energy grids. Therefore, we introduce energetic Petri nets, a special type of PNs and an experimental library called PNRG for PN-based energy system modeling is presented. Furthermore, possibilities and limits of modeling VSS energy grids are discussed and an outlook how to develop this technique is provided. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Christian Gutsche, Zizhe Wang, Sebastian Götz, Volodymyr Prokopets, Uwe Aßmann https://ecp.ep.liu.se/index.php/modelica/article/view/984 Energy Efficiency Measures for Existing Factory Buildings 2024-03-11T10:49:48+01:00 Xenia Kirschstein Anja Schaffarczyk Miriam Schuster Nadja Bishara To contribute to carbon neutrality, energy efficiency measures in existing factories must be evaluated holistically, considering not only production and technical building equipment but also the building itself. In this study, a package is introduced as part of a simulation library which aims to identify integrated energy efficiency measures. The package enables the user to simulate building related efficiency measures independently or combined with machines and technical building equipment. Special focus is placed on the efficiency measure hereafter referred to as enclosure, which designates a thermally activated construction around a number of machines to facilitate the capturing of waste heat emitted to the ambient air. A comparison with measured data shows a good agreement of the return temperature for stationary conditions. Furthermore an application example for the package is given. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Xenia Kirschstein, Anja Schaffarczyk, Miriam Schuster, Nadja Bishara https://ecp.ep.liu.se/index.php/modelica/article/view/985 Hybrid Power Systems Simulation and Optimization Utilizing SSP and FMI 2024-03-11T10:49:49+01:00 Dai Araki Magnus Sandell Collaborative model-based development of the hybrid power system often requires large-scale co-simulation and system parameter optimization. In this study, we investigate an architecture for parallel processing simulation of SSP (System Structure and Parametrization) and FMI (Functional Mock-up Interface), which enables high-speed computation by multi-core distribution. We combine Bayesian optimization and co-simulation, then we build a collaborative development platform for hybrid power systems design. We report performance experiments using hybrid electric vehicle simulation model published by JAMBE (Japan Automotive Model-Based Engineering center). 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Dai Araki, Magnus Sandell https://ecp.ep.liu.se/index.php/modelica/article/view/986 Simulation of Vehicle Headlamp Levelling systems 2024-03-11T10:49:49+01:00 Filip Cieslar Martin Düsing Adjustment systems are used in vehicle headlamps to regulate the flare on the street. The kinematic system within the headlamp is driven automatically based on level sensor signals and can additionally be manually set to a start position. In modern cars the automatic vehicle headlamp levelling is legal duty due to the strong cut-off line (COL) between dark and light. This COL can be measured in a workshop but not during operation. Due to the complex kinematics including nonlinear contacts, friction and damping a Modelica model is used to calculate the position of the COL. The results show a characteristic hysteresis of the horizonal position during automatic movement. The simulation results are compared to measurements and show good agreement. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Filip Cieslar, Martin Düsing https://ecp.ep.liu.se/index.php/modelica/article/view/987 Piecewise-Steady-State Modelica Simulations for the Conceptual Design Phase of Industrial Processes 2024-03-11T10:49:50+01:00 Raphael Agner Jonas Grand Andrin Duss Beat Wellig The conceptual design of industrial processes is challenging as relatively little information about the eventually selected equipment and their operation is known in this early design stage. Furthermore, the systems are increasingly integrated with themselves, and their design must be addressed systematically. Simulation can assist in better understanding the effects of design decisions on the resulting system performance. To facilitate the simulation of industrial processes in this early design phase, this paper proposes an approach to modeling system components specifically aimed at employing known key design parameters and assuming steady-state behavior of the process for a certain period of time (e.g. one hour). A solution over a longer period of time (e.g. for a year) can then be obtained by simulating a multitude of such shorter periods, leading to the piecewise-steady-state solution. The proposed approach is developed with an exemplary case study, based on a real industrial site. The resulting model computes the annual load profile within the range of seconds for the given case study. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Raphael Agner, Jonas Grand, Andrin Duss, Beat Wellig https://ecp.ep.liu.se/index.php/modelica/article/view/988 Modeling and Control Design of an Educational Magnetic Levitation System 2024-03-11T10:49:50+01:00 Anton Haumer A magnetic levitation system is a perfect educational example of a nonlinear unstable system. Only with suitable control, a small permanent magnet can be held floating stable below a coil. After modeling and simulation of the system, control of the system can be developed. At the end, the control algorithm can be coded on a microcontroller, connected to a pilot plant. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Anton Haumer https://ecp.ep.liu.se/index.php/modelica/article/view/989 Coupling of Thermal and Electrical Systems for the Simulation of ECS Architectures 2024-03-11T10:49:51+01:00 Nicolás Ablanque Sriram Gurumurthy Santiago Torras Antonello Monti Joaquim Rigola Carles Oliet This work is focused on the coupling of two complex models based on different underlying physics: a vapor compression refrigerating system and its electrical drive system. The main challenge was to correctly handle the large simulation time constant difference which is three orders of magnitude smaller for the electrical system. The two models have been originally developed following very specific requirements (i.e. high numerical robustness and low time consumption) for their suitable use in simulations of large and complex aircraft Environmental Control Systems (ECS). The direct coupling of both systems has been observed to cause numerical instabilities, therefore, a coupling approach based on non-invasive dynamic relaxations has been implemented. The resulting combined simulations have shown to be numerically stable for the complete range of operating conditions and for a wide range of time steps. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Nicolás Ablanque, Sriram Gurumurthy, Santiago Torras, Antonello Monti, Joaquim Rigola, Carles Oliet https://ecp.ep.liu.se/index.php/modelica/article/view/990 A Penalty Function-based Modelica Library for Multi-body Contact Collision 2024-03-11T10:49:52+01:00 Ziheng Zhu Hualong Zhao Xueqi Ma Yuhui Liu Lu Chen Fanli Zhou Contact collisions are prevalent in mechanical multi-body systems and have always been a significant limiting factor for engineering technology development. This paper examines the fundamental types of contact in multi-body dynamics systems and explores their inherent topological relationships. Based on the multi-body dynamics theory and penalty function contact algorithm, this paper constructed the multi-body dynamics contact model using Modelica, which is a multi-domain unified modeling language. To enhance the applicability of the contact model library in the modeling of multi-body system, the contact model provides a connection interface compatible with the multi-body library in the Modelica standard library. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Ziheng Zhu, Hualong Zhao, Xueqi Ma, Yuhui Liu, Lu Chen, Fanli Zhou https://ecp.ep.liu.se/index.php/modelica/article/view/991 Automatic Optimization of Energy Supply Systems in Buildings and City Quarters based on Modelica Models 2024-03-11T10:49:52+01:00 Torsten Schwan David Feige Leonhard Wenzel Charlotte Voelckner Martin Leuschke The evaluation and analysis of complex energy supply systems with Modelica models is more and more an integral part of the building design processes. Dynamic system modeling became there especially important regarding analyses of the use of storage and the integration of volatile renewable resources as well as intelligent control. However, this still requires extensive engineering work and time-consuming modeling efforts, although the basic work steps are largely comparable and based on the same fundamentals. Therefore, the open interfaces to and from Modelica offer extensive possibilities for automation and generalization of these processes. This paper describes such a new integrative and automated optimization framework for energy systems of buildings and districts, which uses Modelica models and FMUs iteratively for the identification of optimal system configurations. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Torsten Schwan, David Feige, Leonhard Wenzel, Charlotte Voelckner, Martin Leuschke https://ecp.ep.liu.se/index.php/modelica/article/view/909 MARCO: An Experimental High-Performance Compiler for Large-Scale Modelica Models 2024-03-11T10:48:51+01:00 Giovanni Agosta Francesco Casella Daniele Cattaneo Stefano Cherubin Alberto Leva Michele Scuttari Federico Terraneo This paper introduces MARCO, a research compiler aimed at the efficient generation of efficient simulation code from a large-scale Modelica model. MARCO’s design goals, requirements, and specifications are dis- cussed in the paper, as well as the software architec- ture, the current development status, and a future develop- ment roadmap. The results of two test cases demonstrate MARCO’s capability to handle non-trivial Modelica mod- els with over 10 million equations very efficiently. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Giovanni Agosta, Francesco Casella, Daniele Cattaneo, Stefano Cherubin, Alberto Leva, Michele Scuttari, Federico Terraneo https://ecp.ep.liu.se/index.php/modelica/article/view/910 Control development and sizing analysis for a 5th generation district heating and cooling network using Modelica 2024-03-11T10:48:52+01:00 Ettore Zanetti David Blum Michael Wetter 5th generation district heating and cooling networks (5GDHC) are a relatively new concept. They are based on the idea that a single district loop at a ambient temperature range can be used for heating and cooling simultaneously. This paper improves on a 5GDHC called the reservoir network. The study updates the sewage heat exchanger plant model to more realistically represent seasonal changes, uses the novel pump models with variable efficiency, introduces a ground coupled district pipe model to consider the inertia of the district network and a new control strategy for storage and sewage heat exchanger was implemented. the new approach reduced operating costs, mainly due to pumping cost for storage, sewage heat exchanger plant and distribution pump, while increasing the overall robustness of the approach in different sizing conditions. Thanks to the new controller, the pumping consumption was reduced by 21% with respect to the baseline, while showing that the approach is robust against design changes such as reduction in borehole field size and increasing the sewage heat exchanger size, since the pumping energy savings become 29%. Lastly borehole field temperature stability was analyzed through a 40Y simulation. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Ettore Zanetti, David Blum, Michael Wetter https://ecp.ep.liu.se/index.php/modelica/article/view/911 Simulation Model as a Service (SMaaS): A concept for integrated deployment, execution and tracking of system simulation models 2024-03-11T10:48:53+01:00 Philipp Emanuel Stelzig Benjamin Rodenberg System simulation is dealing with increasingly multiphysical and cyber-physical systems that involve multiple engineering domains. In development and production, system manufacturers often rely on supplier parts and their digital representations. To deal with this inherently collaborative setting in a more efficient way we propose a concept of Simulation Model as a Service (SMaaS) developed at simercator. In this article, we apply established workflows from software engineering to system simulation to create more efficient workflows, discuss the compliance with technical, economic, and regulatory requirements, and present a software for digital supply chain management that implements SMaaS. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Philipp Emanuel Stelzig, Benjamin Rodenberg https://ecp.ep.liu.se/index.php/modelica/article/view/912 MoPyRegtest: A Python package for continuous integration-friendly regression testing of Modelica libraries 2024-03-11T10:48:54+01:00 Philipp Emanuel Stelzig Regression testing is a commonly used strategy in continuous integration workflows to ensure reproduceability of outputs. It is widely in software engineering and model development, including Modelica. In this article we introduce the open source regression testing framework MoPyRegtest written in Python. Its primary focus is to provide Modelica library developers with a simple regression testing tool that features test automation and can integration with continuous integration toolchains, in particular for open source developments. In order to simulate the Modelica models for testing analysis, we provide an interface to Modelica simulation tools that support Modelica Scripting with .mos files. Our current implementation works with OpenModelica. We outline the design and functionality of MoPyRegtest and showcase its potential usefulness for open source development of Modelica models and libraries. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Philipp Emanuel Stelzig https://ecp.ep.liu.se/index.php/modelica/article/view/913 Object-Oriented Modelling of Flexible Cables based on Absolute Nodal Coordinate Formulation 2024-03-11T10:48:54+01:00 Jianchen Wu Baokun Zhang Dedong Liang Yujie Guo Lu Chen Ji Ding Fanli Zhou Cable-pulley system consists of several segments of cables, winches, and pulleys, which is used in a wide range of engineering applications such as lifting equipment and pulley systems, however its dynamics simulation has been a tough issue in the Modelica community. The absolute nodal coordinate formulation (ANCF) uses global displacements and slopes at nodes to describe the geometry of the deformed body, which allows the derivation of constant mass matrices and zero-valued quadratic velocity dependent centrifugal and Coriolis forces, demonstrating its powerful capacity to model flexible multi-body systems for nearly two decades. This paper presents an object-oriented approach to model cable-pulley system, where flexible cables are discretized using ANCF cable elements. It is compatible with the Modelica Multibody Library by using a unified Frame interface and enables coupled analysis of cables and rigid bodies. The paper provides a rich set of application examples showing the ease and efficiency of the Modelica-based component drag-and-drop modelling way for modelling cable-pulley system. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Jianchen Wu, Baokun Zhang, Dedong Liang, Yujie Guo, Lu Chen, Ji Ding, Fanli Zhou https://ecp.ep.liu.se/index.php/modelica/article/view/914 Development of a novel quasi-2D PEM Electrolyzer Model in Modelica 2024-03-11T10:48:55+01:00 Ansgar Reimann Paul Kohlenbach Lars Röntzsch To increase the efficiency of PEM electrolysis, simulation models are required that accurately describe the system's electrochemical and thermal behavior in a computationally efficient manner and are thus suitable for developing control strategies. Therefore, a pseudo-2D PEM electrolyzer model is presented in this paper, which is a compromise between the previously developed models regarding their model complexity. The electrochemical behavior is described with equations commonly used in the literature and the thermal behavior with correlations for gas-liquid heat transfer. Preliminary validation indicates that the model can describe the electrochemical behavior and thermal dynamics of a PEM electrolysis stack with good accuracy. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Ansgar Reimann, Paul Kohlenbach, Lars Röntzsch https://ecp.ep.liu.se/index.php/modelica/article/view/915 Modelica Association Standards and Surrogate Modeling to Enable Multi-Fidelity Simulations 2024-03-11T10:48:56+01:00 Olle Lindqvist Robert Hällqvist Raghu Chaitanya Munjulury System simulations are particularly useful when analyzing complex systems. Simulations are often cheaper and safer than physical tests of the actual system(s) of interest. Models can be additionally created for systems that do not exist to find solutions that are impossible to analyze experimentally in early life-cycle stages. Models used in system simulations require appropriate input data to give results with the required fidelity and, in the end, credibility. Integration is often challenging as each system commonly constitutes contributions from several engineering domains. Relying on relevant open standards for information exchange is seen as a means of mitigation. The results of the presented work encompass a developed methodology that allows Computational Fluid Dynamics (CFD) results to be integrated into a simulator using system identification and open standards. Reduced Order Models (ROMs) are generated based on results from a CFD analysis. These ROMs are coupled to lumped parameter system simulation models through the mechanisms of the System Structure and Parameterization (SSP) and Functional Mock-up Interface (FMI) standards. In addition, several important factors to consider before using the proposed methodology are presented. These include the intended use of the ROM, knowing the flow inside the system, what resources are available, and any potential licensing issues. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Olle Lindqvist, Robert Hällqvist, Raghu Chaitanya Munjulury https://ecp.ep.liu.se/index.php/modelica/article/view/916 Distributed Parameter Pneumatics 2024-03-11T10:48:57+01:00 Felix Fischer Katharina Schmitz Pneumatics is a branch of engineering that deals with the use of pressurized air or gases to create mechanical motion. It involves the study and application of systems and components such as air compressors, valves, cylinders, and actuators to control and transmit power through the use of compressed air. For highly dynamic events in pneumatic systems, such as fast switching processes in automation technology, lumped-parameter simulation is not sufficient to correctly calculate the pressure build-up in pipes. The propagation and reflections of different pressure waves and refraction waves cannot be accounted for by the zero-dimensional models provided by the Modelica.Fluid library. Therefore, a method for calculating such events using the finite volume method is presented in this paper. The library presented in this work, uses Gudonov's scheme and an arbitrary Riemann-solver and gas model to calculate the time evolution inside 1D or 2D discretized pneumatic components as well as systems composed of these components. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Felix Fischer, Katharina Schmitz https://ecp.ep.liu.se/index.php/modelica/article/view/917 A renewable heat plant Modelica library for dynamic optimization with Optimica 2024-03-11T10:48:57+01:00 Thomas Colin De Verdiere Sylvain Serra Sabine Sochard Pierre Garcia Pierre Delmas Jean-Michel Reneaume Almost half of the energy consumed globally is under the form of heat, produced mainly through fossil fuels. Switching to using renewable energy instead is a real challenge. Combining renewable thermal energy with thermal storage is a complex system to operate. To harness the full potential of thermal plants, advanced control strategies need to be implemented. Dynamic real-time optimization (DRTO) seems promising to fine tune controller setpoints of plants. The goal of our study is to ultimately enable DRTO by using Optimica because of its ease of use and Modelica’s modularity. This paper presents a Modelica library developed to first perform offline dynamic optimization with Optimica, and would ultimately be used in a DRTO strategy. The library enables to model a renewable thermal plant composed of solar thermals, heat pumps and thermal storages. The model of each subcomponent has been validated. Initial dynamic optimizations of plant operation give promising results. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Thomas Colin De Verdiere, Sylvain Serra, Sabine Sochard, Pierre Garcia, Pierre Delmas, Jean-Michel Reneaume https://ecp.ep.liu.se/index.php/modelica/article/view/918 Efficient Global Multi Parameter Calibration for Complex System Models Using Machine-Learning Surrogates 2024-03-11T10:48:58+01:00 Julius Aka Johannes Brunnemann Svenne Freund Arne Speerforck In this work, we adress challenges associated with multi parameter calibration of complex system models of high computational expense. We propose to replace the Modelica Model for screening of parameter space by a computational effective Machine-Learning Surrogate, followed by a polishing with a gradient-based optimizer coupled to the Modelica Model. Our results show the superiority of this approach compared to common-used optimization strategies. We can resign on determining initial optimization values while using a small number of Modelica model calls, paving the path towards efficient global optimization. The Machine Learning Surrogate, namely a Physics Enhanced Latent Space Variational Autoencoder (PELS-VAE), is able to capture the impact of most influential parameters on small training sets and delivers sufficiently good starting values to the gradient-based optimizer. In order to make this paper self-contained, we give a sound overview to the necessary theory, namely Global Sensitivity Analysis with Sobol Indices and Variational Autoencoders. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Julius Aka, Johannes Brunnemann, Svenne Freund, Arne Speerforck https://ecp.ep.liu.se/index.php/modelica/article/view/919 Fast Charge Algorithm Development for Battery Packs under Electrochemical and Thermal Constraints with JModelica.org 2024-03-11T10:48:59+01:00 Alberto Romero Johannes Angerer Strict operating boundaries on commercial lithium ion cells are defined to mitigate the effect of aging (loss of capacity and increase in internal resistance), as well as avoiding safety hazards, like the appearance of lithium plating during charge, which can lead to internal short circuit and subsequent thermal runnaway. Therefore, to develop fast charge algorithms that maximize charging speeds, electrochemical and thermal constraints must be considered. Most studies so far have focused on the single cell problem, whereas pack-level fast charge challenge has been tackled directly by the industry. The reason is that the temperature difference between cells within a battery pack is often considered small, and therefore that optimal charging profiles can be extrapolated from single cell investigations. In practice, temperature spread can reach up to 10 K from coldest to warmest points in the pack, and at least 5 K between same position of different cells. With this in mind, a Nonlinear Model Predictive Control (NLMPC) scheme is proposed that considers both electrochemical and thermal constraints at pack level, establishing, at least on a theoretical basis, the practical limits of fast charge. We demonstrate how active thermal management, i.e., controlling the fluid inlet temperature, is critical to reducing charging times below 40 min (from 0% to 80% state of charge), and discuss some challenges when using online optimization-based control techniques 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Alberto Romero, Johannes Angerer https://ecp.ep.liu.se/index.php/modelica/article/view/920 Comparative Study and Validation of Photovoltaic Model Formulations for the IBPSA Modelica Library based on Rooftop Measurement Data 2024-03-11T10:49:00+01:00 Laura Maier Christoph Nytsch-Geusen Lucas Westermann Kushagra Mathur Michael Wetter Dirk Müller Domain-overarching system models are crucial to investigate sector coupling concepts. Specifically, the coupling of building and electrical energy systems becomes crucial to integrate renewable energy sources such as photovoltaic power systems (PV). For such interdisciplinary simulation models, Modelica is a suitable language. However, most open-source Modelica libraries are either domain-specific or lack simple-to-parameterize PV models. We close this gap by developing a PV model for the IBPSA Modelica library. The model comprises two I-V-characteristic models and three mounting-dependent approaches to calculate the cell temperature. The I-V-characteristic models follow a single- and two-diodes approach. This study uses measurement data from a rooftop PV system in Berlin, Germany, for validation. The focus lies on comparing the implemented single- and two-diodes approach. Results prove that both models accurately calculate the modules’ DC power output and cell temperature. The two-diodes approach slightly outperforms the single-diode one at the expense of a higher parameterization effort. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Laura Maier, Christoph Nytsch-Geusen, Lucas Westermann, Kushagra Mathur, Michael Wetter, Dirk Müller https://ecp.ep.liu.se/index.php/modelica/article/view/921 Paving the way for Hybrid Twins using Neural Functional Mock-Up Units 2024-03-11T10:49:01+01:00 Tobias Thummerer Artem Kolesnikov Julia Gundermann Denis Ritz Lars Mikelsons Porting Neural Ordinary Differential Equations (NeuralODEs), the combination of an artificial neural network and an ODE solver, to real engineering applications is still a challenging venture. However, we will show that Neural Functional Mock-up Units (NeuralFMUs), an evolved subgroup of NeuralODEs that contain Functional Mock-up Units (FMUs), are able to cope with these challenges. This paper briefly introduces to the topics NeuralODE and NeuralFMU and describes the procedure and considerations to apply this technique to a real engineering use case. Further, different workflows to apply NeuralFMUs dependent on tool capabilities and use case requirements are discussed. The presented method is illustrated with the creation of a Hybrid Twin of an hydraulic excavator arm, which has various challenges such as discontinuity, nonlinearity, oscillations and characteristic maps. Finally we will show, that the created Hybrid Twin, on basis of measurement data from a real system, gives more accurate results compared to a conventional simulation model based on first principles. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Tobias Thummerer, Artem Kolesnikov, Julia Gundermann, Denis Ritz, Lars Mikelsons https://ecp.ep.liu.se/index.php/modelica/article/view/922 Modeling and simulation of dynamically constrained objects for limited structurally variable systems in Modelica 2024-03-11T10:49:02+01:00 Robert Reiser Matthias J. Reiner This work introduces a new solution for the modeling and simulation of dynamically constrained objects for limited structurally variable systems purely in Modelica. A combination of a collision detection algorithm, the limitation of collisions, and a method to constrain objects based on forces leads to a constraint network in Modelica. It allows a stable and accurate simulation of applications such as robot tool changers in a flexible way without the need for predefined connections in the model. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Robert Reiser, Matthias J. Reiner https://ecp.ep.liu.se/index.php/modelica/article/view/923 A Graph-Based Meta-Data Model for DevOps: Extensions to SSP and SysML2 and a Review on the DCP standard 2024-03-11T10:49:02+01:00 Stefan H. Reiterer Clemens Schiffer Mario Schwaiger Computer simulation has become a vital tool for modeling complex systems. However, the development and deployment of simulation models often involve multiple stages, tools, and teams, which can lead to significant challenges in maintaining quality, reliability, and efficiency. DevOps, a set of practices that combines software development and IT operations, has emerged as a promising approach to streamline the simulation development. However, most system engineers are not DevOps specialists and there are a lot of manual steps involved when writing build pipelines and configurations of simulations. For this purpose, an abstract graph-based meta-data model was presented in previous work to provide an automation framework for DevOps with simulations. In this work we want to continue our investigations by expanding and harmonizing this approach to better work with established standards like SSP, SysML2 and DCP and demonstrating it's application on real-life use cases. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Stefan H. Reiterer, Clemens Schiffer, Mario Schwaiger https://ecp.ep.liu.se/index.php/modelica/article/view/924 Introducing Dialectic Mechanics 2024-03-11T10:49:03+01:00 Dirk Zimmer Carsten Oldemeyer This paper introduces a new method for mechanical systems with its own interface that enables the object-oriented formulation of very stiff contacts. It thereby suppresses high frequencies and yields stable replacement dynamics leading to an equivalent steady state. Potential applications are the efficient modeling and simulation of robotic manipulation or the easier handling of what formerly have been variable-structure systems. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Dirk Zimmer, Carsten Oldemeyer https://ecp.ep.liu.se/index.php/modelica/article/view/925 Pseudo Array Causalization 2024-03-11T10:49:04+01:00 Karim Abdelhak Francesco Casella Bernhard Bachmann In the current state-of-the-art modeling tools for simulation, it is common to describe system behavior symbolically using mixed continuous and discrete differential-algebraic equations, so called hybrid DAEs. To correctly resolve higher index problems, hybrid systems and to efficiently use ODE solvers, a matching and sorting problem has to be solved, commonly referred to as causalization. Typically multidimensional equations and variables are scalarized, which leads to excessive build time and generated code size in the case of large systems. An algorithm will be presented, that preserves array structures as much as possible while still solving the problem of causalization in scalar fashion. Test results carried out in the OpenModelica tool show a reduction in build time of one/two orders of magnitude and of a factor two/three in the simulation run time for models of the ScalableTestSuite library. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Karim Abdelhak, Francesco Casella, Bernhard Bachmann https://ecp.ep.liu.se/index.php/modelica/article/view/926 Understanding and Improving Model Performance at Small Mass Flow Rates in Fluid System Models 2024-03-11T10:49:04+01:00 Robert Flesch Annika Kuhlmann Johannes Brunnemann Eiden Jörg This paper provides a detailed analysis of the reasons behind the poor simulation performance observed when mass flow rates become very small, commonly referred to as zero mass flow issues. By using simple example models, we effectively demonstrate the underlying causes of these simulation performance issues. We highlight various contributing factors that play a significant role in exacerbating the problem. Furthermore, we propose and examine countermeasures to mitigate these challenges. These countermeasures include modifications to the model itself, utilization of available settings in simulation tools, and adjustments to the solver. By implementing and evaluating these countermeasures, we illustrate their impact on improving simulation performance in scenarios involving low mass flow rates. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Robert Flesch, Annika Kuhlmann, Johannes Brunnemann, Eiden Jörg https://ecp.ep.liu.se/index.php/modelica/article/view/927 Hybrid data driven/thermal simulation model for comfort assessment 2024-03-11T10:49:05+01:00 Romain Barbedienne Sara Yasmine Ouerk Mouadh Yagoubi Hassan Bouia Aurélie Kaemmerlen Benoit Charrier Machine learning models improve the speed and quality of physical models. However, they require a large amount of data, which is often difficult and costly to acquire. Predicting thermal comfort, for example, requires a controlled environment, with participants presenting various characteristics (age, gender, ...). This paper proposes a method for hybridizing real data with simulated data for thermal comfort prediction. The simulations are performed using Modelica Language. A benchmarking study is realized to compare different machine learning methods. Obtained results look very promising with an F1 score of 0.999 obtained using the random forest model. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Romain Barbedienne, Sara Yasmine Ouerk, Mouadh Yagoubi, Hassan Bouia, Aurélie Kaemmerlen, Benoit Charrier https://ecp.ep.liu.se/index.php/modelica/article/view/928 ThermalSystemsControlLibrary: A Modelica Library for Developing Control Strategies of Industrial Energy Systems 2024-03-11T10:49:06+01:00 Fabian Borst Michael Georg Frank Lukas Theisinger Matthias Weigold The transformation of energy-intensive industries towards greenhouse gas neutrality leads to increasing complexity of industrial energy supply systems. This affects particularly thermal energy systems due to waste heat utilization measures as well as the integration of renewable energy sources and further storage capacities. This complexity is also reflected in the control strategies of such systems, which makes the development of dynamic simulation models for testing them a research field of growing interest. The ThermalSystemsControlLibrary is a novel Modelica library, which aims at standardized modeling of industrial energy supply systems for control strategy development. Based on a generic data model, all components cover physical as well as control modeling and are particularly suitable for testing supervisory control strategies within external frameworks using the FMI standard. The library is validated for an exemplary use case of an industrial energy supply system comparing two different supervisory control strategies. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Fabian Borst, Michael Georg Frank, Lukas Theisinger, Matthias Weigold https://ecp.ep.liu.se/index.php/modelica/article/view/929 HVAC and Control Templates for the Modelica Buildings Library 2024-03-11T10:49:06+01:00 Antoine Gautier Michael Wetter Jianjun Hu Hubertus Tummescheit This article reports on our experience in creating Modelica models for systems with thousands of configurations and closed-loop controls. The development of such templates required exploration of class parameterization techniques and data structures for handling large sets of equipment parameters. By describing these issues and the approach taken, we show how the Modelica language can support advanced templating logic. The main limitation we encountered relates to parameter assignment and propagation. The interpretation of parameter attributes at user interface runtime, or the handling of non-trivial constructs involving record classes at compile time is not consistently supported by Modelica tools. This leads to choices that are difficult to make when looking for a generic implementation. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Antoine Gautier, Michael Wetter, Jianjun Hu, Hubertus Tummescheit https://ecp.ep.liu.se/index.php/modelica/article/view/930 Modeling and Simulation of the Hydrogen Value Chain with ThermoSysPro and Modelica 2024-03-11T10:49:07+01:00 Sebastian Vallejo Jimenez Luis Corona Mesa-Moles Damien Faille Dina Irofti Hydrogen will play a key role in the global energy transition if we are able to produce it with low-carbon emissions. However, clean hydrogen production today is mostly limited to demonstration projects ranging from 2 up to 20 MW. Modeling the way low-carbon hydrogen is produced, stored and used will allow us to significantly improve our understanding of how clean hydrogen could be produced and thus increase the production efficiency. In this paper, we show that the newest version of ThermoSysPro (TSP), an open-source Modelica library for modeling energy systems, provides a suitable framework to model and simulate the hydrogen production, storage and consumption. The model presented in this paper contains three electrolyzers, a storage station and a vehicle station. We present how the model was built, which components were adapted and how, and show that its simulation can be useful in the design phase, as well as for diagnosis purposes. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Sebastian Vallejo Jimenez, Luis Corona Mesa-Moles, Damien Faille, Dina Irofti https://ecp.ep.liu.se/index.php/modelica/article/view/931 Dialectic Mechanics: Extension for Real-Time Simulation 2024-03-11T10:49:08+01:00 Carsten Oldemeyer Dirk Zimmer Dialectic mechanics was introduced as an approximative modeling alternative to the classic Newtonian formulation of mechanics. It allows for additional freedom in placing a systems eigenvalues to facilitate simulation of systems, that are not suitable for most integration methods, when modeled according to the classic approach. The original idea of dialectic mechanics enables the suppression of high frequencies, but may still yield very stiff systems unsuitable for explicit integration methods. An additional term is added to enable real-time simulation with explicit methods. The goal of this paper is an analysis of the resulting equations and a comparison to the classic Newtonian formulation, aiming for an understanding of which applications most benefit from using dialectic mechanics. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Carsten Oldemeyer, Dirk Zimmer https://ecp.ep.liu.se/index.php/modelica/article/view/932 Testing the verification and validation capability of a DCP based interface for distributed real-time applications 2024-03-11T10:49:08+01:00 Mikel Segura Alejandro J. Calderón Tomaso Poggi Rafael Barcena Cyber-physical systems are composed of a variety of elements developed by different vendors that are often geographically distributed. Therefore, its development process presents a double challenge: each element has to be developed individually and, at the same time, a correct interaction with the rest of the elements has to be ensured. In a previous work, we proposed and developed an interface, based on the non-proprietary Distributed Co-simulation Protocol standard, to ease the interaction between these elements. In this paper, we improve it to be applicable in a variety of hardware platforms and we test its applicability for the verification and validation process. To do so, firstly, we prove that our interface is hardware agnostic, demonstrating its easy implementation on different platforms. Secondly, we test its applicability in different X-in-the-Loop simulations. Finally, we also test its behaviour in distributed real-time executions, a necessary requirement for linking elements from different suppliers and helping to preserve their Intellectual Property. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Mikel Segura, Alejandro J. Calderón, Tomaso Poggi, Rafael Barcena https://ecp.ep.liu.se/index.php/modelica/article/view/933 Towards the separate compilation of Modelica: modularity and interfaces for the index reduction of incomplete DAE systems 2024-03-11T10:49:09+01:00 Albert Benveniste Benoît Caillaud Mathias Malandain Joan Thibault A key feature of the Modelica language is its object-oriented nature: components are instances of classes and they can aggregate other components, so that extremely large models can be efficiently designed as ``trees of components''. However, the structural analysis of Modelica models, a necessary step for generating simulation code, often relies on the flattening of this hierarchical structure, which undermines the scalability of the language and results in widely-used Modelica tools not being able to compile and simulate such large models. In this paper, we propose a novel method for the modular structural analysis of Modelica models. An adaptation of Pryce's Sigma-method for non-square DAE systems, along with a carefully crafted notion of component interface, make it possible to fully exploit the object tree structure of a model. The structural analysis of a component class can be performed once and for all, only requiring the information provided by the interface of its child components. The resulting method alleviates the exponential computation costs that can be yielded by model flattening; hence, its scalability makes it ideally suited for the modeling and simulation of large cyber-physical systems. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Albert Benveniste, Benoît Caillaud, Mathias Malandain, Joan Thibault https://ecp.ep.liu.se/index.php/modelica/article/view/934 Object-Oriented Formulation and Simulation of Models using Linear Implicit Equilibrium Dynamics 2024-03-11T10:49:10+01:00 Dirk Zimmer New robust and yet powerful Modelica libraries as the DLR ThermoFluid Stream library or the introduction of dialectic mechanics use a special modeling approach that uses linear implicit equilibrium dynamics. In this paper, we study the basic motivation of this approach, its benefits and drawbacks before finally showing how to get from the models to applicable simulation code. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Dirk Zimmer https://ecp.ep.liu.se/index.php/modelica/article/view/935 Accelerating the simulation of equation-based models by replacing non-linear algebraic loops with error-controlled machine learning surrogates 2024-03-11T10:49:11+01:00 Andreas Heuermann Philip Hannebohm Matthias Schäfer Bernhard Bachmann When simulating a Modelica model, non-linear algebraic loops may be present, which involves solving multiple equations simultaneously. The classical Newton-Raphson method is commonly employed for solving a non-linear equation system (NLS). However, the computational burden of using this method during simulation can be significant. To tackle this issue, utilizing artificial neural networks (ANNs) to approximate the solution of algebraic loops is a promising approach. While ANN surrogates offer fast performance, ensuring the correctness of the computed solution or quantifying reliability can be challenging. This publication presents a prototype, based on the OpenModelica compiler (OMC), that automates the extraction of time-consuming algebraic loops. It generates training data, trains ANNs using machine learning (ML) methods, and replaces the algebraic loops with ANN surrogates in the simulation code. A hybrid approach, combining the trained surrogate with the nonlinear Newton solver, is then used to compute the solution with a desired level of accuracy. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Andreas Heuermann, Philip Hannebohm, Matthias Schäfer, Bernhard Bachmann https://ecp.ep.liu.se/index.php/modelica/article/view/936 Exploiting Modelica and the OpenIPSL for University Campus Microgrid Model Development 2024-03-11T10:49:12+01:00 Fernando Fachini Srijita Bhattacharjee Miguel Aguilera Luigi Vanfretti Giuseppe Laera Tetiana Bogodorova Ardeshir Moftakhari Michael Huylo Atila Novoselac The need for modeling different aspects of microgrid design and operation has seen the development of various tools over time for different analysis purposes. In this study, Modelica has been adopted as the language of choice to construct a University Campus Microgrid model, utilizing the Modelica Standard Library and the OpenIPSL library. This paper explores the advantages of utilizing Modelica for campus microgrid modeling, emphasizing its benefits and unique features. Modelica features, such as the use of record structures and replaceable templates prove to be particularly advantageous for the modeling task, enabling flexibility and efficiency in the modeling process. Furthermore, comprehensive validation tests are conducted to ensure the accuracy and reliability of sub-systems (e.g. specific power generator systems), before assembling the microgrid network model as a whole. The results demonstrate the efficacy of Modelica in accurately modeling and simulating microgrids, highlighting its potential for advancing microgrid research and development. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Fernando Fachini, Srijita Bhattacharjee, Miguel Aguilera, Luigi Vanfretti, Giuseppe Laera, Tetiana Bogodorova, Ardeshir Moftakhari, Michael Huylo, Atila Novoselac https://ecp.ep.liu.se/index.php/modelica/article/view/937 Application of the OpenModelica-Matlab Interface to Integrated Simulation and Successive Linearization Based Model Predictive Control 2024-03-11T10:49:13+01:00 Mohammad Hadi Alizadeh Ali M. Sahlodin Arunkumar Palanisamy Francesco Casella Peter Fritzson This paper presents the implementation of successive linearization based model predictive control (SLMPC) efforts through the interfacing of OpenModelica and Matlab using the OMMatlab tool. The dynamic system (here a chemical process) and the model predictive control (MPC) algorithm are implemented in OpenModelica and Matlab, respectively. The model linearization procedure is carried out through OMMatlab, which is highly optimized in terms of run-time by using a single executable file and adapting it at each sample time. Also, necessary theories for a continuous model discretization are discussed for both nonlinear Modelica and linearized continuous models. A procedure for constructing an Extended Kalman Filter (EKF) from a continuous Modelica model is also presented. The usability of the OpenModelica-Matlab interface for SLMPC is demonstrated by control of liquid levels in a tanks-in-series problem. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Mohammad Hadi Alizadeh, Ali M. Sahlodin, Arunkumar Palanisamy, Francesco Casella, Peter Fritzson https://ecp.ep.liu.se/index.php/modelica/article/view/938 Parameter Estimation of Modelica Building Models Using CasADi 2024-03-11T10:49:13+01:00 Carlos Durán Cañas Javier Arroyo Joris Gillis Lieve Helsen Predictive control can substantially improve the energy performance of buildings during operation, but it requires a model of the building to be implemented. Gray-box model identification starts from a physics-based model (white-box element) and complements it with measurements from the operation of the building (black-box element). The level of detail of the original model is limited by the optimization problem that needs to be solved when estimating its parameters. Consequently, it is common to heavily simplify building models hindering the intelligibility of their parameters and limiting their application potential. This paper investigates the accuracy and scalability of different transcription methods for parameter estimation of building models. The methodology starts from a Modelica model as an initial guess which is transferred to CasADi using the Functional Mockup Interface to solve the parameter estimation problem. The study demonstrates the high effectiveness of multiple shooting. Single shooting and direct collocation could be more suitable for setups with faster integration times or with increased granularity in the training data, respectively. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Carlos Durán Cañas, Javier Arroyo, Joris Gillis, Lieve Helsen https://ecp.ep.liu.se/index.php/modelica/article/view/939 Presentation, Validation and Application of the EnergyProcess Library 2024-03-11T10:49:14+01:00 Francois Nepveu Sylvain Mathonniere Nicolas Lamaison Gael Enee Green production of hydrogen and its derivatives is becoming a cornerstone of industry decarbonation. Apart from the technological development point of view, optimizing the overall production chains dynamically is essential for the competitiveness of these systems. In this paper, we describe how we built, validated and used a Modelica-based library dedicated to the simulation and optimization of energy process for the production of green molecules. Especially, models of complex media, salt cavity hydrogen storage and electrolysis module are presented. An example application shows that the models of the library are particularly handy for the modeling of a 5MW electrolysis module, which is used for the calibration of an optimization model. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Francois Nepveu, Sylvain Mathonniere, Nicolas Lamaison, Gael Enee https://ecp.ep.liu.se/index.php/modelica/article/view/940 Import and Export of Functional Mockup Units in CasADi 2024-03-11T10:49:15+01:00 Joel Andersson This paper presents the recently added support for import and export of functional mockup units (FMUs) in CasADi, an open-source software framework for numerical optimization. Of particular interest is the efficient calculation of derivatives, especially in the context of sensitivity analysis and dynamic optimization. We show how the import interface allows for both first and second derivatives can be efficiently and accurately calculated and - importantly - validated for correctness. We also outline the FMU export interface, which leverages CasADi mature and efficient support for forward and adjoint derivative calculation and C code generation. Finally, potential future developments of the support are discussed. 2024-03-11T00:00:00+01:00 Copyright (c) 2023 Joel Andersson https://ecp.ep.liu.se/index.php/modelica/article/view/941 On the Characteristics of One-Dimensional Compressible Flow 2024-03-11T10:49:15+01:00 Hongtao Qiao Takashi Kobayashi Christopher Laughman Scott Bortoff Eigen decomposition of the governing equations that describe one-dimensional compressible flow has been presented. Analytical solution of the characteristics of the flow was derived. Simulation studies were conducted to support the theoretical analyses and wave propagation results were discussed in detail. It was found that acoustic effect due to the dynamic momentum led to a significant slowdown in the simulation and could be neglected in models without significant loss in accuracy for applications where energy transfer is of greater interest. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Hongtao Qiao, Takashi Kobayashi, Christopher Laughman, Scott Bortoff https://ecp.ep.liu.se/index.php/modelica/article/view/942 LargeTESModelingToolkit: A Modelica Library for Large-scale Thermal Energy Storage Modeling and Simulation 2024-03-11T10:49:16+01:00 Michael Reisenbichler-S. Franz Wotawa Keith O’Donovan Carles Ribas Tugores Franz Hengel This paper introduces the LargeTESModelingToolkit, a novel Modelica library for modeling and simulation of large-scale pit and tank thermal energy storage. This first comprehensive Modelica library in the field provides the flexibility and tools needed to develop new storage models tailored to the desired application. It also offers researchers and industrial users pre-built storage models for simulation studies to answer the relevant questions for an optimized design at storage and system level. In this paper we present the library’s key features and structure, and introduce the underlying physical and mathematical foundations and modeling approaches. Moreover, we discuss the validation of the models, present the first results, and show the library’s applicability using an exemplary simulation case study. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Michael Reisenbichler-S., Franz Wotawa, Keith O’Donovan, Carles Ribas Tugores, Franz Hengel https://ecp.ep.liu.se/index.php/modelica/article/view/943 Dynamic Modeling and Experimental Validation of Dishwasher with Heat Pump System 2024-03-11T10:49:17+01:00 Erdoğan Mert Şeren Mutlu İpek Integration of heat pump systems with conventional dishwashers or household water heaters using electric heaters offers a promising solution to significantly reduce expected energy consumption. In this study, a comprehensive approach was undertaken to develop sub-models for each component of the heat pump dishwasher. These sub-models were subsequently integrated to form a complete cycle model of the heat pump dishwasher. The specific components modeled included the compressor, evaporator, condenser, and capillary tube. Furthermore, an algorithm was devised to ensure the proper functioning of all the individual models, in accordance with the operational principles of the dishwasher. To validate the model, the temperature variation within the dishwasher during the heating and cooling phases was compared against experimental data. The maximum deviation observed in the cabinet temperature of the dishwasher was found to be 1 °C, with a corresponding deviation of 0.5 minutes in the cycle duration. Moreover, the maximum deviation in power consumption amounted to 2.4%, while a maximum deviation of 2.9% was noted in energy consumption. The results obtained from the model closely aligned with the experimental outcomes, thereby confirming its accuracy and reliability. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Erdoğan Mert Şeren, Mutlu İpek https://ecp.ep.liu.se/index.php/modelica/article/view/944 A Library to Simulate Processes in the Factory Hall 2024-03-11T10:49:18+01:00 Julia Gundermann Torsten Blochwitz The Modelica language is well suited to model systems with discrete and continuous dynamics. If one wants to model the flow of items through manufacturing steps such as preparation, mounting, or transport in the shop floor, this feature is crucial. The library ProcessSimulation can be used to model such processes. By default, it omits the technical details of the process steps, and focuses on the flow of material items through the process steps. In addition to that, a base model to calculate the energy consumption in the different manufacturing steps is provided. It can be enriched with technical details of the components. The library can be used for the calculation of (net) energy consumption, but also for task planning. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Julia Gundermann, Torsten Blochwitz https://ecp.ep.liu.se/index.php/modelica/article/view/945 Modelica 3.6 - Changes, Benefits and Implementation 2024-03-11T10:49:18+01:00 Hans Olsson The latest release of the Modelica Language Specification version 3.6 brings several benefits to users, and this paper will discuss the changes and the benefits for the clearer parameter defaults, clearer start-value priority, selective model extension, and multi-lingual support. The benefits only occur when the features are implemented in Modelica tools, and to facilitate that, the paper will discuss the design choices when implementing the new standard in Dymola 2023x Refresh 1 and 3DEXPERIENCE 2023x FD03. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Hans Olsson https://ecp.ep.liu.se/index.php/modelica/article/view/946 Modelica models in SSP 2024-03-11T10:49:19+01:00 Dag Brück This is a proposed optional extension for SSP 2.0 that defines how Modelica models can be referenced in SSP. It specifies the mapping of key Modelica concepts to SSP, which necessitates a few small extensions. The purpose is to broaden the scope of SSP to embrace the more powerful modeling concepts of Modelica, for environments that can support it. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Dag Brück https://ecp.ep.liu.se/index.php/modelica/article/view/947 Beyond FMI - Towards New Applications with Layered Standards 2024-03-11T10:49:19+01:00 Christian Bertsch Markus Süvern Torsten Sommer Klaus Schuch Kevin Reim Pierre R. Benedikt Menne Andreas Junghanns Torsten Blochwitz Matthias Blesken Patrick Täuber The FMI standard - just like any other standard - faces the challenge of balancing generality with enabling specific use cases. Including every domain or use-case specific extension in the core standard would significantly increase its length, making it unreadable and unimplementable. To allow for extensions of the core standard for specific use cases, the Modelica Association developed the concept of layered standards, first in the SSP standard and later in FMI. This paper presents the concept of layered standards and describes the layered standards currently under development by the FMI Project: XCP support of FMUs, network communication, and structured variables and regular maps in FMI 3.0. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Christian Bertsch, Matthias Blesken, Torsten Blochwitz, Andreas Junghanns, Benedikt Menne, Pierre R., Kevin Reim, Klaus Schuch, Torsten Sommer, Markus Süvern, Patrick Täuber https://ecp.ep.liu.se/index.php/modelica/article/view/948 Low-order aquifer thermal energy storage model for geothermal system simulation 2024-03-11T10:49:20+01:00 Alessandro Maccarini Michael Wetter Davide Varesano Martin Bloemendal Alireza Afshari Angelo Zarrella This paper presents a low order aquifer thermal energy storage (ATES) model for simulation of combined subsurface and above-surface energy systems. The model is included in the Modelica IBPSA Library, which is a free open-source library with basic models for building and district energy and control systems. The model uses a lumped-component method, in which the transient conductive-convective heat and mass transfer equation is radially discretized. To verify the accuracy of the model, we present an intra-model comparison from a simulation test suite. Results show that the Modelica ATES model is in good agreement, with a normalized mean bias error for yearly variation of aquifer temperatures of 1.6×10−2 and 9×10−5 at 1 m and 10 m distance from the well. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Alessandro Maccarini, Michael Wetter, Davide Varesano, Martin Bloemendal, Alireza Afshari, Angelo Zarrella https://ecp.ep.liu.se/index.php/modelica/article/view/949 Heat Consumer Model for Robust and Fast Simulations of District Heating Networks 2024-03-11T10:49:20+01:00 Johannes Zipplies Janybek Orozaliev Klaus Vajen Dynamic thermo-hydraulic simulations of district heating networks are an essential tool to investigate concepts for their sustainable design and operation. The way the numerous heat consumers are modeled has crucial impact on the simulation performance. The proposed model for heat consumers is designed to require low computational effort by using a simplified modeling approach, avoiding state events and limiting its dynamics, while still reproducing their main characteristics. It is tested for a demonstration network, showing its ability to yield realistic results throughout the whole range of operational states including undersupply situations. The results show that the heat consumer model itself requires little time to simulate but still significantly influences the simulation time. Fast dynamics and including a bypass in the model increase the simulation time, so that users should sensibly choose how to use these options. Furthermore, heat consumer models triggering unnecessary state events result in the highest computational effort. 2024-03-11T00:00:00+01:00 Copyright (c) 2023 Johannes Zipplies, Janybek Orozaliev, Klaus Vajen https://ecp.ep.liu.se/index.php/modelica/article/view/950 Convection of Chemicals and Other Substances with ThermoSysPro 2024-03-11T10:49:21+01:00 Giorgio Simonini Arnaud Duval Sarah Hocine-Rastic Mathilde Praud Digital twins are a powerful support tool for plant operation: they provide further understanding on ongoing phenomena and allow realistic projection of the current plant state into the future. Among other twins, EDF is developing a digital twin of the chemistry of the secondary circuits of its nuclear plants. Such a tool will give access to the pH in any point of the circuit and in any operating condition (e.g. partial load, power transients...), outperforming the current, limited, monitoring techniques. It is expected to help operators and engineers to better monitor the circuit (e.g. for erosion corrosion) and anticipate the consequences on equipment of different operating strategies (e.g. for amines’ injection pumps maintenance). ThermoSysPro, the EDF R&D’s thermal-hydraulic library, is the bedrock of the tool under development. To meet the needs of the target application, modeling of amines convection and some related chemistry, allowing the computation of pH, are introduced in a new version of the library. Moreover, the presented approach aims at proposing a general framework allowing the convection of custom substances (i.e. easily customized by the end user following its needs). This will open the door for a wide range of other applications: radioactive substances, pollution (e.g. salted water ingress coming from a heat-exchanger leak), just to cite a few, could be modeled in ThermoSysPro to augment the scope of the digital twins. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Giorgio Simonini, Arnaud Duval, Sarah Hocine-Rastic, Mathilde Praud https://ecp.ep.liu.se/index.php/modelica/article/view/951 Using the DLR Thermofluid Stream Library for Thermal Management of Fuel Cell Systems in Aviation 2024-03-11T10:49:22+01:00 Niels Weber Camiel Cartignij Dirk Zimmer For more environmental friendly aircraft, different propulsion systems are considered. Either fuel cell or fully electrically driven aircraft come along with challenging heat dissipation tasks. An intelligent thermal management system is essential to prevent failures and to ensure a reliable operation of the propulsion system. The exploration space for appropriate cooling systems seems endless, hence it is vital to rely on robust modeling libraries that enable a quick design and simulation of different architectures. The open source DLR Thermofluid Stream Library (TFS) forms such a basis and proved to be expedient in that sense. This paper gives an overview of a complete fuel cell system for future aircraft that covers the most essential subsystems and is modeled solely of components contained in the TFS. The focus is on different cooling systems and methods that can be quickly investigated in the context of the overall fuel cell system throughout an entire flight mission. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Niels Weber, Camiel Cartignij, Dirk Zimmer https://ecp.ep.liu.se/index.php/modelica/article/view/952 Supporting Infinitely Fast Processes in Continuous System Modeling 2024-03-11T10:49:23+01:00 John Kristofer Tinnerholm Francesco Casella Adrian Pop In this article, we examine the consequences of introducing a new construct into an equation-based language to model infinitely fast processes. We do this by extending the equation-based language Modelica with a special time constant, Θ. Θ provides modelers with an additional language construct that they can utilize both to improve performance of numerical integration for existing models as well as formulating and simulating models that existing tools struggle with. We present two cases where clear net benefits of introducing this new operator are illustrated. The first being an artificial DAE-System using a monotonic function, the second being an electrical circuit with and without a parasitic capacitance Based on or observations we believe that by enabling modelers to express common idealizations using Θwe can improve both performance and maintainability, since idealizations made by the modeler are encoded explicitly in the model. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 John Kristofer Tinnerholm, Francesco Casella, Adrian Pop https://ecp.ep.liu.se/index.php/modelica/article/view/953 A Modelica Library to Add Contact Dynamics and Terramechanics to Multi-Body Mechanics 2024-03-11T10:49:24+01:00 Fabian Buse Antoine Pignède Stefan Barthelmes The Contact Dynamics library extends the multi-body Modelica Standard Library with contact calculation to the environment, namely soft soil and hard obstacles. A focus is on terramechanics, i. e. wheels driving on soft and dry soil, and a handful of models are implemented. Additionally, a Hertz contact model for hard and elastic contact, between bodies themselves or to obstacles in the environment (e. g. rocks in the soft soil), is available as well. The capabilities of the library have been key in the development of rovers for planetary exploration such as the upcoming MMX mission to the Martian moon Phobos. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Fabian Buse, Antoine Pignède, Stefan Barthelmes https://ecp.ep.liu.se/index.php/modelica/article/view/954 Bodylight.js 2.0 - Web components for FMU simulation, visualisation and animation in standard web browser 2024-03-11T10:49:24+01:00 Tomas Kulhanek Arnost Mladek Jiri Kofranek Filip Jezek Simulators used in teaching and education comprises a mathematical model of the system under study and user interface that allows to control model inputs and visualize model state and results in an intuitive way. This paper presents web components - that can be used to build in-browser web simulator. The models used for the web simulators must be written in standard Modelica language and compiled as standard FMU (Functional mockup unit). The toolchain version Bodylight.js 2.0 contains tools to compile FMU into WebAssembly language able to be executed directly by web browser. Bodylight.js 2.0 web components can be then used to combine model, interactive animation and charts into rich web document in HTML or Markdown syntax only without any other programming or scripting. 2024-03-11T00:00:00+01:00 Copyright (c) 2023 Tomas Kulhanek, Arnost Mladek, Jiri Kofranek, Filip Jezek https://ecp.ep.liu.se/index.php/modelica/article/view/955 Design ideas behind Bioprocess Library for Modelica 2024-03-11T10:49:25+01:00 Jan Peter Axelsson In this paper I describe key design ideas behind the Bioprocess Library. The library facilitates modelling and simulation of bioprocesses mainly for the pharmaceutical industry. It borrows some structures from MSL Fluid and Media but differs in central design choices and is much simpler. A typical application consists of both configuration of standard components from the library and tailor-made Modelica code defining the application dependent medium and bioprocess reactions. The guiding idea is that configuration of components works well for defining the setup of process equipment for a production line, while more flexibility is needed for modelling bioprocess reactions and therefore equations are used. Another central design idea is that components of equipment are centrally adapted to the medium used. One could say that the library is parameterised with the application media and reaction models. The focus of this paper is structural aspects of the library rather than the content. 2024-03-11T00:00:00+01:00 Copyright (c) 2023 Jan Peter Axelsson https://ecp.ep.liu.se/index.php/modelica/article/view/956 Creating cardiovascular and respiratory models using Physiolibrary 3.0 2024-03-11T10:49:26+01:00 Marek Mateják The free open-source library called Physiolibrary (https://github.com/MarekMatejak/Physiolibrary) in version 3.0 recast components from physiological domains such as hydraulic (cardiovascular), thermal, osmotic and chemical into Modelica Standard Library (MSL) concept of Fluid/Media. Components are expanded to include gases transports, acid-base, electrolytes, nutrients delivery and endocrines by simple selecting pre-packaged media. They can be connected directly (the same medium) or across membranes (different media), allowing small physiological models to be easily coupled within more quantitative ones with minimal effort. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Marek Mateják https://ecp.ep.liu.se/index.php/modelica/article/view/957 Design proposal of a standardized Base Modelica language 2024-03-11T10:49:26+01:00 Gerd Kurzbach Oliver Lenord Hans Olsson Martin Sjölund Henrik Tidefelt This paper is presenting the design proposal of a simplified version of the Modelica language. Base Modelica is designed to serve as an intermediate representation enabling a clean separation of front-end and back-end matters when processing a Modelica model. Furthermore, is it intended as a basis to restructure the Modelica Language Specification considering two parts: the basic features and the advanced language constructs. After discussing the motivation, solution approach, and risks, the paper is highlighting a selection of design choices that have been made for the current pre-release version of the language. Code examples are given to illustrate and highlight various aspects of the language. Open issues, conclusions, and an outlook finalize the paper. By attracting more tool vendors and researchers to work with this intermediate representation the whole Modelica community is expected to benefit from new utilities to inspect, analyze, optimize and process equations-based models in general and Modelica models in particular. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Gerd Kurzbach, Oliver Lenord, Hans Olsson, Martin Sjölund, Henrik Tidefelt https://ecp.ep.liu.se/index.php/modelica/article/view/958 A preCICE-FMI Runner to Couple FMUs to PDE-Based Simulations 2024-03-11T10:49:27+01:00 Leonard Willeke David Schneider Benjamin Uekermann Partitioned simulation or co-simulation allows simulating complex systems by breaking them up into smaller subsystems. The Functional Mock-Up Interface (FMI) enables co-simulation for models based on ODEs and DAEs, but typically not PDEs. However, only PDE-based models are able to accurately simulate physical aspects requiring spatial resolution, such as heat transfer or fluid-structure interaction. We present a preCICE-FMI runner software to integrate FMUs with the open-source coupling library preCICE. preCICE couples PDE-based simulation programs, such as OpenFOAM or FEniCS, in a black-box fashion to achieve partitioned multi-physics simulations. The runner serves as an importer to execute any FMU and to steer the simulation. Additionally, it calls preCICE to communicate and coordinate with other programs. The software is written in Python and relies on the Python package FMPy. We showcase two example cases for the coupling of FMUs to ODE- and PDE-based models. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Leonard Willeke, David Schneider, Benjamin Uekermann https://ecp.ep.liu.se/index.php/modelica/article/view/959 Secure Exchange of Black-Box Simulation Models using FMI in the Industrial Context 2024-03-11T10:49:28+01:00 Christian Wolf Miriam Schleipen Georg Frey <p>FMI is a standard for exchanging simulation models in a platform-agnostic way, also in form of black-box models. In the industrial context, it is common to exchange such black-box simulation models especially between partners. Using and running such models, though, is a security issue as there is no way to verify and validate the content of the models. This security issue must be addressed especially in the industrial context where security is considered high priority in general. Based on an exemplary model exchange, possible attacks are analyzed in this work. By using cryptography, three different approaches to pack the additional metadata are presented that aim at providing end-to-end integrity checks to a black-box simulation models. Together with administrative measures, this allows to define those FMUs to be trusted and executed. For sake of completeness, a prototype was implemented to help with the cryptographic processes and show the effectiveness of the provided solution.</p> <p><strong><em>Please note that the PDF was replaced by another PDF on 2024-03-12 since a completely different paper was uploaded previously.</em></strong></p> 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Christian Wolf, Miriam Schleipen, Georg Frey https://ecp.ep.liu.se/index.php/modelica/article/view/960 The Common Requirement Modeling Language 2024-03-11T10:49:29+01:00 Daniel Bouskela Lena Buffoni Audrey Jardin Vince Molnair Adrian Pop Armin Zavada CRML (the Common Requirement Modeling Language) is a new language for the formal expression of requirements. The ambition is to release the language as an open standard integrated into the open source modeling and simulation tool OpenModelica and interoperable with the open systems engineering standard SysMLv2. CRML allows to express requirements as multidisciplinary spatiotemporal constraints that can be verified against system design by co-simulating requirements models with behavioral models. Particular attention is paid to the following aspects. The requirements models must be easily legible and sharable between disciplines and stakeholders and must capture realistic constraints on the system, including time-dependent constraints with probabilistic criteria, in recognition of the fact that no constraint can be fulfilled at any time at any cost. The theoretical foundation of the language lies on 4-valued Boolean algebra, set theory and function theory. The coupling of the requirements models to the behavioral models is obtained through the specification of bindings, the automatic generation of Modelica code from the CRML model and use of the FMI and SSP standards. CRML and the proposed methodology is compatible with SysMLv2, forming a comprehensive work-flow and tool-chain encompassing requirement analysis, system design and V&V. The final objective is to facilitate the demonstration of correctness of system behavior against assumptions and requirements by building a workflow around Model-Driven Engineering and Open Standards for automating the creation of verification simulators. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Daniel Bouskela, Lena Buffoni, Audrey Jardin, Vince Molnair, Adrian Pop, Armin Zavada https://ecp.ep.liu.se/index.php/modelica/article/view/961 Variable Structure System Simulation via Predefined Acausal Components 2024-03-11T10:49:30+01:00 Andrea Neumayr Martin Otter This article outlines a new approach of the experimental open-source modeling and simulation system Modia to simulate systems where the number of variables and equations can be changed after compilation and also during simulation, without having to re-generate and rec-ompile the code. Details are given for heat transfer in an insulated rod, where the discretisation of the rod is completely hidden from the symbolic engine. It is discussed how this approach could also be used in a future version of Modelica and/or FMI. Furthermore, this feature is also used in various variants to speed up collision handling in 3D mechanical systems. For example, by rigidly fixing an object after it has been gripped, with or without calculating the elastic response, and thereby dynamically changing the number of degrees of freedom. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Andrea Neumayr, Martin Otter https://ecp.ep.liu.se/index.php/modelica/article/view/962 MoCITempGen: Modelica Continuous Integration Template Generator 2024-03-11T10:49:30+01:00 David Jansen Fabian Wüllhorst Sven Hinrichs Dirk Müller Modelica enables an object-oriented approach to model complex systems in product development and research, and, thus, the development of various model libraries. Library development requires collaborative development in a team of multiple developers. A typical challenge in collaborative development, especially in the area of open source, is to create models of uniform quality despite different levels of knowledge among developers. Techniques such as Continuous Integration (CI) from the field of software development, can help to solve these challenges. However, the adaptation of CI for the area of Modelica model development currently requires the manual creation of complex templates and a high degree of manual configuration. In this paper we present MoCITempGen, an open source tool for automated generation of CI structures for the widely used modeling language Modelica. The tool is succesfully applied on two Modelica libraries to demonstrate the functionality. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 David Jansen, Fabian Wüllhorst, Sven Hinrichs, Dirk Müller https://ecp.ep.liu.se/index.php/modelica/article/view/963 Steady State and Dynamic Simulation of a Small-Scale Hollow Fiber Membrane Humidifier 2024-03-11T10:49:31+01:00 Markus Pollak Manuel Kutz Christian Schulze Wilhelm Tegethoff Jürgen Köhler Membrane humidifiers are often used in mobile Proton Exchange Membrane (PEM) fuel cell systems to humidify the supply air of the fuel cell. The purpose of a humidifier in a PEM fuel cell system is to prevent a dry-out of the fuel cell membrane. In this paper, a humidifier model based on the number of transfer units (NTU) approach is set-up in Modelica, calibrated and validated using measurement of a test rig. In a first step, the model is evaluated for steady state operating conditions. Second the developed membrane humidifier model is simulated with dynamically changing operating conditions that are typical for mobile applications. Those simulation results are then compared to measurements. The aim of our study is to evaluate the accuracy of the NTU humidifier model under various operating scenarios. Our results indicate that the NTU model is suitable to predict the water transfer under steady state as well as dynamically changing operating conditions with low deviations to measurements. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Markus Pollak, Manuel Kutz, Christian Schulze, Wilhelm Tegethoff, Jürgen Köhler https://ecp.ep.liu.se/index.php/modelica/article/view/964 Modeling Components of a Turbine-Generator System for Sub-Synchronous Oscillation Studies with Modelica 2024-03-11T10:49:32+01:00 Eric Segerstrom Luigi Vanfretti Chetan Mishra Kevin D. Jones In power systems, subsynchronous oscillations associated with the interaction between a mechanical rotor shaft and electrical system can lead to equipment damage if improperly mitigated. This paper describes the development of a scalable, multi-mass torsional shaft model and a synchronous machine model with DC offset torque components included using Modelica. When coupled, these models can be used to perform shaft torsional studies. Two methods of coupling the shaft with the rest of the turbine-generator system are devised and analyzed. A single-machine, infinite-bus test system using the torsional shaft model and generator model developed in this paper is proposed to observe the penetration of subsynchronous oscillations throughout an electrical system. The test system is then modified to model subsynchronous resonance leading to system instability. Analysis of the models described in this paper highlights the value of the Modelica_LinearSystems2 library in determining the torsional mode shapes and frequencies associated with a turbine-generator system model. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Eric Segerstrom, Luigi Vanfretti, Chetan Mishra, Kevin D. Jones https://ecp.ep.liu.se/index.php/modelica/article/view/965 DroneLibrary: Multi-domain Drone Modeling in Modelica 2024-03-11T10:49:33+01:00 Meaghan Podlaski Luigi Vanfretti Dietmar Winkler In the development of complex, novel electrified aerial systems such as Unmanned Aerial Vehicles (UAVs) and electric vertical take-off and landing (eVTOL) systems, multi-domain modeling and simulation studies can provide indispensable insight on system design and performance. In this paper, a Modelica library used to model multi-domain drone models is introduced. This library models a drone in the electrical, mechanical, and control domains, with examples for applications such as battery-power analysis, virtual reality simulation and user interaction. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Meaghan Podlaski, Luigi Vanfretti, Dietmar Winkler https://ecp.ep.liu.se/index.php/modelica/article/view/966 Optimal Scheduling of IES Considering Thermal Transmission Delay Based on Modelica and Julia 2024-03-11T10:49:33+01:00 Yong Qiu Jin Wang Shubin Zhang Yuan He Haiming Zhang Ji Ding Fanli Zhou The Integrated Energy System (IES) enables integrated control and coordinated optimization of multiple energy flows. Due to the complexity of dynamic characteristics of multiple energy flows and the significant differences in time scales, thermodynamic problems occur during the operation of the system. In this paper, we propose an IES operation method that comprehensively considers thermodynamics to reduce the impact of thermal transmission delay on the system's operational strategy, including modeling, evaluation, and scheduling programs. Firstly, an IES model is established to describe the dynamic characteristics of the energy supply network. Secondly, a two-stage optimization scheduling model considering thermal transmission delay is established to reduce the impact of thermal transmission delay on the operation decisions of IES, and the thermal power imbalance rate index is proposed to measure the impact of thermodynamics. Finally, the proposed method's effectiveness is validated by utilizing a comprehensive energy system as an example and implementing it on the MWORKS platform using the Modelica and Julia languages. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Yong Qiu, Jin Wang, Shubin Zhang, Yuan He, Haiming Zhang, Ji Ding, Fanli Zhou https://ecp.ep.liu.se/index.php/modelica/article/view/967 Simulation Study of Flow Instability in Parallel Multi-Channel Systems Based on Modelica 2024-03-11T10:49:34+01:00 qiushi Tong xing LV Kangjie Deng Xiaokang Zeng JI Ding Fanli Zhou In parallel channels of a nuclear reactor core, flow instability can cause a significant decrease in critical heat flux (CHF) or mechanical oscillation of the fuel components, endangering the normal operation of the reactor. The NUMAP software, developed based on the two-fluid six-equation theory and using the Modelica language, is a multi-domain unified modeling and simulation platform for nuclear power plants. In this paper, a parallel dual-channel system model was constructed based on the NUMAP software, referencing a high-temperature and high-pressure steam-water two-phase thermohydraulic experimental device, to simulate flow instability phenomena. The comparison with experimental data validated the transient analysis ability of the NUMAP software for flow instability phenomena. Based on this, the flow instability boundary of a parallel multi-channel system was calculated under the same operating conditions. When the number of parallel channels was 2, 3, and 4, the calculated flow instability boundary error did not exceed ±5%, verifying that a parallel dual-channel structure can be used to obtain the flow instability boundary when there are multiple parallel heating channels. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 qiushi Tong, xing LV, Kangjie Deng, Xiaokang Zeng, JI Ding, Fanli Zhou https://ecp.ep.liu.se/index.php/modelica/article/view/968 Integration of Heat Flow through Borders between Adjacent Zones in AixLib's Reduced-Order Model 2024-03-11T10:49:35+01:00 Philip Groesdonk David Jansen Jacob Estevam Schmiedt Bernhard Hoffschmidt For dynamically simulating the thermal behavior of a building, the reduced-order model (ROM) implemented in the Modelica IBPSA and AixLib libraries provides a time-efficient calculation method based on the standard VDI 6007-1. Additionally, the Python package TEASER features a possilibity to fill the model parameters with automatically generated typical and/or enriched building data. So far, both have not been capable of modelling heat flow through borders between thermal zones. In this contribution, we present the integration of this feature into the open-source software combination. Additional new features include non-constant soil temperatures and a new approach to estimate interior building elements in cases without proper knowledge. Calculation results are presented for an exemplary application and show satisfactory agreement with measured values. The respective code (including the example presented here) is in the process of being published as part of the AixLib and TEASER open-source repositiories. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Philip Groesdonk, David Jansen, Jacob Estevam Schmiedt, Bernhard Hoffschmidt https://ecp.ep.liu.se/index.php/modelica/article/view/969 Electrode boiler model for ancillary service simulation 2024-03-11T10:49:36+01:00 Rene Just Nielsen Thomas Egsgaard Pedersen A generic component-based model of an industrial electrode boiler with internal control systems is presented. A mechanistic modelling approach was taken to include as much process and control information as possible and to generate detailed simulation results. The model is intended for qualitative studies of electrode boiler dynamics in the context of district heating generation and power grid ancillary services in collaboration with other electric power consuming units. An example boiler control scheme is designed and included in the simulation model as this is paramount to the dynamic response of the system. Simulations of standstill, load changes, and startup from hot and cold state show that the strictest ancillary service requirements can be fulfilled when the boiler is kept at operating temperature. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Rene Just Nielsen, Thomas Egsgaard Pedersen https://ecp.ep.liu.se/index.php/modelica/article/view/970 Heat Exchanger Surrogates for a Vapor Compression System 2024-03-11T10:49:36+01:00 Nasrulloh Ratu Bagus Satrio Loka Nicolás Ablanque Mejía Santiago Torras Ortiz Sriram Karthik Gurumurthy Antonello Monti Joaquim Rigola Carles Oliet Ivo Couckuyt Tom Dhaene Given the computationally intensive nature of heat exchanger simulators, utilizing a data-driven surrogate model for efficiently computing the heat exchanger outputs is desirable. This study focuses on developing integrated surrogate models of heat exchangers for a vapor compression system in Modelica. The surrogate models are designed to serve as steady-state equivalents based on an efficient physics-based model which was calibrated using reference data obtained from a more advanced simulation model. Subsequently, the calibrated model was employed to generate the training and testing data for the development of Gaussian Process (GP) and Multi-Layer Perceptron (MLP) surrogates. The obtained findings indicate that GPs exhibit high accuracy when applied to the heat exchanger's outputs with smooth behavior. GPs also demonstrate excellent data efficiency compared to MLPs. In cases where the GP struggles to model specific outputs effectively, MLPs are able to capture the more complex behavior. Moreover, hyperparameter optimization is employed to identify optimal MLP topologies. Finally, the fast and compact surrogate model was integrated into the Modelica/Dymola environment. This adaptation allowed the surrogate models to be directly combined with the physical model of the heat exchanger. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Nasrulloh Ratu Bagus Satrio Loka, Nicolás Ablanque Mejía, Santiago Torras Ortiz, Sriram Karthik Gurumurthy, Antonello Monti, Joaquim Rigola, Carles Oliet, Ivo Couckuyt, Tom Dhaene https://ecp.ep.liu.se/index.php/modelica/article/view/971 5th Generation District Heating and Cooling Modelica Models for Prosumer Interaction Analysis 2024-03-11T10:49:38+01:00 Orestis Angelidis Daniel Zinsmeister Anastasia Ioannou Daniel Friedrich Alan Thomson Gioia Falcone 5th Generation District Heating and Cooling (5GDHC) provides a promising pathway for decarbonising the thermal sector. To quantifying the synergies between heating, cooling, and electricity, complex thermofluid models are required. Modelica offers a potential solution for developing such models but there is a scarcity of accessible and usable models. This paper addresses this gap by presenting a comprehensive set of Modelica models for key elements of 5GDHC systems: prosumers, balancing units, and hydraulic interfaces. The models prioritise usability by facilitating the utilisation of Func-tional Mock-up Interface and Power Hardware-in-the-Loop (PHIL) methodologies. Component design, rele-vant controls and the applicability of PHIL setups are discussed. A theoretical case exemplifies hardware min-imisation, using only heat exchangers to investigate prosumer behaviour. The paper concludes with a discus-sion on the potential use of these models, opportunities for improvement, and the need for further research and experimental investigations in understanding 5GDHC systems. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Orestis Angelidis, Daniel Zinsmeister, Anastasia Ioannou, Daniel Friedrich, Alan Thomson, Gioia Falcone https://ecp.ep.liu.se/index.php/modelica/article/view/972 Status of the ClaRa Library: Detailed Transient Simulation of Complex Energy Systems 2024-03-11T10:49:38+01:00 Ales Vojacek Johannes Brunnemann Tim Hanke Thomas Marx-Schubach Jörg Eiden This paper presents the current state of the open-source Modelica library ClaRa, which provides its users with the capability to proficiently tackle tasks in the disciplines of thermal hydraulics, instrumentation and control pertaining to power plants and other kind of energy systems. We provide a comprehensive overview of how the library has successfully broadened its scope over the years of its development, transcending the original focus on conventional power plants to encompass renewable power plants, waste heat utilization, general process plants, refrigeration cycles, heat pumps and beyond. The new version, ClaRa 1.8.1, brings an exciting addition to the already impressive suite of features - support for the utilization of various artificial intelligence models in Modelica simulation tools. Furthermore, the authors unveil ClaRa's ambition to serve as a potential publication platform for third-party models from a steadily growing community of ClaRa users. This is underscored by several application models. Finally, we also describe the funding scheme for maintenance of open source ClaRa by an extended commercial version, ClaRaPlus. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Ales Vojacek, Johannes Brunnemann, Tim Hanke, Thomas Marx-Schubach, Jörg Eiden https://ecp.ep.liu.se/index.php/modelica/article/view/973 Open-Source Models for Sand-Based Thermal Energy Storage in Heating Applications 2024-03-11T10:49:40+01:00 Kathryn Hinkelman David Milner Wangda Zuo This paper presents a new open-source modeling package in the Modelica language for particle-based silica-sand thermal energy storage (TES) in heating applications, available at https://github.com/sbslab/modelica-sand. Silica sand is an abundant, low-cost, and efficient storage medium for concentrated solar power and electricity generation. Although uncommon today, solid particle TES could benefit building and district heating systems, particularly as building electrification and renewable energy penetration increases. To enable heating system design and evaluation with sand TES, this work developed and open-source released Modelica models from base classes through complete systems with both physical equipment and controls. This paper first presents the new models. Then, we demonstrate their application with a heating plant that supplies steam for district heating, while also providing power-to-heat grid services by storing excesses renewable electricity as thermal energy. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Kathryn Hinkelman, David Milner, Wangda Zuo https://ecp.ep.liu.se/index.php/modelica/article/view/974 An Open-Source Benchmark of IEEE Test Cases for Easily Testing a New Approach for Steady State Calculations in Power Systems 2024-03-11T10:49:40+01:00 Joy El Feghali Quentin Cossart Gautier Bureau Baptiste Letellier Ian Menezes Florentine Rosiere Marco Chiaramello Power systems modeling and simulation are essential to conduct studies on the electrical transmission system and ensure its security. For this purpose, RTE, the French Transmission System Operator (TSO), is developing Dynaωo, a hybrid Modelica/C++ open-source suite of simulation tools for power systems. Most power systems models for Dynaωo are developed in the Modelica language using the Dynaωo Modelica library. This paper presents a full Modelica standard electrical power system benchmark implemented using the Dynaωo library. The IEEE 14-bus system benchmark is modeled here for steady-state calculation, with an approach that replaces the static load flow. Two test cases are simulated using the OpenModelica environment showing differences in the final steady-state result. We show flexibility in modeling with this library where different system behaviors can be observed and where models with different levels of details can be replaced depending on the application: steady-state calculation, long-term stability, or short-term stability. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Joy El Feghali, Quentin Cossart, Gautier Bureau, Baptiste Letellier, Ian Menezes, Florentine Rosiere, Marco Chiaramello https://ecp.ep.liu.se/index.php/modelica/article/view/975 Dropwise CondensationWater Drainage Model 2024-03-11T10:49:41+01:00 Marcus Karel Richardson Robert Francis Kunz Modeling of condensation is important to estimating the residual water in small channels. The residual water that forms becomes a water source for permeable materials such as wooden structure or insulation. A model has been implemented in Modelica that will predict the amount of residual moisture after a period of water build up. This model includes parameters to relate droplet physics to a control volume. The parameters provide an macroscopic means of varying droplet adhesion force, droplet velocity, and drainage dynamics. Using CFD data as an example of real world data, this model has been correlated to demonstrate the effects of the parameters. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Marcus Karel Richardson, Robert Francis Kunz https://ecp.ep.liu.se/index.php/modelica/article/view/976 Modeling Specialized Electric Power Generators, Excitation Systems and Prime Movers used by North American Utilities 2024-03-11T10:49:42+01:00 Shamimul Islam Giuseppe Laera Marcelo de Castro Fernandes Luigi Vanfretti Chetan Mishra Kevin D. Jones The North American Electric Reliability Corporation (NERC) is expected to mandate model validation of power plant equipment in the near future. This will create a need to validate models for a large fleet of existing and future power plants. Historically, model validation of synchronous generators, excitation system, turbine governor, and other power system equipment has been conducted in diverse platforms. As a contribution to the power system model implementation using Modelica language and validation against commercial tools this work continues to develop power system component models and enriching the Open-Instance Power System Library (OpenIPSL). As a part of the development of OpenIPSL this paper describes the development of models used by North American utilities that follow NERC modeling requirements, including models of a synchronous generator, an excitation system, a turbine and governor using Modelica language in Dymola. The component implementation process is described and the validation of the models implemented in Modelica against PSS/E using both a single machine infinite bus (SMIB) and multi-machine system models is illustrated. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Shamimul Islam, Giuseppe Laera, Marcelo de Castro Fernandes, Luigi Vanfretti, Chetan Mishra, Kevin D. Jones https://ecp.ep.liu.se/index.php/modelica/article/view/977 Numerically Efficient Degradation Model of Catalyst Layers in PEM Fuel Cells using Modelica 2024-03-11T10:49:43+01:00 Jakob Trägner Steffen Heinke Wilhelm Tegethoff Jürgen Köhler Degradation of the catalyst layer is a major challenge for the commercialization of polymer electrolyte membrane fuel cells (PEMFCs). Numerical modeling helps to understand and analyse the degradation phenomena, to transfer results from accelerated stress tests (ASTs) to real applications and to optimize operating conditions regarding degradation. We implemented a typical catalyst degradation model for platinum used in literature in Modelica. A numerical analysis shows the problem of “stiffness” for these models, meaning the tremendous difference in time constants. Assuming the platinum ion concentration in the ionomer to be in quasi-equilibrium helps to reduce the “stiffness”, increases simulation speed and numerical robustness without any relevant inaccuracy. For a typical AST, the simulation speed can be more than doubled ending in a real-time factor of over 1,000. Thus, 500 hours of AST can be simulated within less than 30 minutes, which gives room for extensive analysis with the model. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Jakob Trägner, Steffen Heinke, Wilhelm Tegethoff, Jürgen Köhler https://ecp.ep.liu.se/index.php/modelica/article/view/978 Race Car Cooling System Model for Real Time use in a Driving Simulator 2024-03-11T10:49:44+01:00 Massimo Stellato Luca Bergianti Alessandro Picarelli Powertrain performance optimization is one of main targets in racecar and road hypercar development. A key activity needed for both endothermal and electric powertrains is the cooling system sizing through simulation to make sure that the temperature limits are not exceeded in the most aggressive conditions minimizing or avoiding power derating. This article describes the implementation of a 1D cooling system simulation model integrated with a vehicle multibody model to be used real time in the Dallara dynamic driving simulator with human driver. This activity is the result of a collaboration between Dallara which uses the model implemented to develop and optimize the cooling system architecture of its vehicles, and Claytex which develops the libraries used to generate these simulation models. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Massimo Stellato, Luca Bergianti, Alessandro Picarelli https://ecp.ep.liu.se/index.php/modelica/article/view/979 Switching and Averaging Models of a Bidirectional, Half-Bridge Based DC-DC converter with Load Distribution 2024-03-11T10:49:44+01:00 Andrea Reindl Andreas Lang Michael Niemetz Hans Meier Batteries are used in numerous applications such as mobile devices, electric vehicles, home storage systems and islanded microgrids. Bidirectional DC-DC converters are vital for the integration of batteries, for the power conversion during (dis)charge and the battery management. Modeling of these is helpful, especially for the design of larger, more complex systems consisting of multiple DC-DC converters in parallel. Due to the high switching frequencies, the simulation of DC-DC converters is associated with increased computational time and effort. In this paper, three models of different complexity and accuracy are proposed for a bidirectional DC-DC converter consisting of two phase-shifted half-bridges. Two switching models, which differ mainly in the way the mosfets are driven, account for the individual switching operations and exhibit high accuracy. An averaging model replaces the switching elements with current and voltage sources providing the mean values. It is particularly suitable for multiple components and longer simulation durations. The dynamic behavior of the models is analyzed using the step responses of the load current. For validation, these are compared with the theoretical transfer function. The three models are analyzed comparatively in terms of computational time and effort. The calculation time of the averaging model has been reduced by two thirds compared to the strictly complementary switching model and by 96% relative to the model with diode emulation mode. The averaging model requires only one third of the computation time of the complementary switching model and only 3.5% of that of the model with diode emulation. Recommendations for the use of the models are given and a possible use case is shown. Two parallel connected DC-DC converters with load current sharing between them are simulated using the averaging model. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Andrea Reindl, Andreas Lang, Michael Niemetz, Hans Meier https://ecp.ep.liu.se/index.php/modelica/article/view/980 Mass Conservation in Vapor Compression Cycles: A Method for Ensuring Consistency with Redundant Dynamic States 2024-03-11T10:49:45+01:00 Daniel Andersson John Batteh Matthis Thorade Lixiang Li This paper describes a method to resolve a potential inconsistency when employing redundant dynamic thermofluid states for modeling of vapor compression cycles. Following a brief introduction regarding the motivation and use of redundant thermofluid states, a series of test models ranging from simple component models to complex system models are developed to illustrate the potential inconsistency with Air Conditioning Library. Based on observations of the simulation results from these test models, a method for ensuring consistency is proposed and implemented. The method is then demonstrated on the test suite and evaluated for effectiveness, robustness, and computational efficiency. 2023-12-22T00:00:00+01:00 Copyright (c) 2023 Daniel Andersson, John Batteh, Matthis Thorade, Lixiang Li