Opened 16 years ago

Closed 12 years ago

#1038 closed defect (fixed)

[ThermoPower] Problem with short class definition (from MathCore)

Reported by: krsta Owned by: krsta
Priority: critical Milestone:
Component: Backend Version:
Keywords: Cc: krsta

Description

The package Modelica.Media.Water.StandardWater is used by models in the ThermoPower library, but does not work as there seams to be some problem with short class definitions. It does not work to open the package.

The class definition is only a short class definition:

{{{package StandardWater= WaterIF97_ph "Water using the IF97 standard, explicit in p and h. Recommended for most applications";

Opening the package WaterIF97_ph works fine. However model check fails as the extended class Modelica.Media.Water.WaterIF97_ph is not found:

--- [51] 16:01:48 Unresolvable reference in class 'Modelica.Media.Water.WaterIF97_ph' ---
Inherited type 'WaterIF97_base' not found!
Until the error is corrected, the inheritance will not be available in the model editor.

--- [52] 16:01:49 Check class 'Modelica.Media.Water.WaterIF97_ph' for errors ---
Class FluidConstants not found in scope Modelica.Media.Interfaces.PartialTwoPhaseMedium while instantiating fluidConstants.
Class Interfaces.PartialTwoPhaseMedium.FluidConstants not found in scope Modelica.Media.Water while instantiating waterConstants.
Error occured while flattening model Modelica.Media.Water.WaterIF97_ph

The WaterIF97_base package does exist, but the problem seams to be related to finding the FluidConstants model as several error messages refering to this are displayed when opening WaterIF97_base.}}}

Change History (3)

comment:2 Changed 14 years ago by sjoelund.se

Indeed, Modelica.Media is not yet supported in OpenModelica.

comment:3 Changed 12 years ago by perost

  • Cc changed from krsta, to krsta
  • Component set to Backend
  • Resolution set to fixed
  • Status changed from assigned to closed

checkModel of Modelica.Media.Water.StandardWater works with both MSL 3.1 and 3.2 now.

Note: See TracTickets for help on using tickets.