Development of a Modelica Base Library for Modeling of Thermo-Hydraulic Systems

Hubertus Tummescheit, Jonas Eborn, Falko Wagner · Lund University Publications (Lund University) · 2000

This paper presents current results of an ongoing project to develop a Modelica base library for thermohydraulic systems. There are many different aspects to the development of such a library, fromthe basic physics of fluids and heat to the structuring of model classes in the library and the actual implementation in the Modelica language. The structuring should define interfaces and partial classes that facilitate reuse to make the library general and easy to use. Different choices of media, use of different state variables as well as different levels of complexity in modeling is anticipated in the library structure. The basic entity in the library is the model of a control volume. It is formed by multiple inheritance from three parts; the partial thermal model, the partial hydraulic model and the medium model. Flexibility is obtained by parameterizing this control volume. It can be either lumped or discretized in n sections. The three parts are also parameterized with class parameters. This means for example that you can easily exchange medium in a control volume. The aim of the project is to develop a model library that contains all basic components needed for thermohydraulic systems. Besides control volumes and medium models this also means models for simple machinery, e. g., pumps, valves and heat exchangers. Code examples are given in the paper.

Read the paper · More papers on PaperTik