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 , 4 years ago
Cc: | added |
---|
comment:2 by , 4 years ago
comment:3 by , 4 years ago
Milestone: | 1.17.0 → 1.18.0 |
---|
Retargeted to 1.18.0 because of 1.17.0 timed release.
comment:5 by , 3 years ago
Milestone: | → 1.19.0 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
This seems to have been fixed at some point, since the model is now working fine.
Note:
See TracTickets
for help on using tickets.
In Dymola works fine. May be there is some problem with redeclaration replaceable Medium in FluidPort:
Modelica.Fluid.Interfaces.FluidPort:
Physiolibrary.Fluid.Interfaces.FluidPort:
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)