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

Help on 2nd central differentiation in oepnfoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 31, 2018, 03:08
Default Help on 2nd central differentiation in oepnfoam
  #1
Senior Member
 
Nguyen Duy Trong
Join Date: Apr 2014
Posts: 124
Rep Power: 12
ndtrong is on a distinguished road
Hi everyone,

I want to compute 2nd central differentiation by using formula as below:
ddx(phi_(ijk)) = (phi_(i-1,j,k) - 2*phi_(i,j,k) + phi_(i+1,j,k))/dx^2

with phi is volScalarFields in openfoam.

Could any one please help me to do that?

Thanks
ndtrong 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
2nd order upwind vs 2nd order upwind!!! Far Main CFD Forum 7 March 14, 2013 12:29
2nd order upwind scheme (Fluent and CFX) Far FLUENT 0 May 22, 2011 01:50
Definition of limiter function for central dirrerencing scheme sebastian_vogl OpenFOAM Running, Solving & CFD 0 January 5, 2009 11:08
2nd order interpolation for NS solver Quarkz Main CFD Forum 6 July 15, 2005 21:50
Multicomponent fluid Andrea CFX 2 October 11, 2004 05:12


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