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

Second derivative

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 9, 2007, 04:58
Default Hi, I have a (hopefully not
  #1
Senior Member
 
Fabian Braennstroem
Join Date: Mar 2009
Posts: 407
Rep Power: 19
braennstroem is on a distinguished road
Hi,
I have a (hopefully not to stupid) question concerning the
calculation of the second derivatives in OpenFOAM. Right now, I know of
two ways to compute them using FVM; one is to calculate the first
derivatives at the cell faces and other would use the cell center. One
way to do it in OpenFOAM looks like this:

fvc::laplacian(U)

but how can I know, if the first derivative is calculated at the faces or centers?
Maybe, anybody has any recommandation, which approach to use?

Regards!
Fabian
braennstroem is offline   Reply With Quote

Old   November 21, 2007, 12:15
Default Hi, Hrvoje's answer got lost:
  #2
Senior Member
 
Fabian Braennstroem
Join Date: Mar 2009
Posts: 407
Rep Power: 19
braennstroem is on a distinguished road
Hi,
Hrvoje's answer got lost:

Posted by Hrvoje Jasak on Sunday, November 18, 2007 - 05:43 am:

fvc::div(fvc::grad(U)) calculates the cell centre gradient,
interpolates to the face and calculates the second gradient (well,
divergence) from that.

fvc::laplacian(U) calculates the gradient on the face and does the div
without interpolation.

The difference between the two is the size of computational molecule -
have a look at the difference if you want to see it. I would say it is
very iportant to be CONSISTENT with whatever you are trying to do.

Enjoy,

Hrv

....................

Thanks for your help! I still have a small understanding problem about your being 'CONSISTENT' recommandation...

I would like to run SST-SAS simulations for indoor airflows, which switches between RANS and LES calculations according to the van Karman length scale, which in turn is based on the second velocity gradients. I assume that the first approximation needs, due to the larger molecule, more traffic on parallel setup and could make problems on the boundary!? In addition the accurary would be even worse on a unstructured grid due to the 'double' skewness of the two next cells. Or is it more a problem of convergence?

Greetings!
Fabian
braennstroem is offline   Reply With Quote

Reply


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
Derivative J.Y.Shin FLUENT 0 February 5, 2007 00:34
Derivative and double-Derivative for steep functio Kali Sanjay Phoenics 1 March 27, 2006 07:51
second derivative in udf dirk FLUENT 0 June 8, 2005 12:56
Second derivative Thomas CFX 2 March 28, 2005 13:38
2-nd derivative topchik alon FLUENT 0 May 28, 2003 05:32


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