Skip to content
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

set start value for NTUAirSta in WetCoilWetRegime #1728

Closed
mwetter opened this issue Apr 18, 2023 · 0 comments · Fixed by #1729
Closed

set start value for NTUAirSta in WetCoilWetRegime #1728

mwetter opened this issue Apr 18, 2023 · 0 comments · Fixed by #1729
Assignees

Comments

@mwetter
Copy link
Contributor

mwetter commented Apr 18, 2023

The model Fluid/HeatExchangers/BaseClasses/WetCoilWetRegime.mo has an expression

  hSatSurEff = IBPSA.Utilities.Math.Functions.smoothMax(
    x1 = hSatSurEffMinM.hSat,
    x2 = hAirIn  +(hAirOut - hAirIn) / (1 - exp(-NTUAirSta)),
    deltaX = delta*1E4); // NTUAirSta is bounded as long as UAAir>0 due to the regularization of mAir_flow

In OpenModelica, in some models such as Buildings.Fluid.HydronicConfigurations.PassiveNetworks.Examples.SingleMixingOpenLoop, NTUAirSta has 0 at the start of an iteration which causes a division by zero.

Setting a start value of 1 to NTUAirSta avoids this issue.

@mwetter mwetter self-assigned this Apr 18, 2023
mwetter added a commit that referenced this issue Apr 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant