-
Notifications
You must be signed in to change notification settings - Fork 21
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
Issue36 coaxial pipes #79
Issue36 coaxial pipes #79
Conversation
…ue36_CoaxialPipes
…onvective heat transfer coefficient for circular pipe by interpolation
With my most recent commit (9022abc) I have modified the function that calculates the convective heat transfer coefficient in a circular pipe with forced flow. After some discussion with J.D. Spitler, he said that for design purposes it can be important to have smooth transitions from laminar to turbulent, which can be provided via interpolation. Cengel and Ghajar (2015, pg. 476) state that considering full turbulence in piping networks for any Re > 4000 is conservative. I have incorporated a "transition" 1D interpolation between the laminar (Nu=3.66) and the Nu(Re=4000)) while 2300 < Re < 4000. By varying the mass flow rate and holding all other values constant, I plotted the Reynolds vs. the Nusselt number. jump.pdf plots the results of what the function was, and shows that there was a sharp jump from 3.66 to about 20 for the Nusselt number when the value of the Reynolds number became greater than 2300. The new function with interpolation from 2300 < Re < 4000 creates no-jump.pdf. |
The range 2300 < Re < 4000 is also found elsewhere in the literature, e.g. Gnielinski (2013). Gnielinski, V. (2013). On heat transfer in tubes. International Journal of Heat and Mass Transfer, 63, 134-140. |
Commit 843dd7e provides no functionality difference. The linear interpolation is no longer done by |
Hellstrom's inner and outer Nusselt numbers are used for laminar flow. The transition from 2300 < Re < 4000 makes use of the linear interpolation from Gnielinski (2013) for both inner and outer. Cengel and Ghajar (2015) state that inner and outer Nusselt numbers are equivalent for turbulent flow, and that Gnielinski (1975) can be used. A plot of Reynolds vs. Nusselt is attached. |
It is not yet clear if this second borehole thermal resistance function will be necessary. I will not know until I have completed this and Massimo reviews it to see if he could use his own techniques to make it happen. I plan to make use of this function to calculate the effective borehole thermal resistance for a concentric (coaxial) pipe arrangement.
A new file has been included with an example. The file is included for reviewal purposes by Cimmino.
@MassimoCimmino Could you take a look at this and provide feedback if you'd like something changed? I still need to do some further verification before its finalized, but the methodology is there. Now would be a good time to know if you'd like to see something different. Whenever you get the chance, thanks. |
I like the idea of the new borehole thermal resistance function. Here are my first thoughts:
[1] Cimmino, M. (2019). Semi-Analytical Method for g-Function Calculation of bore fields with series-and parallel-connected boreholes. Science and Technology for the Built Environment, 25(8), 1007-1022. |
The calculation has now been checked versus GLHEPRO, two errors were found: - The Reynolds number (Re) was improperly being calculated inside of the annulus, thus leading to improper convection coefficients and the resulting resistances inside of the annulus (contains inner and outer) - The hyperbolic cotangent in the uniform borehole wall temperature effective resistance was not returning the proper value. This user believed that the function "arctanh" in numpy meant hyperbolic cotangent. Apparently, it does not. The solution is 1 divided by the "tanh" function.
|
|
@MassimoCimmino I have modified custom_borehole.py to include Double U-Tubes in series and parallel. Once we have worked out the Coaxial interface, we could add Coaxial to the example as well. The custom borehole example would then serve the purpose of seeing how to define any tube arrangement available in pygfunction all in one condensed location. |
These are general formatting changes along with variable name changes to align with the rest of the `pipes` module and the `convective_heat_transfer_coefficient_circular_pipe` function.
The definition of each pipe type now has its own section in the script. The mass flow is prescribed instead of the volume flow rate as is done in the other examples. A mistake was corrected in the call to `borehole_thermal_resistance()`: the borehole mass flow rate should be provided (as opposed to the pipe mass flow rate). Pipes in single and double U-tube boreholes are moved closer to the borehole wall and the fluid is changed to propylene glycol 20%.
A Coaxial_Comparison.zip has been created to help to overcome the apprehension to merge this branch due to the comparison results to other tools (GLHEDT and GLHEPRO). This apprehension was introduced due to the vast differences in effective borehole resistances shown in the plot here. The attached file ranges through a list of volumetric flow rates and computes the effective borehole thermal resistances for pygfunction and GLHEDT. At each volumetric flow rate, the Reynolds, effective resistances and percentage difference between the two methods are printed to the console.
For each volumetric flow rate, there are checks to compare differences in the local borehole thermal resistance, fluid-to-fluid thermal resistance calculation, and to see if the equation 3.68 provides any correction for short circuiting. None of the print statements are ever reached, because the boolean values are never true. The method of GLHEDT (and GLHEPRO) are taken from Grundman (2016). The equation 3.68 is from Javed and Spitler (2016), which is first mentioned in Claesson and Hellström (2011). Claesson and Hellström reference the original derivation of the short circuiting correction, given in Eskilson and Claesson (1988). None of which discuss the validity of the method used by Grundman (2016) for concentric tube heat exchangers. Hellström (1996) presents the values for the thermal delta-circuit for a concentric tube (annular duct) heat exchanger. The same equations that apply to a single U-tube can be applied to by use of the delta network. However, the values of the delta network are different, notably the value of the resistance from the inner fluid to the outer wall is given as infinity by Hellström (1996). What about GLHEDT seems off? The correction for the short circuiting (equation 3.68) is never greater than 1.0e-06. No literature broaches the subject of equation 3.68's validity for concentric tube heat exchangers. The validity of setting Ra = R12 (Grundman 2016) is not proven. Why do the results of pygfunction make sense? We would expect the value of the short circuiting to be greater for concentric tube heat exchangers compared to u-tubes because the thermal resistance separating the two fluids flowing in opposite direction are much closer to one another. What if GLHEDT and pygfunction are wrong? The comparison of single U-tubes in this plot validates Grundmann, R. 2016. Improved Design Methods for Ground Heat Exchangers. M.S. Thesis, Oklahoma State University. Javed S, Spitler JD. Calculation of borehole thermal resistance. In: Simon J. Reese, editor. Advances in ground-source heat pumps sytems. Woodhead Publishing; 2016. p. 63-95. http://dx.doi.org/10.1016/B978-0-08-100311-4.00003-0 Hellström, Göran. “Ground Heat Storage : Thermal Analyses of Duct Storage Systems.” PhD Doctoral Thesis. University of Lund; 1991. Claesson, J., & Hellström, G. (2011). Multipole method to calculate borehole thermal resistances in a borehole heat exchanger. HVAC&R Research, 17(6), 895–911. https://doi.org/10.1080/10789669.2011.609927 Per Eskilson & Johan Claesson (1988) SIMULATION MODEL FOR THERMALLY INTERACTING HEAT EXTRACTION BOREHOLES, Numerical Heat Transfer, 13:2, 149-165, DOI: 10.1080/10407788808913609 |
The differences in the script ( Line 59:
This suggests that Lines 105-107:
The units of Introducing the following correction (divide
We get:
|
Good catch. I stand corrected. GLHEDT and pygfunction do provide the same results. I introduced a unit error. Now, why do GLHEDT and pygfunction have a different result than GLHEPRO? Perhaps this is outside of the scope of this PR? |
A possible cause is differences in the calculation of the thermal resistances |
What is the length of the borehole in this case? These results match with pygfunction for
Results:
|
Great! I believe the remaining differences for double U-tubes are due to the call to I will wrap up the PR in the next few days. |
I believe GLHEPRO only has flow in parallel. jcc:issue36_CoaxialPipes is now even with MassimoCimmino:issue36_CoaxialPipes. |
In progress