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

why div(grad) is not equal to laplacian

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By JasonWang3
  • 1 Post By randolph

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 19, 2017, 05:57
Default why div(grad) is not equal to laplacian
  #1
Member
 
Xinguang Wang
Join Date: Feb 2015
Posts: 45
Rep Power: 11
JasonWang3 is on a distinguished road
Hi all

I did a test about div(grad(Ux)) and laplacian(Ux), but got different results. Why did it happen?

However, div(mesh.Sf()*snGrad(Ux)) is equal to laplacian(Ux).

I am looking for a way to calculate the second derivatives of Ux dux2dy2. I am not sure grad(grad(Ux).component(vector::Y))..component(vec tor::Y) is right or not.
amuzeshi likes this.
JasonWang3 is offline   Reply With Quote

Old   May 19, 2017, 09:15
Default
  #2
Member
 
Xinguang Wang
Join Date: Feb 2015
Posts: 45
Rep Power: 11
JasonWang3 is on a distinguished road
I test using icoFoam and 'cavity' in the tutorial.

Did anyone meet the same problem?
JasonWang3 is offline   Reply With Quote

Old   July 2, 2018, 12:46
Default
  #3
Senior Member
 
Reviewer #2
Join Date: Jul 2015
Location: Knoxville, TN
Posts: 141
Rep Power: 10
randolph is on a distinguished road
Quote:
Originally Posted by JasonWang3 View Post
I test using icoFoam and 'cavity' in the tutorial.

Did anyone meet the same problem?
div(grad) is not equal to Laplacian in the discrete sense, although they are equal in the continuous domain. You can show this by comparing the D2 matrix with the D1*D1 matrix. I know this is true in FDM. I think also apply to FVM.
amuzeshi likes this.
randolph 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
Why Laplacian is used instead of a combination of divergence and gradient operators? HakikiCanakkaleli OpenFOAM Programming & Development 3 September 26, 2019 07:40
Modifying the laplacian operator mlawson OpenFOAM Running, Solving & CFD 22 July 16, 2018 04:56
Laplacian of U vector Field at Boudary AshwaniAssam OpenFOAM Programming & Development 0 May 7, 2015 07:36
Laplacian containing an implicit and an explicit variable voingiappone OpenFOAM Programming & Development 0 July 1, 2013 02:40
div(grad) not equal to laplacian close to a discontinuity gtg258f OpenFOAM 10 December 6, 2012 05:58


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