CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

heat flux coefficient with wallHeatTransfCoeff

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By jcoelho5

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 22, 2022, 04:48
Default heat flux coefficient with wallHeatTransfCoeff
  #1
New Member
 
Joao Coelho
Join Date: Jun 2021
Posts: 23
Rep Power: 5
jcoelho5 is on a distinguished road
Hi,

I am trying to validate the wallHeatTransfCoeff utility in OpenFOAM v9, using rhoPimpleFoam for a forced convection.

My case is a cylindrical pipe with 20mm diameter, 250mm long (to achive L/d > 10).

The fluid used is defined by constant rho, transport properties and cp (it is supposed to simulate Liquid oxygen @74 bar and with T=102K). Here goes the thermophysical properties given as input;


Code:
thermoType
{
    type            heRhoThermo;
    mixture         pureMixture;
    transport       const;
    thermo          hConst;
    equationOfState rhoConst;
    specie          specie;
    energy          sensibleInternalEnergy;
}

mixture
{
    specie
    {
        molWeight   32;
    }
    
    thermodynamics
    {
        Cp         	1686;
        Cv	    	877;
        Hf             0;
    }
    transport
    {
        mu          160e-06;
        Pr           1.91;
    }
    
    equationOfState
    {
    	rho		1103;
    }
}

The boundary conditions are the following:
Code:
U
  • inlet - volumetricFlowRate (with equivalent value for 7kg/s)
  • outlet - zeroGradient
  • wall - zeroGradient
p
  • inlet - zeroGradient
  • outlet - fixedValue - 74bar
  • wall - zeroGradient
T
  • inlet - fixed Value - 102 K
  • outlet - zeroGradient
  • wall - fixed Value - 200 K
k
  • inlet - turbulentIntensityKineticEnergyInlet (intensity 0.05)
  • outlet - zeroGradient
  • wall - kqRWallFunction
epsilon
  • inlet - turbulentMixingLengthDissipationRateInlet (mixing length 0.005)
  • outlet - zeroGradient
  • wall - epsilonWallFunction
nut
  • inlet - calculated
  • outlet - calculated
  • wall - nutkWallFunction
alphat
  • inlet - calculated
  • outlet - calculated
  • wall - compressible::alphatWallFunction
omega
  • inlet - zeroGradient
  • outlet - zeroGradient
  • wall - omegaWallFunction
I tried as turbulence models kEpsilon and kOmega.

Regarding the utility, I added the following to the controlDict
Code:
h_coef
    {
        type        wallHeatTransferCoeff;
        libs        ("libfieldFunctionObjects.so");
        model		kappaEff;
        //...
        patches     (".*Wall");
        rho         1103;
        Cp          1686;
        Pr          1.91;
        Prt         0.85;
        executeControl     	timeStep;
        writeControl        writeTime;
    }
and used the kappaEff model since the alternative (ReynoldsAnalogy) is not adequate for liquids.
kappaEff is computed as follow
htc = rho * Cp ( nu/Pr + nu_t/Pr_t)
  • htc - heat transf coeff [W/m2/K]
  • nu - viscosity
  • nu_t - turbulent viscosity
  • Pr - fluid laminar Prandtl - input
  • Pr_t - fluid turbulent Prandtl "From experimental data, Prt has an average value of 0.85, but ranges from 0.7 to 0.9 depending on the Prandtl number of the fluid in question" - wikipedia


Being so, I have achieved some results that are out of the order of magnitude of the Dittus-Boelter equation (valid for L/D>10, for Re>10000, which is the case). I also tried an approach using the Calculator in paraview, where I use the result output wallHeatFlux (also addded in the controlDict but out of the scope for this post) and divide by the difference of the wall (which is given as input in the boundary condition) and bulk temperatures (which can be approximated to the inlet temperature): h=q / (T_wall - T_bulk)
  • OpenFOAM wallHeatTransfCoeff - 10-20 W/m2/K
  • Dittus Boelter - ~ 30000 W/m2/K
  • OpenFOAM paraview calculator - ~20000 W/m2/K

Why does the option using the simulation wall heat flux differ so much from the automatic computation of the heat transfer coefficient?

Does anyone understand what might be the problem? Has anyone successfully used (and possibly validate) this wallHeatTransfCoeff utility?

Last edited by jcoelho5; December 22, 2022 at 05:06. Reason: corrected typo
jcoelho5 is offline   Reply With Quote

Old   February 16, 2023, 05:59
Default
  #2
Senior Member
 
