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
Circular parameter assignment in Buildings.Fluid.HeatPumps.Carnot_TCon #1692
Comments
From my side, there is another issue with regard to If false,
However, I don't know if this could introduce a non-backwards compatibility, as the default values change. |
@FWuellhorst : Thanks for the suggestions. In the current implementation, I did not set parameter Real etaCarnot_nominal_internal(unit="1")=
if use_eta_Carnot_nominal
then etaCarnot_nominal
else COP_nominal/
(TUseAct_nominal / (TCon_nominal + TAppCon_nominal - (TEva_nominal - TAppEva_nominal)))
"Carnot effectiveness (=COP/COP_Carnot) used to compute COP"; Does this address your concern? If so, I will see what default parameters can be removed in the examples to avoid duplicate bindings. PS: I also tried to use the |
@mwetter: A fixed value of COP_nominal is not possible, I agree. If If users then know the COP, they can insert it. Do unspecified parameters raise warnings in the latest Dymola and OpenModelica? If so, leaving the default equation is indeed best. But I would then leave the etaCarnot_nominal enabled, as it influences the |
The GUI above would require to set if use_eta_Carnot_nominal then
COP_nominal = etaCarnot_nominal *TUseAct_nominal / (TCon_nominal + TAppCon_nominal - (TEva_nominal-TAppEva_nominal));
end if; However, with such an implementation, if a user already set a value for parameter Real COP_nominal(unit="1") = etaCarnot_nominal*TUseAct_nominal/
(TCon_nominal+TAppCon_nominal - (TEva_nominal-TAppEva_nominal)) and clarify this in the |
Ok, then it's clear to me. Thanks for the documentation update. |
This issue is to correct the circular parameter assignment reported in lbl-srg/modelica-buildings#3226
The text was updated successfully, but these errors were encountered: