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

Nusselt Number Calculation by OpenFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Eldrael

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 5, 2019, 23:08
Default Nusselt Number Calculation by OpenFoam
  #1
Member
 
Mondal131211's Avatar
 
Mondal
Join Date: Sep 2018
Location: Canberra ACT
Posts: 68
Rep Power: 7
Mondal131211 is on a distinguished road
Dear Foamers,


What is the process of calculating Nusselt number from OpenFoam simulations. I am simulating natural convection along a vertical plate using buoyantPimpleFoam (OpenFoam Version 3.0.1). Is it possible to find it by putting function inside the controlDict?

Any help will be appreciated.



Thank You in advance...


Cheers,
Razon
Mondal131211 is offline   Reply With Quote

Old   March 8, 2019, 01:59
Default
  #2
New Member
 
Join Date: Mar 2016
Posts: 8
Rep Power: 10
Eldrael is on a distinguished road
Hello Mondal:

Take a look at this.

You might get the same result playing a little bit with wallHeatFlux and the rest of the functionObjects.
Mondal131211 likes this.
Eldrael is offline   Reply With Quote

Old   March 10, 2019, 00:46
Default Nusselt number calculation
  #3
Member
 
Mondal131211's Avatar
 
Mondal
Join Date: Sep 2018
Location: Canberra ACT
Posts: 68
Rep Power: 7
Mondal131211 is on a distinguished road
Quote:
Originally Posted by Eldrael View Post
Hello Mondal:

Take a look at this.

You might get the same result playing a little bit with wallHeatFlux and the rest of the functionObjects.



Hi Eldrael,


First of all, thank you for your response. I tried several times in the above process but could not successfully compiling. Here I attached my edited NusseltCalc file and error image. Can you help me please?


Cheers,
Razon
Attached Images
File Type: png Screenshot_2019-03-10_16-44-09.png (105.7 KB, 242 views)
Attached Files
File Type: gz NussetlCalc.tar.gz (2.3 KB, 116 views)
Mondal131211 is offline   Reply With Quote

Old   March 10, 2019, 22:00
Default Function object calculation of Nu
  #4
New Member
 
Join Date: Mar 2016
Posts: 8
Rep Power: 10
Eldrael is on a distinguished road
Hello Mondal:

I am sorry to say I am not very familiar with the solver that you are posting, C++ nor OpenFOAM coding.

Thing is that you may not need to do it. Let's review how to calculate the Nusselt:

Nu= h L/ k; where the only thing not known in here is the h coefficient, as L is chosen by the user and k is a physical property of the fluid.
h coefficient has an arbitrary definition as the number fulfilling that Q=hA(Tfluid-Twall). Tfluid is set as a "bulk" temperature, so you choose it yourself.

If you are in an incompressible solver you can calculate h by using typing
HTML Code:
*typeHereYourSolver* -postProcess -func wallHeatTransferCoeff
which is more like a local approximation, as you will not have imputed Tfluid. As it will be written on a filed, use a function object to average it.

The alternative is to use function objects to:
  • Calculate Q with this or quickly approximate it with gradient(T) *k at the wall vicinity.
  • Average both your calculation of Q and of temperature at the wall.
At the end of the second step you would have the total heat Q, the area (which is calculated by the function objects) and the average temperature of the wall. Then, calculate h with its definition. Finally, enter with it into the Nusselt definition.
Eldrael is offline   Reply With Quote

Old   March 11, 2019, 08:03
Default
  #5
Senior Member
 
Agustín Villa
Join Date: Apr 2013
Location: Alcorcón
Posts: 313
Rep Power: 15
agustinvo is on a distinguished road
Hi,
I normally do it later, during the post processing. What you will need to extract is the wall temperature gradient.
agustinvo is offline   Reply With Quote

Old   March 12, 2019, 20:21
Default
  #6
Member
 
Mondal131211's Avatar
 
Mondal
Join Date: Sep 2018
Location: Canberra ACT
Posts: 68
Rep Power: 7
Mondal131211 is on a distinguished road
Quote:
Originally Posted by agustinvo View Post
Hi,
I normally do it later, during the post processing. What you will need to extract is the wall temperature gradient.
Hi Agustinvo,

Thank you for joining in this conversation. Actually, I want to calculate the Nusselt number along the wall or from the whole computational domain. How did you do that? If I want to calculate the nusselt number for the whole domain, what is process of doing that after simulation? Can you please explain it?

Cheers,
Razon
Mondal131211 is offline   Reply With Quote

Old   March 13, 2019, 04:10
Default
  #7
Senior Member
 
Agustín Villa
Join Date: Apr 2013
Location: Alcorcón
Posts: 313
Rep Power: 15
agustinvo is on a distinguished road
Quote:
Originally Posted by Mondal131211 View Post
Hi Agustinvo,

Thank you for joining in this conversation. Actually, I want to calculate the Nusselt number along the wall or from the whole computational domain. How did you do that? If I want to calculate the nusselt number for the whole domain, what is process of doing that after simulation? Can you please explain it?

Cheers,
Razon

Hi Razon,

what I did, I developed a functionObject to get the wall temperature gradient (starting from the wallShearStress one, you have few modifications to do), and using it you can get the Nusselt as


Nu_L=\frac{\frac{\partial T}{\partial n}_{wall}\cdot L}{T_{wall}-T_{\infty}}


where L is the wall coordinate. I suppose that, for the Nusselt within the fluid (does somebody uses that quantity) you should use the temperature gradient there.
agustinvo 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
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 05:29
Nusselt number calculation in Fluent Sharadkumar Yeri FLUENT 52 May 29, 2019 06:29
flow in isothermal pipe nusselt number calculation pchinchoud FLUENT 0 October 8, 2013 23:05
DecomposePar unequal number of shared faces maka OpenFOAM Pre-Processing 6 August 12, 2010 09:01
Unaligned accesses on IA64 andre OpenFOAM 5 June 23, 2008 10:37


All times are GMT -4. The time now is 06:13.