- To use this version of ExternalMedia switch to the appropriate branch. The
masterbranch is not the correct branch to use.- Download/clone the repository
- Change to the desired branch (not master).
- Go to the
Projectsdirectory and double-click/run the.batappropirate for your needs. This will clone, compile, and copy the required files to the appropriate place.- Note: If exporting your model as an
FMUyou must change theTARGETin the selected.bat.file fromDymolatoFMUand then rerun the.batfile. - Note you do not need to close/open Dymola when you perform that change.
- Note: If exporting your model as an
- The
MSL4.0branch works with the MSL 4.0 (surprise surprise). - Additional options on the
cp_supportbranch for legacy coolprop have not been migrated to theMSL4.0branch. Take a look at theProjectsfolder to see if there are ways to make that correction.
The ExternalMedia library provides a framework for interfacing external codes computing fluid properties to Modelica.Media-compatible component models.
The ExternalMedia library provides a framework for interfacing external codes computing fluid properties to Modelica.Media-compatible component models. It is compatible with Modelica Standard Library v 3.2, 3.2.1, and 3.2.2.
The current version of the library supports pure and pseudo-pure fluids models, possibly two-phase, compliant with the Modelica.Media.Interfaces.PartialTwoPhaseMedium interface.
The current release of the library (3.2.1) includes a pre-compiled interface to the FluidProp software and built-in access to CoolProp. If you use the FluidProp software, you need to have the proper licenses to access the media of your interest and to compute the property derivatives.
The released library has been tested with Dymola and OpenModelica under Windows as well as with Dymola on 32bit Linux. Support for more tools and operating systems might be added in the future.
You can modify the library to add an interface to your own solver; if your solver is open-source, please contact the developers, we might add it to the official ExternalMedia library.
The library is currently under development for a new release with improved functionality, see the Wiki Page for more info.
The last stable release is 3.2.1.
See the Installation.txt file for installation instructions.
This Modelica package is free software and the use is completely at your own risk; it can be redistributed and/or modified under the terms of the Modelica License 2.
Main developers: Francesco Casella, Christoph Richter for the initial development. Ian Bell, Jorrit Wronski for the integration of CoolProp in the library.
Please report problems using GitHub issues.