Disclaimer: i am NOT an openfoam professional and I don't represent openfoam officially in any capacity
TLDR for Tetrahedral Meshes, Example fvSchemes:
// gradient terms
gradSchemes
{
default leastSquares;
}
// divergence or convection (advection) terms
divSchemes
{
default none;
div(phi,alpha) Gauss upwind;
div(phir,alpha) Gauss upwind;
div(phi,alpha.liquid) Gauss upwind;
div(phir,alpha.vapour,alpha.liquid) Gauss upwind;
div(phir,alpha.structure,alpha.liquid) Gauss upwind;
div(phi,alpha.vapour) Gauss upwind;
div(phir,alpha.liquid,alpha.vapour) Gauss upwind;
div(phir,alpha.structure,alpha.vapour) Gauss upwind;
"div\(phi.*,U.*\)" Gauss upwind;
"div(alphaRhoPhi,U)" Gauss upwind;
"div(alphaRhoPhiNu,U)" Gauss linear;
"div(alphaRhoPhi,K)" Gauss upwind;
"div\(alphaRhoPhi.*,k.*\)" Gauss upwind;
"div\(alphaRhoPhi.*,epsilon.*\)" Gauss upwind;
"div\(alphaRhoPhi.*,(h|e).*\)" Gauss upwind;
}
// diffusion terms
laplacianSchemes
{
default Gauss linear limited corrected 0.5;
}
interpolationSchemes
{
default linear;
}
// surface normal interpolation terms
snGradSchemes
{
default limited corrected 0.5;
}
Links
Prof Jasak's very useful discretisation best practices:
www.tfd.chalmers.se/~hani/kur...
Who is Prof Jasak?
www.phy.cam.ac.uk/directory/h...
• [16th OpenFOAM Worksho...
Gauss Divergence Theorem
en.wikipedia.org/wiki/Diverge...
mathworld.wolfram.com/Diverge...
What are gradient, laplacian (diffusion) and convection terms?
en.wikipedia.org/wiki/Navier%...
en.wikipedia.org/wiki/Thermal...
Laplacian (Diffusion or Conduction) Term in OpenFoam
www.openfoam.com/documentatio...
Surface normal schemes (used in divergence or convection term)
www.openfoam.com/documentatio...
What is least squares scheme? Credit to Dr Aiden (Fluid Mechanics 101)
• [CFD] Least-Squares Gr...
More papers on least squares
www.hysafe.org/img/gradrart.pdf
ntrs.nasa.gov/api/citations/2...
Upwinding
• [CFD] What is the diff...
Gradient (Flux) limiters (Aerodynamic CFD)
• MIT Numerical Methods ...
• Implementing and debug...
Misc Tips and Tricks
www.wolfdynamics.com/wiki/tips...
Old video, was fiddling around with controls to learn
• OpenFoam Heat Transfer...
Sections
Chapters:
0:00 Introduction
1:40 Prof Jasak's Best Practices Document
4:45 What exactly are gradient, convection and diffusion schemes?
9:25 Dr Aiden's videos on least squares
11:08 Gauss upwind Divergence Schemes OpenFOAM documentation
12:11 Understand Gauss Theorem first!
13:35 Laplacian (Diffusion) Scheme and Limiters OpenFOAM Documentation
17:10 Flux Limiter Scheme (used for snGrad or laplacian)
18:40 Summary of all resources available for understanding fvSchemes in context of tetrahedral meshing
Playlists and Relevant Github Repositories
Fluid Mechanics and Git Repos:
• Fluid Mechanics
github.com/theodoreOnzGit/Ope...
Petroleum Downstream Crash Course Playlist:
• Petroleum Refining
OpenFOAM for Windows 10 Beginner Playlist and some Git Repos
• OpenFoam for Windows N...
github.com/theodoreOnzGit/lam...
OpenFOAM Intermediate Playlist and some Git Repos
• OpenFOAM Intermediate ...
github.com/theodoreOnzGit/thi...
OpenFOAM Heat Transfer Playlist and GitHub Repo
• OpenFOAM Heat Transfer
github.com/theodoreOnzGit/Ope...
Convection Boundary Layer and git Repos:
• Convection Heat Transfer
github.com/theodoreOnzGit/hea...
Turbulence Modelling Playlist
• Turbulence Modelling 1...
github.com/theodoreOnzGit/tur...
OpenFOAM C++
github.com/theodoreOnzGit/C-_...
• Introductory C++ for O...
OpenFOAM Bash
github.com/theodoreOnzGit/Bas...
• OpenFOAM Bash
Негізгі бет Some useful resources for understanding fvSchemes within OpenFOAM for tetrahedral meshes from Salome
Пікірлер: 4