chtMultiRegionFoam wallHeatFlux mismatch
1 Attachment(s)
Dear CFD-ehtousiasts,
Currently I am working on a model that should capture the convective heat transfer between a coil, with hot water running through it, to ambient tankwater. With this model I try to capture the local and total heat transfer. The first setup of the model includes a simple single tube surrounded by tankWater. I am extracting heat flux values on both sides of my coil and in both directions (just for checking). These value nicely match. Code:
wallHeatFlux1 If I compare the wall heat flux values from the wallHeatFlux utility, to the value computed from the flow rate and temperature at the inlet and outlet as: Qdot=(mdot*rho*Cp*(inletT-outletT)) I find a significant mismatch between both values (see figure). BTW: I used patchAverage to compute my mean outletT. Unfortunately, I could not find a solution in other threads on the wallHeatFlux utility. Any ideas or tips would be much appreciated! |
Update
1 Attachment(s)
I ran the simulation with turbulence turned off. Surprisingly (or not) the wall heat flux and flowrate based heat flux to almost match perfectly (see figure).
Now, I am using an KOmegaSST turbulence model. In order to capture the heat transfer as good as possible I have meshed my system in such a way that y+ is smaller or equal to one everywhere and therefore not using any wall functions. Any experience on this aspect what could cause the energy imbalance? |
Your formula is only an approximation instead of temperature you'd need to look at the total Enthalpy between inlet and outlet. And you'd need to integrate instead of average everything.You would also need to include kinetic energy, although this part should probably nearly cancel out or be insignificant. Unless maybe the diameter changed drastically and the flow is quite fast.
Are any of your material or transport properties temperature dependent? Do the wall heat fluxes from the different regions match? So is the coilWall_to_coilWater heatflux nearly identical to the coilWater_to_ coilWall flux? |
Thanks for your help! As mentioned in the original post I checked the heat flux on each side and they do match. Regarding the averaging of the temperature, patchAverage uses areaAverage and therefore does a weighted average calculation. As far as I know this is equivalent to integration, right?
I understand your point about the total enthalpy. However I do not believe that the internal energy/velocity would change so significant that it results in the given energy mismatch. It is still worth checking. Best way would to this would be to check the enthalpy flux over the inlet and outlet? I will have to look into this. I do use temperature dependent material properties, however I do not believe the problem can be found here, as the no-turbulence model gives good results with the same material properties. BTW: tube is horizontal and has a uniform cross-section. |
Solved!
Thank you very much! I now integrated the inlet and outlet field using patchMassFlowAverage
Code:
massFlowAverageT Naturally, if one wants to be really precise the variation of Cp over the patch should also be taken into account as you showed in the derivation. However, taking into account the minimal variation of Cp (and the hassle to get obtain that variable in post-processing) I left that out for now. Again thanks a lot for your detailed elaboration! |
All times are GMT -4. The time now is 13:32. |