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

Search Results

Register Blogs Community New Posts Updated Threads Search

Showing results 1 to 7 of 7
Search took 0.00 seconds.
Search: Posts Made By: bigphil
Forum: OpenFOAM Programming & Development February 14, 2023, 05:14
Replies: 15
Views: 6,889
Posted By bigphil
The Gauss gradient is calculated face-by-face,...

The Gauss gradient is calculated face-by-face, where the term at each face is equal and opposite for the two cells that share the face (called the "owner" and "neighbour" in OpenFOAM).

So, for...
Forum: OpenFOAM Programming & Development August 25, 2015, 04:15
Replies: 15
Views: 6,889
Posted By bigphil
Hi Carla, The definition of the gradient in...

Hi Carla,

The definition of the gradient in OpenFOAM is given in Equation 2.3 (Page 25) of the Programmer's Guide (http://foam.sourceforge.net/docs/Guides-a4/ProgrammersGuide.pdf).

Best,
Philip
Forum: OpenFOAM Programming & Development April 16, 2014, 11:00
Replies: 15
Views: 6,889
Posted By bigphil
The volume integral is not considered when the...

The volume integral is not considered when the gradient is calculated, as you may want a gradient for some other reason;

the volume integral is performed when you add grad(p) to the momentum...
Forum: OpenFOAM Programming & Development April 16, 2014, 10:48
Replies: 15
Views: 6,889
Posted By bigphil
Using "grad(p) Gauss linear" calculates the cell...

Using "grad(p) Gauss linear" calculates the cell gradient using the Gauss theorem,
whereas "grad(p) leastSquares" calculates the cell gradient by fitting a 'least squares' plane, no need to...
Forum: OpenFOAM Programming & Development May 25, 2013, 07:04
Replies: 15
Views: 6,889
Posted By bigphil
Idefix, If you follow the trail of code from...

Idefix,

If you follow the trail of code from fvc::grad(volField) you can find where everything is calculated.
In short,
fvc::grad(volField) ->
fvc::grad(volField, word) ->...
Forum: OpenFOAM Programming & Development May 24, 2013, 08:38
Replies: 15
Views: 6,889
Posted By bigphil
Hi, Gauss linear means that the gradient is...

Hi,

Gauss linear means that the gradient is calculated using the Gauss method (i.e. volume integrals are converted to surface integrals) and linear means that cell centre values are interpolated...
Forum: OpenFOAM Programming & Development January 29, 2012, 09:39
Replies: 15
Views: 6,889
Posted By bigphil
Hi, As far as I can see (in fvcGrad.C), ...

Hi,

As far as I can see (in fvcGrad.C),
fvcGrad of a volumeField checks what gradScheme is specified (i.e. Gauss, leastSquares, etc.) and then uses that to calculate the grad.

Philip
Showing results 1 to 7 of 7

 
Forum Jump

All times are GMT -4. The time now is 16:15.