Closed mwetter closed 6 years ago
The error message is now a different one: https://libraries.openmodelica.org/branches/master/IBPSA_latest/files/IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.Humidifier_u.err
Humidifier should propagate the Medium, I think:
protected
model Humidifier
"Model for humidifier that adds a variable for the thermodynamic states at its ports"
extends IBPSA.Fluid.Humidifiers.Humidifier_u(
redeclare replaceable package Medium = Medium);
but with that version, OpenModelica has a StackOverflow.
Would that change be correct? And should I push it?
After thinking about it some more, the redeclaration should not be necessary and is not done in other similar models.
Maybe that error is instead a duplicate of https://trac.openmodelica.org/OpenModelica/ticket/4235 ?
Redeclaration is indeed not necessairy.
Closing for now, should be checked again once the new OMC frontend is available: https://trac.openmodelica.org/OpenModelica/ticket/4138 https://trac.openmodelica.org/OpenModelica/milestone/2.0.0
The model
Annex60.Fluid.Interfaces.Examples.Humidifier_u
fails in OpenModelica with the message:The issue is that for the asserts, the variables
staA.T
andstaA.X[1]
(and the same forB
) are accessed, but these are not always state variables, and OpenModelica therefore thinks they do not exist.As a fix,
Annex60.Fluid.Interfaces.Examples.Humidifier_u.Humidifier
should be deleted, and sensors should be used as is done forAnnex60.Fluid.Interfaces.Examples.HeaterCooler_u
.