Skip to content

OpenFOAM mesh smoothing tool to improve mesh quality

License

Notifications You must be signed in to change notification settings

tkeskita/smoothMesh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

smoothMesh

OpenFOAM mesh smoothing tool to improve mesh quality.

Warning: Work in progress.

Current restrictions

  • Smoothing of internal mesh points only
  • Applies centroidal smoothing algorithm with given number of iterations (centroidalIters option)
  • Encourages orthogonal side edges on the boundary cell layer (orthogonalBlendingFraction option)
  • Developed on OpenFOAM.com v2312

Compilation instructions

. /usr/lib/openfoam/openfoam2312/etc/bashrc
cd smoothMesh/src
wclean
wmake

Command line options

  • -centroidalIters specifies the number of smoothing iterations (default 20)
  • -maxStepLength is the maximum length for moving a point in one iteration (default 0.01)
  • -orthogonalBlendingFraction (Warning: experimental feature!) is the fraction by which the edges touching the boundary faces are forced towards orthogonal direction (default 0.3)
  • -qualityControl true (Warning: experimental feature!) enables the point quality criteria, which freezes point to current location if moving the point would decrease the point quality (if variance of edge-edge angles of all faces meeting at the point would increase)

The following parameters are applied to limit squishing of cells near concave features:

  • -minEdgeLength defines edge length below which edge points are fully frozen at their current location (default 0.02)
  • -maxEdgeLength defines edge length above which edge vertices are fully free to move, without any constraints (default 1.001 * minEdgeLength)

Usage examples

  • Parallel run example: mpirun -np 3 smoothMesh -centroidalIters 20 -parallel
  • Serial run example: smoothMesh -centroidalIters 20

Getting help and feedback

Please use Github issues section for asking help. If you like this tool, please star this repository in Github!

About

OpenFOAM mesh smoothing tool to improve mesh quality

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages