The solution is already in my update. PartialStaggeredFlowModel
uses Medium.density_pTX
and Medium.setState_pTX
. Replacing these with Medium.density_phX
and Medium.setState_phX
avoids the pT-problem. The reason why it did not work at first was one reference to the unmodified class I forgot to change.
Other Modelica.Fluid-components have the same problem, e.g. the pump-models are based on PartialPump
, which also uses Medium.density_pTX
.
Thank you for your contributions.