CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

How do I calculate Local Nusselt number

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 2 Post By arunimb
  • 1 Post By arunimb
  • 1 Post By student666

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 6, 2018, 22:25
Post How do I calculate Local Nusselt number
  #1
New Member
 
Arunim Bhattacharya
Join Date: Nov 2017
Posts: 3
Rep Power: 8
arunimb is on a distinguished road
Can anyone tell me how to modify a solver or write a utility to calculate Nusselt number at the wall? I have been following Johan Magnusson's report,however I am using OF 5 which is making it really difficult to follow the report.

Thank You
Arunim
arunimb is offline   Reply With Quote

Old   January 8, 2018, 20:51
Default Ok so I finally figured out how to do it.
  #2
New Member
 
Arunim Bhattacharya
Join Date: Nov 2017
Posts: 3
Rep Power: 8
arunimb is on a distinguished road
For anybody who wants to know
PHP Code:
        const fvPatchListpatches mesh.boundary();

            
forAll(wallGradT.boundaryField(), patchi)
            {
                const 
fvPatchcurrPatch patches[patchi];

                if (
isA<wallFvPatch>(currPatch))
                {
                    
wallGradT.boundaryFieldRef()[patchi] =
                        -
T.boundaryFieldRef()[patchi].snGrad();
                    
                    
nusseltNo wallGradT*length/(Ts-Tinf);
                }
            } 
where, length, Ts and Tinf are user defined values.
arunimb is offline   Reply With Quote

Old   February 26, 2018, 16:07
Default
  #3
Senior Member
 
M. C.
Join Date: May 2013
Location: Italy
Posts: 286
Blog Entries: 6
Rep Power: 16
student666 is on a distinguished road
Can you explain how to add this calc to a solver like (e.g) buoyantSimpleFoam?

Thanks.
student666 is offline   Reply With Quote

Old   February 26, 2018, 21:07
Default Code for the Nusselt number
  #4
New Member
 
Arunim Bhattacharya
Join Date: Nov 2017
Posts: 3
Rep Power: 8
arunimb is on a distinguished road
Hello,
I have adapted it for pisoFoam. You can easily do it for buouyantSimpleFoam .
Here is the github link for my code
https://github.com/arunimb/CFD_openFoam
Cheers.
PositronCascade likes this.
arunimb is offline   Reply With Quote

Old   February 27, 2018, 00:26
Default
  #5
Senior Member
 
M. C.
Join Date: May 2013
Location: Italy
Posts: 286
Blog Entries: 6
Rep Power: 16
student666 is on a distinguished road
Hi,

I've been able to modify the solver.
But I have a question.

My textbook refers to Nusselt number as for:
Nu = \partialt' / \partialy' = \partial(ts - t)/\partial (y/L) * 1 / (ts-tinf)
that is the gradient of temperature at the wall.
with:
  • ts = t wall
  • t = temperature at calculation point
  • tinf = freestream temperature
  • y = space coordinate normal to wall
  • L = characteristic Lenght
what is the meaning of this:

Code:
            dimensionedScalar
            (
                "wallGradT",
                T.dimensions()/dimLength,
                0
            )
is it that?

Previously you added also this line:
Code:
nusseltNo = wallGradT*length/(Ts-Tinf);
If wallGradT is
\partialt' / \partialy'

why multiply for length?

Thanks.

PS:added modified files to buoyantBoussinesqSimpleFoam
Attached Files
File Type: c Nuss_buoyantBoussinesqSimpleFoam.C (3.0 KB, 63 views)
File Type: h createFields.H (2.4 KB, 46 views)
File Type: h TEqn.H (959 Bytes, 43 views)
charlliemarshalll likes this.
student666 is offline   Reply With Quote

Old   January 20, 2020, 07:07
Default
  #6
Member
 
Alex
Join Date: May 2019
Posts: 36
Rep Power: 6
Sedullo is on a distinguished road
Hi student666,

I am new to OpenFOAM and I need to implement a code to caluclate Nusselt for buoyantBoussinesqPimpleFoam.

Could you tell me please what are the file I should modify and the codes I should write to get the average or local Nusselt number?

Sorry if I ask too much but I am not good with coding so I would need a sort of step by step explanation, thanks!
Sedullo is offline   Reply With Quote

Old   June 7, 2020, 10:18
Default
  #7
New Member
 
Charlie Marshall
Join Date: Jan 2020
Posts: 17
Rep Power: 6
charlliemarshalll is on a distinguished road
Same problem here of how to use the php code in the openfoam
charlliemarshalll is offline   Reply With Quote

Reply

Tags
local nusselt number


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
[General] Extracting ParaView Data into Python Arrays Jeffzda ParaView 30 November 6, 2023 21:00
simpleFoam parallel AndrewMortimer OpenFOAM Running, Solving & CFD 12 August 7, 2015 18:45
AMI interDyMFoam for mixer danny123 OpenFOAM Running, Solving & CFD 4 June 19, 2013 04:49
same geometry,structured and unstructured mesh,different behaviour. sharonyue OpenFOAM Running, Solving & CFD 13 January 2, 2013 22:40
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 18:07


All times are GMT -4. The time now is 01:07.