Temperature Gradient at Wall
I am simulating a laminar channel flow with heated walls. To calculate y nusselt number I first want to calculate the temperature gradient at the wall. Unfortunately I couldnt find some function similar to "WallGradU" which is able to calculate the wall temperature gradient, like "WallGradU" does it for the velocity gradient. Has anyone an idea how I could get the temperature gradient out of OpenFOAM? Can the "WallGradU" function be edited to get the temperature gradient?

Hi sven,
I am interested in this problem too. I am new to OpenFOAM. I want to simulate the filling process of nonnewtonian fluids into a heated cavity.The energy equation was added to the interFoam solver to calculate the temperature field. At the heated wall: 1) The temperature of nonnewtonian fluid is assumed equal to the wall's (in my case，the thermal conductivity of the wall is much larger than that of the nonnewtonian fluid ). 2) A coupled solver such as chtMultiRegionFoam can be created to solve this problem. Combination of heatConductionFoam and interHeatFoam (interFoam with energy equation) for conjugate heat transfer between a solid region and fluid region. I am working on the second part. If there is any development, please let me know. Best regards, Jitao 
Hi Sven,
Make a copy of wallGradU, replace U with T, volVectorField with volScalarField and dimensionedVector with dimensionedScalar. It should work! Regards, Jose Santos Quote:

Hi Santos  thanks for your reply.
I have the same intention like sven and tried your advise. Sadly I received some errors while creating the new wallGradT: Line 80  error: Expected primaryexpressions before '(' token Line 83  error: 'scalar' is not a class of namespace PHP Code:
About some additional help I would be really helpful. Thanks a lot & regards svens 
Replace scalar::zero with 0 and all should be well.
Regards, Jose Santos 
It works! Perfect  thanks so much.

Question: I am able to compute the mean temperature gradient at a specified patch of my choosing. The is essentially 3D, hence the I have a 2D plane wall temperature gradient. Can anyone give me any feedback or advice as to how I can average the temperature gradient along a wall direction, so that I end with an output that comprises two columns such as: x dTmean/dn
x1 ***** x2 ***** Thanks. Deji 
Hello Jitao,
I would like to know if you were successful with your implementation. I am interested in such a coupled solver ( combination of heatConductionFoam and interHeatFoam ). I would be so grateful if you can help me. Thanks, Mehran Quote:

All times are GMT 4. The time now is 02:05. 