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

Question about gradient scheme

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   January 16, 2014, 22:07
Default Question about gradient scheme
  #1
Member
 
Tayo
Join Date: Aug 2012
Posts: 94
Rep Power: 13
tayo is on a distinguished road
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)
 :  :  :
 :  :  :
Some of my basic questions are:
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
tayo is offline   Reply With Quote

 


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
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


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