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

Clarification on Laplacian and the Divergence Schemes

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By sharonyue

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 9, 2022, 10:42
Default Clarification on Laplacian and the Divergence Schemes
  #1
Senior Member
 
Mandeep Shetty
Join Date: Apr 2016
Posts: 185
Rep Power: 10
granzer is on a distinguished road
Hello,
Just needed some simple clarification. From the 'Numerical Schemes' chapter (Chapter 4.5) of OpenFOAM User Guide from CFD direct, I can see that explanation for the gradient schemes says that it includes 'diffusion' type terms .

The Laplacian Scheme also of course includes the diffusion terms. So if the viscosity is not a constant in the flow equations does it mean that the viscous diffusion term will be discretized by the Divergence term? Any explanation will be helpful. Thank you.
granzer is offline   Reply With Quote

Old   February 9, 2022, 13:29
Smile
  #2
Senior Member
 
Mandeep Shetty
Join Date: Apr 2016
Posts: 185
Rep Power: 10
granzer is on a distinguished road
Reference
granzer is offline   Reply With Quote

Old   February 10, 2022, 19:47
Default
  #3
Senior Member
 
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 838
Rep Power: 17
sharonyue is on a distinguished road
The Laplacian term discretized in OpenFOAM equals to surface normal gradient multiplying magnitude of the surface. In quasi-code: fvc::laplacian(nu, U) = nuf*fvc::snGrad(U)*mesh.magSf(). Divergence term equals to summation of flux, which comes from the Gaussian theorem. In quasi-code: fvc::div(phi) = sum(phi). Therefore, we say it sounds like convection.

Indeed, for nabla cdot (nabla T), you can use both to discretize it, such as fvc::div(fvc::grad(T)), or fvc::laplacian(T), but the latter one employes the snGrad() and it further uses compact stencil (you will see one summation in math). The first one employs the extended stencil (you will see two summations in math). One important application is the usage of laplacian equation of pressure. The compact stencil can try its best to erase oscillation.

Sorry, I did not notice your last sentence. Regarding the viscosity, it simply uses interpolation scheme, e.g., central linear.
granzer likes this.
__________________
My OpenFOAM algorithm website: http://dyfluid.com
By far the largest Chinese CFD-based forum: http://www.cfd-china.com/category/6/openfoam
We provide lots of clusters to Chinese customers, and we are considering to do business overseas: http://dyfluid.com/DMCmodel.html
sharonyue is offline   Reply With Quote

Reply

Tags
schemes


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



All times are GMT -4. The time now is 20:57.