Help - Search - Members - Calendar
Full Version: Integration of older Modelica-Verions
Modelica Forum > Modelica > Modelica
Meppel
Hy everyone,

i am using dymola with some libraries... Most of them are built up on Modelica.Standard.Library-2.2 respectively 2.2.1 ! But for example the ThermoFluid-Library uses the Modelica.Standard.Library-1.6...

So if i want to use models from such two librarys (1.6 and 2.2) together i can't do this, cause e.g. the "InPort"-Connector from Version 1.6 is not used anymore in Version 2.2 (now "RealInput"-Connector)...

Does someone know some solution for such problems???



Thanks in advance.

Regards Meppel
wagner
Hi Meppel,

do you use Dymola? Dymola has got conversion scripts to migrate models from Modelica 1.6 to Modelica 2.2. Did you try this?

Regards

wagner
Meppel
Hi Wagner,

yes i use Dymola... The problem is, if you use conversion scripts as you said ALL loaded Librarys will be converted, but as i said i want to use e.g. Powertrain as it is (2.2) together with ThermoFluid (1.6)... U can only use both at the same time if you save e.g. ThermoFluid "total" and then use it with PowerTrain...

regards Meppel
wilmfone
Hi Meppel,

you have some knowledge about bash-commands in linux? (This is only my way of using scripting languages. Python or every other language is fine.) Some ideas you can get at http://www.ss64.com/bash/.

I had the same problems when I started to build models. But right now I had not the bad luck to need both. A parallel use of libraries with Modelica 2.2.1 and 1.6.

What I mean for conversion is:
1. Figure out the whole changes between InPort and RealInput.
2. Try to estimate what is more efficient: a small script or manually written commands at the prompt
3. gawk should be the most important command

Good luck,

Thore
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.