|
[Sponsors] |
January 16, 2014, 22:07 |
Question about gradient scheme
|
#1 |
Member
Tayo
Join Date: Aug 2012
Posts: 94
Rep Power: 13 |
Hello,
I'm puzzled about the way openfoam computes the gradient scheme. I have a temperature field, T that varies between 358 - 400K and I simply take the gradient using fvc::grad(T), with Gauss linear scheme. With a mesh size is approx. 0.3 mm, some of the results for the gradient are printed below: Code:
const volScalarField& T = alpha1_.db().lookupObject<volScalarField>("T"); volVectorField gradT = fvc::grad(T); Info << "gradT =" << gradT << endl; (-164633 -164633 0) (0 -164633 0) (0 -164633 -2.98156e-10) (0 -164633 -2.98156e-10) (0 0 2.98156e-10) (0 0 1.49078e-10) (164633 -164633 0) (0 0 0) (0 0 0) (164633 0 0) (0 0 0) : : : : : : 1.) Why does it print out negative numbers? 2.) How does it get gradient values of (0 0 0) when the T values vary between 358 - 400K. 3.) Why is the z- gradient values so low (2.98156e-10) considering the small mesh size? Kindly help explain what's happening here. Thanks |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
question on simulating rotating channel with a pressure gradient | huangxianbei | CFX | 10 | January 14, 2014 23:00 |
Crank Nicolson scheme | msrinath80 | OpenFOAM Running, Solving & CFD | 6 | November 14, 2010 13:59 |
Question about gamma intgerpolation scheme | titio | OpenFOAM Running, Solving & CFD | 0 | July 26, 2010 10:22 |
Scheme file for sinusoidal channel flow | elobb | FLUENT | 0 | November 24, 2009 10:27 |
Question about meshing / solution scheme of CFX | Coriolius | CFX | 8 | August 1, 2004 18:39 |