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

Local Nusselt Number Calculation

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 12, 2019, 10:25
Default Local Nusselt Number Calculation
  #1
Member
 
Join Date: Apr 2019
Location: India
Posts: 44
Rep Power: 2
Pavithra is on a distinguished road
Hello Everyone,

I am trying to calculate the local nusselt number along the bottom of a cavity heated from below. Based on inputs from several posts, I have tried to modify buoyantBoussinessqPimpleFoam to calculate temperature gradient.

But, I am not sure if my procedure is right. Also I do not how to calculate the local Nusselt number. The values of grad T are unphysical.

Kindly please help me solve this problem. I have attached the modified solver and a testCase. I am using OpenFOAM v6.

The method of calculation of temperature gradient is as given below, which is added in the main file heatFoam.C
Code:
//wallGrad
         
        const fvPatchList& patches = mesh.boundary();

            forAll(wallGradT.boundaryField(), patchi)
            {
                const fvPatch& currPatch = patches[patchi];

                if (isA<wallFvPatch>(currPatch))
                {
                    wallGradT.boundaryFieldRef()[patchi] =
                        -T.boundaryFieldRef()[patchi].snGrad();
                }
            }
I add the following to the createFields.H
Code:
volScalarField wallGradT
            (
                IOobject
                (
                    "wallGradT",
                    runTime.timeName(),
                    mesh,
                    IOobject::NO_READ,
                    IOobject::AUTO_WRITE
                ),
                mesh,
                dimensionedScalar
                (
                    "wallGradT",
                    T.dimensions()/dimLength,
                    0
                )
            );
Thank You.

With Thanks & Regards,
Pavithra.
Attached Files
File Type: gz heatFoam.tar.gz (3.4 KB, 0 views)
File Type: gz hotRoom.tar.gz (2.4 KB, 0 views)
Pavithra is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
pimpleDyMFoam computation randomly stops babapeti OpenFOAM Running, Solving & CFD 5 January 24, 2018 05:28
SigFpe when running ANY application in parallel Pj. OpenFOAM Running, Solving & CFD 3 April 23, 2015 14:53
Compressor Simulation using rhoPimpleDyMFoam Jetfire OpenFOAM Running, Solving & CFD 107 December 9, 2014 13:38
Micro Scale Pore, icoFoam gooya_kabir OpenFOAM Running, Solving & CFD 2 November 2, 2013 13:58
How to write k and epsilon before the abnormal end xiuying OpenFOAM Running, Solving & CFD 8 August 27, 2013 15:33


All times are GMT -4. The time now is 20:00.