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

gradient and laplacian in OF - how to explicitly get them

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 7, 2014, 08:34
Default gradient and laplacian in OF - how to explicitly get them
  #1
Member
 
Tom
Join Date: Jan 2012
Location: France
Posts: 43
Rep Power: 14
sawyer86 is on a distinguished road
Hi there,

I want to get explicitly the gradient and the laplacian of a variable that I want to select. For example, given a FoamFile of p or U taken like output at a given time from a certain simulation, I would like to have the terms grad(p) or grad(U) and equivalently laplacian(U)...

In formulas:

grad(p)=(dp/dx,dp/dy)

grad(U)=[dU/dx, dU/dy;dV/dx, dV/dy]

laplacian(U)=[d^2U/dx^2+d^2U/dy^2, d^2V/dx^2+d^2V/dy^2]

How is it possible to have this in OF?

Thank you for those who will spend 5 minutes of their time to read this post.

Cheers
sawyer86 is offline   Reply With Quote

Old   April 7, 2014, 09:02
Default
  #2
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 21
Bernhard is on a distinguished road
One solution is to use foamCalcEx: http://openfoamwiki.net/index.php/Contrib_foamCalcEx
Bernhard 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
Third order derivative: Gradient of laplacian hrushi.397 OpenFOAM Running, Solving & CFD 1 April 17, 2024 12:59
Why Laplacian is used instead of a combination of divergence and gradient operators? HakikiCanakkaleli OpenFOAM Programming & Development 3 September 26, 2019 07:40
gradient or laplacian of an unstructured field sawyer86 OpenFOAM Post-Processing 0 March 13, 2014 11:40
Laplacian containing an implicit and an explicit variable voingiappone OpenFOAM Programming & Development 0 July 1, 2013 02:40
Wall correction for the temperature gradient Hagen OpenFOAM 0 March 7, 2011 20:04


All times are GMT -4. The time now is 08:03.