Opened 10 years ago

Last modified 10 years ago

#3095 closed defect

Loosing class modifiers during flattening — at Version 1

Reported by: Adrian Pop Owned by: Adrian Pop
Priority: blocker Milestone: 1.9.2
Component: Frontend Version: trunk
Keywords: Cc: Francesco Casella, dersh@…

Description (last modified by Adrian Pop)

Flattening: ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature1
should give orifice1.port_b.h_outflow having a start value from:

package StandardWater = WaterIF97_ph;

package WaterIF97_ph  
        extends WaterIF97_base(ThermoStates = Modelica.Media.Interfaces.Choices.IndependentVariables.ph, final ph_explicit = true, final dT_explicit = false, final pT_explicit = false, smoothModel = false, onePhase = false);
end WaterIF97_ph;

partial package WaterIF97_base
        extends Interfaces.PartialTwoPhaseMedium(mediumName = "WaterIF97", substanceNames = {"water"}, singleState = false, SpecificEnthalpy(start = 1.0e5, nominal = 5.0e5), Density(start = 150, nominal = 500), AbsolutePressure(start = 50e5, nominal = 10e5, min = 611.657, max = 100e6), Temperature(start = 500, nominal = 500, min = 273.15, max = 2273.15), smoothModel = false, onePhase = false, fluidConstants = waterConstants);
...
end WaterIF97_base;

Seems we're loosing class modifier:

SpecificEnthalpy(start = 1.0e5, nominal = 5.0e5)

when instantiating StandardWater.

Change History (1)

comment:1 by Adrian Pop, 10 years ago

Description: modified (diff)
Owner: changed from somebody to Adrian Pop
Status: newaccepted
Note: See TracTickets for help on using tickets.