New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in Fluid.FMI.BaseClasses.X_w_toX
#675
Comments
@jmoeckel : The error is caused because Advanced.PedanticModelica:=true;
checkModel("Annex60.Fluid.FMI.BaseClasses.X_w_toX(redeclare package Medium = Annex60.Media.Air)"); I will close the issue. Please reopen if you disagree and provide a full log that we can reproduce. |
We could set Annex60 Air as default type, but keep the constraining type: block X_w_toX "Conversion from Xi to X"
extends Modelica.Blocks.Icons.Block;
replaceable package Medium =
Annex60.Media.Air constrainedby
Modelica.Media.Interfaces.PartialMedium "Medium model within the source"
annotation (choicesAllMatching=true); Should I send a PR? As I understand it does not change the behavior, but will eliminate one more code checking warning/error. |
@thorade We should not use default medium assignments as then it will be harder to spot situations where a medium is not propagated. Could you constrain it to a partial condensing media, or to a media with nXi > 0? |
Air extends from block X_w_toX "Conversion from Xi to X"
extends Modelica.Blocks.Icons.Block;
replaceable package Medium =
Modelica.Media.Interfaces.PartialCondensingGases (
final substanceNames={"water", "air"}) "Medium model within the source"
annotation (choicesAllMatching=true); Edit: Yes, there are disadvantages, checking FMI now produces lots of errors. |
Yes, that looks good. |
Applying Dymolas (2017 FD01)
checkModel()
in non-pedantic mode toFluid.FMI.BaseClasses.X_w_toX
throws following error:The text was updated successfully, but these errors were encountered: