|
[Sponsors] |
Clarification on Laplacian and the Divergence Schemes |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
Senior Member
Mandeep Shetty
Join Date: Apr 2016
Posts: 188
Rep Power: 11 ![]() |
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 ![]() |
|
![]() |
![]() |
![]() |
![]() |
#3 |
Senior Member
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 856
Rep Power: 19 ![]() |
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.
__________________
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 |
|
![]() |
![]() |
![]() |
Tags |
schemes |
Thread Tools | Search this Thread |
Display Modes | |
|
|