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

Wall correction for the temperature gradient

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 7, 2011, 21:04
Default Wall correction for the temperature gradient
  #1
Member
 
Hagen Müller
Join Date: Nov 2010
Posts: 34
Rep Power: 16
Hagen is on a distinguished road
Dear all,

I would like to implement a correction for the temperature gradient near the wall in a 2D channel flow. The energy equation is usually formulated as

Code:
fvScalarMatrix TEqn
       (
           fvm::div(phi, T)
           - fvm::Sp(fvc::div(phi), T)
           - fvm::laplacian(kappaEff, T)
       );
In order to correct the temperature gradient in the laplacian term it seems to be necessary to rewrite it as laplacian(kappaEff, T) = div(kappaEff * grad(T)) and then manipulate grad(T) at the wall. I found the following formulation to replace the laplacian.

Code:
surfaceTensorField kappaEffs = fvc::interpolate(kappaEff);
      surfaceVectorField Sn = mesh.Sf()/mesh.magSf(); 
      surfaceVectorField SfkappaEff = mesh.Sf() & kappaEffs;
      GeometricField<scalar, fvsPatchField, surfaceMesh> SfkappaEffSn = SfkappaEff & Sn;

      volScalarField Dif1
            (
                IOobject
                (
                    "Dif1",
                    runTime.timeName(),
                    mesh,
                    IOobject::NO_READ,
                    IOobject::AUTO_WRITE
                ),
                fvc::div(SfkappaEffSn * fvc::snGrad(T))
            );

       volScalarField Dif2
            (
                IOobject
                (
                    "Dif2",
                    runTime.timeName(),
                    mesh,
                    IOobject::NO_READ,
                    IOobject::AUTO_WRITE
                ),
                fvc::laplacian(kappaEff, T)
            );
Dif 1 and Dif2 are almost identical and grad(T) could be manipulated at the wall. The problem is, that I can not use this formulation for the energy equation because it is in explicit form and an implicit divergence does not exist. Convergence schemes do not seem to work here because they do not accept surfaceFields.

I would be thankful for any suggestion how to express the laplacian in terms of the gradient or any other possibility to correct the temperature gradient at the wall.

Thank you.
Hagen 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
Problem with zeroGradient wall BC for temperature - Total temperature loss cboss OpenFOAM 12 October 1, 2018 07:36
udf variable for wall temperature Kiran FLUENT 0 July 31, 2008 09:31
how to calculate the temperature gradient of wall houbaolin FLUENT 0 July 28, 2008 03:51
Non-conformal grid interfaces: wall temperature Evandro FLUENT 0 April 4, 2008 00:43
Variable temperature wall boundary condition Virginie FLUENT 2 October 2, 2007 10:23


All times are GMT -4. The time now is 23:35.