Nico
Join Date: Jan 2022
Location: Germany
Posts: 122
Rep Power: 6
Hr_kules is on a distinguished road
Hey, i have a pretty similar problem right now, if not the same. So far i also found that the wallHeatTransferCoefficient is way too inaccurate. I unfortunately have no idea to resolve this. I would stick to manually compute the heat transfer coefficient, since your results at least are of similar magnitude of the results given by the dittus boelter equation.

However may i ask you if you ever had problems with the wall temperatures? In my simulation the temperature difference given by t_wall-t_bulk is way to low to even come close to the temperature difference i can calculate backwards from the dittus boelter equation. However and the temperature difference between in and outlet is correct with regards to the heat given by Q = mdot*cp*(t_outlet - t_inlet).

In conclusion the convection modelling in OpenFoam is quite strange. And the wallHeatTransferCoeffcient also. Did you ever resolve your issue?
Hr_kules is offline   Reply With Quote

Old   February 16, 2023, 07:21
Default
  #3
New Member
 
Joao Coelho
Join Date: Jun 2021
Posts: 23
Rep Power: 5
jcoelho5 is on a distinguished road
No, unfortunately I haven't solve this problem.
Regarding the wall temperature, I forced it to be the 200K specifically for it to have a "significant" temperature difference with the bulk. It was just a (failed) validation case.
jcoelho5 is offline   Reply With Quote

Old   February 21, 2023, 04:14
Default
  #4
Senior Member
 
Nico
Join Date: Jan 2022
Location: Germany
Posts: 122
Rep Power: 6
Hr_kules is on a distinguished road
Hi, just as a follow up. I solved the problem by switching to k-omega SST for my simulation my results now match dittus boelter, that i used as a reference. The HTC calculation of openFoam still proved to be wrong, however i was able to achieve 1% difference to dittus boelter with just better wall treatment from a k-omega model.
Hr_kules is offline   Reply With Quote

Old   February 21, 2023, 06:09
Default
  #5
New Member
 
Joao Coelho
Join Date: Jun 2021
Posts: 23
Rep Power: 5
jcoelho5 is on a distinguished road
Quote:
Originally Posted by Hr_kules View Post
Hi, just as a follow up. I solved the problem by switching to k-omega SST for my simulation my results now match dittus boelter, that i used as a reference. The HTC calculation of openFoam still proved to be wrong, however i was able to achieve 1% difference to dittus boelter with just better wall treatment from a k-omega model.
So, the 1% were achieved by the manual computation of q / deltaT? the direct coefficient given by OF is still wrong, right?
jcoelho5 is offline   Reply With Quote

Old   February 21, 2023, 06:13
Default
  #6
Senior Member
 
Nico
Join Date: Jan 2022
Location: Germany
Posts: 122
Rep Power: 6
Hr_kules is on a distinguished road
Yes, it was done manually. The functionObject still prints out a plain wrong value. Either way i have a better gut feeling regarding the manual computation, since I at least know what is happening there.

Have you made any progress?
Hr_kules is offline   Reply With Quote

Old   February 21, 2023, 06:25
Default
  #7
New Member
 
Joao Coelho
Join Date: Jun 2021
Posts: 23
Rep Power: 5
jcoelho5 is on a distinguished road
Ok, good enough!

No, no progress. Not only I had to focus on other things, but also I did not know what else to do...

Thanks anyways for you input. Still helpful
Hr_kules likes this.
jcoelho5 is offline   Reply With Quote

Old   February 21, 2023, 06:38
Default
  #8
Senior Member
 
Nico
Join Date: Jan 2022
Location: Germany
Posts: 122
Rep Power: 6
Hr_kules is on a distinguished road
By the way: I also added an entrance area to the pipe based on correlation that uses the reynolds number (l_entrance = 1.359*Diameter*Re^0.25) and after that a portion that matches L/D = 10. Your case sounds pretty much like mine and the temperature evolution along the pipe wall differs quite much between the entrance and the developed region.

Hope you can solve your problem soon!
Hr_kules is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
What are the best settings for a channel flow simulation? Ashkan Kashani CFX 3 October 13, 2022 21:36
Heat Transfer Coefficient for Heat Flux = 0 W/m^2 CellZone ANSYS 0 June 14, 2022 07:37
Simulating constant heat flux value at solid-solid boundary Y27 STAR-CCM+ 6 September 8, 2020 09:56
Heat Flux at Internal walls or Fluid Solid Interface Mahi CFX 3 October 1, 2012 02:18
Concentric tube heat exchanger (Air-Water) Young CFX 5 October 6, 2008 23:17


All times are GMT -4. The time now is 15:27.