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

Issue622 wet coil refactor 3 #2001

Closed
wants to merge 59 commits into from
Closed

Conversation

AntoineGautier
Copy link
Contributor

@AntoineGautier AntoineGautier commented Jun 11, 2020

I create this draft PR to enable inline comments on the code.

kim1077 and others added 18 commits April 13, 2020 16:01
These contain a fuzzy logic cooling coil model to handle mode changes between fully wet, fully dry and partially wet/dry. These are based on the wet coil (eps-NTU) model developed by Michael Okeef, but the following modifications were made.
1) Equations of the previous wet coil model were modified to consider  when water flow rate goes to zero, 2) Equations of the previous dry coil model were modified, and 3) fuzzy logics were added to smoothen the discontinuity during mode changes.
Fix what might be an encoding issue.
-- dry coil with two gains
-- wet coil with one gain
-- partially wet with an iteration parameter
@AntoineGautier
Copy link
Contributor Author

TODO

  • Propagate allowFlowReversal{1, 2} to heaCoo and heaCooHum_u
  • Fix the issue in Buildings.Fluid.HeatExchangers.Examples.WetCoilEffectivenessNTU that exhibits convergence issues if allowFlowReversal1=true.

@AntoineGautier
Copy link
Contributor Author

@kim1077 I just committed the version with the IBPSA wet coil model (from ibpsa/modelica-ibpsa#1113). The example and validation models have also been refactored. I will focus on benchmarking the simulation performance on large models. I let you go ahead with benchmarking the model precision.

AntoineGautier and others added 20 commits November 21, 2020 11:43
1. Devision by zero has regularized with nonZeroPower (on both fully wet coil model and the highest model)
2. The issue of Cpeff (~derivate of satruated water enthaly) at Twatin=Twatout was treated strictly.
3. Enforced Qtot =0 whenever m is near zero.
Some bugs e.g. r != 2/3 for Fuzzy, FVM elements =4 etc have been modified.
@AntoineGautier
Copy link
Contributor Author

AntoineGautier commented Feb 10, 2021

@kim1077 I propose to close this PR without merging and open a new one with the branch issue622_wetCoil that I just created with the following steps:

  • Merge the master 3c2d297 into issue622_wet_coil_refactor_3 456406e
  • From the master 3c2d297 git checkout -b issue622_wetCoil
  • git diff issue622_wet_coil_refactor_3 --name-only > ~/tmp.txt
  • Manually edit ~/tmp.txt to remove all unnecessary modifications. The resulting file is attached for reference.
  • git checkout issue622_wet_coil_refactor_3 -- $(cat ~/tmp.txt)
  • Run buildingspy.development.refactor.write_package_order(directory=".", recursive=True) from Python shell.
  • Rename classes, especially WetEffectivenessNTU_Fuzzy_V3 is now WetCoilEffectivenessNTU.
  • Delete sigmoid.mo which is not used.

I removed all other versions of the model and the whole Buildings.Fluid.HeatExchangers.H_Example package.
Can you please double check the version that is now on issue622_wetCoil because I have some doubts that it is indeed the last version you worked on. Indeed, when I first tried to run Buildings.Fluid.HeatExchangers.Examples.WetCoilEffectivenessNTU I got the following error (which is fixed now with my last commit cdb7778). Also the UA_nominal computation is not included but that might be OK for now.

Class or component 'TWatOut_init' not found in WetEffectivenessNTU_Fuzzy_V3 hex 

After your confirmation I will move forward with reviewing the code on issue622_wetCoil.

tmp.txt

@AntoineGautier
Copy link
Contributor Author

@mwetter Can we delete the following branches?
issue622_wet_coil_refactor_3
issue622_wet_coil_refactor_2
issue622_wet_coil

The development will be merged through the new branch issue622_wetCoil.

@AntoineGautier
Copy link
Contributor Author

This is closed without merging.
The development will be merged through the new branch issue622_wetCoil.

@AntoineGautier AntoineGautier deleted the issue622_wet_coil_refactor_3 branch February 11, 2021 22:57
@AntoineGautier AntoineGautier mentioned this pull request Feb 11, 2021
2 tasks
@AntoineGautier AntoineGautier restored the issue622_wet_coil_refactor_3 branch February 12, 2021 22:39
@AntoineGautier AntoineGautier deleted the issue622_wet_coil_refactor_3 branch January 29, 2022 15:47
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 this pull request may close these issues.

Refactor Examples.VAVReheat.ThermalZones.VAVBranch and VAV models to expose the coil sizing parameters
2 participants