|
[Sponsors] |
February 21, 2015, 16:18 |
Concerns with gradient calculation
|
#1 |
Member
Leonardo Honfi Camilo
Join Date: Mar 2009
Location: Delft, Zuid Holland, The Netherlands
Posts: 60
Rep Power: 17 |
Hello everyone,
there is this itch I have been trying to scratch and hopefully it is just me doing something dumb. in any case, as a background I have been performing LES simulations on this channel and I have been calculating the production and dissipation. And upon calculating the dissipation and production terms of the Reynolds stress equation in the spanwise, vertical and streamwise directions and compering with a DNS database, I realised that something was wrong. The streamwise and vertical components seemed switched and the spanwise component did not match well with the reference. After mulling over it for some time, I decided to take a look at each term individually. And this weekend I decided to take a look at how the Mean velocity gradients matched with the reference. The Mean velocity I used,,UMean, was averaged through the flow after a rather long development period. So in order to calculate the components of the mean velocity gradient I computed the Tensor with Code:
fvc::grad(UMean) gradx.jpg grady.jpg grady_ref.jpg gradz.jpg The black crosses represent the data from extrating the components XX,XY and XZ from fvc::grad(UMean), the green line represents the data obtained by calculating each scalar element directly and the magenta line is the DNS reference. Those gradients have been computed as a post-process, but the results are consistent with a on the fly computation. Additionally fvSchemes is set as: Code:
gradSchemes { default Gauss linear; } Note. This was tested in openFoam 2.0.x,2.2.x and 2.3.x I should also point out that the Mean velocity profile seems to be in very good agreement with the reference, so for all intent and purposes, the issue does not seem to be the UMean field. Last edited by lhcamilo; February 22, 2015 at 06:08. Reason: legends |
|
February 22, 2015, 06:57 |
|
#2 |
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33 |
try
default cellLimited Gauss linear 1; If this does not help, AND YOUR MESH IS REASONABLE, there is garbage in your velocity field. Hrv
__________________
Hrvoje Jasak Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk |
|
Tags |
gradient |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
question regarding LES of pipe flow - pimpleFoam | Dan1788 | OpenFOAM Running, Solving & CFD | 37 | December 26, 2017 15:42 |
conjugateHeatFoam, grid spacing and gradient calculation | benk | OpenFOAM | 1 | May 5, 2010 17:06 |
Face based gradient calculation | Bernhard Kubicek | Main CFD Forum | 1 | February 12, 2008 17:34 |
Gradient calculation | Harry | Main CFD Forum | 3 | October 7, 2006 05:19 |
Warning 097- | AB | Siemens | 6 | November 15, 2004 05:41 |