openmodelicainterest  

Variable and class not found in Modelica.Media

Sun, Yongqi (E F ES EN 1 2)
Fri, 29 Jan 2010 09:18:58 -0800

Hello, everyone!

I'm interested in using Modelica.Media delivered with OpenModelica 1.5.0 RC1. 
My first simple test model ("media_test.mo") initializes "AbsolutePressure" and 
"SpecificEnthalpy" from "Modelica.Media.Water.WaterIF97_ph", and contains no 
complicated calculation. I use the "media_test.mos" to load the Modelica 
library, load the model file, and then simulate it.

But the simulation fails, yielding errors about missing variables and classes 
("media_test.log"). Typical errors are:

Error: Class Modelica.Media.Water.WaterIF97_ph not found in scope 
media_test.Medium.


Error: Variable nS not found in scope 
Modelica.Media.Interfaces.PartialTwoPhaseMedium



Error: Class Modelica.Media.Interfaces.PartialTwoPhaseMedium.FluidConstants not 
found in scope Modelica.Media.Water while instantiating waterConstants.



Can anyone help me with this? I really appreciate your help.





With best regards,
Yongqi Sun

Siemens AG
Energy Sector
Fossil Power Generation Division
Energy Solutions
E F ES EN 12
Freyeslebenstr. 1
91058 Erlangen, Deutschland
Tel.: +49 (9131) 18-6118
mailto:yongqi....@siemens.com

Attachment: media_test.mo
Description: media_test.mo

Attachment: media_test.log
Description: media_test.log

Attachment: media_test.mos
Description: media_test.mos