Opened 4 years ago

Closed 3 years ago

#6314 closed defect (fixed)

NF issue with redeclare in Physiolibrary

Reported by: Francesco Casella Owned by: Per Östlund
Priority: critical Milestone: 1.19.0
Component: New Instantiation Version: 1.16.0
Keywords: Cc: matejak.marek@…

Description

Please check Physiolibrary.Fluid.Examples.Kofranek2014.PulsatileCirculation. This model extends Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation (which works fine) by redeclaring the left and right heart models. Apparently the Medium package declaration of those redeclared components is somehow lost in the process, since the NF fails with

[Modelica 3.2.3/Fluid/Interfaces.mo:20:5-21:69:writable]
Error: Medium is partial, name lookup is not allowed in partial classes.

Change History (5)

comment:1 by Francesco Casella, 4 years ago

Cc: matejak.marek@… added

comment:2 by marek@…, 4 years ago

In Dymola works fine. May be there is some problem with redeclaration replaceable Medium in FluidPort:

Modelica.Fluid.Interfaces.FluidPort:

replaceable package Medium = Modelica.Media.Interfaces.PartialMedium

Physiolibrary.Fluid.Interfaces.FluidPort:

connector FluidPort = Modelica.Fluid.Interfaces.FluidPort (redeclare

replaceable package Medium = Chemical.Media.Water_Incompressible);

Try to add redeclaration (which already should be done by Physiolibrary.Fluid.Interfaces.FluidPort) in component Physiolibrary.Fluid.Examples.Kofranek2014.Parts.PulsatileHeartPump, such as

q_in(redeclare package Medium = Chemical.Media.Water_Incompressible)
q_out(redeclare package Medium = Chemical.Media.Water_Incompressible)

comment:3 by Francesco Casella, 4 years ago

Milestone: 1.17.01.18.0

Retargeted to 1.18.0 because of 1.17.0 timed release.

comment:4 by Francesco Casella, 3 years ago

Milestone: 1.18.0

Ticket retargeted after milestone closed

comment:5 by Per Östlund, 3 years ago

Milestone: 1.19.0
Resolution: fixed
Status: newclosed

This seems to have been fixed at some point, since the model is now working fine.

Note: See TracTickets for help on using tickets.