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

[Other] smoothMesh mesh smoothing tool to improve mesh quality

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree9Likes
  • 6 Post By tkeskita
  • 2 Post By tkeskita
  • 1 Post By tkeskita

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 28, 2024, 13:37
Talking smoothMesh mesh smoothing tool to improve mesh quality
  #1
Member
 
Tuomo Keskitalo
Join Date: Oct 2010
Posts: 60
Rep Power: 16
tkeskita is on a distinguished road
Hello OF world,

I made a mesh quality improvement / smoothing utility for OF. It moves internal mesh points by using the Centroidal smoothing algorithm (a version of the Laplacian smoothing algorithm, which uses surrounding cell centers instead of the neighbouring vertex locations to calculate the new vertex position). Optional heuristic quality control options exist to constrain the smoothing, to avoid self-intersections. No changes to mesh topology are made.

Code available at https://github.com/tkeskita/smoothMesh

Have a look at the demo video:

Cheers!
Tuomo
tkeskita is offline   Reply With Quote

Old   January 18, 2025, 08:19
Post Update version of smoothMesh
  #2
Member
 
Tuomo Keskitalo
Join Date: Oct 2010
Posts: 60
Rep Power: 16
tkeskita is on a distinguished road
Hello OF world,

I've now reached a point where I think smoothMesh is stable. It can now also improve the prismatic boundary layers in the smoothing process. If you need mesh smoothing, please give it a go and comment in this thread how did it go. I added some run examples of a test case in the docs to show the usage. Happy smoothing!

Here's an example test mesh before smoothing:




and after smoothing:


snak and rvelseg like this.
tkeskita is offline   Reply With Quote

Old   February 24, 2025, 09:44
Default How to install the this in Openfoam?
  #3
New Member
 
ravindrak's Avatar
 
Ravindra K
Join Date: Dec 2010
Posts: 5
Rep Power: 16
ravindrak is on a distinguished road
Hi,
Can you tell me how to install this?

I have my Openfoam installed in:

/opt/openfoam12

I have downloaded your code and have kept it in the openfaom12 folder:

/opt/openfoam12/smoothMesh-main

Then from here how to go about installing it?
ravindrak is offline   Reply With Quote

Old   February 24, 2025, 11:00
Default
  #4
Member
 
Tuomo Keskitalo
Join Date: Oct 2010
Posts: 60
Rep Power: 16
tkeskita is on a distinguished road
Hi,

sorry, it currently works only on openfoam.com v2412. Compilation instructions: https://github.com/tkeskita/smoothMe...n-instructions
rvelseg likes this.
tkeskita is offline   Reply With Quote

Old   April 14, 2025, 08:28
Default
  #5
Senior Member
 
Will Kernkamp
Join Date: Jun 2014
Posts: 382
Rep Power: 14
wkernkamp is on a distinguished road
Quote:
Originally Posted by tkeskita View Post
Hi,

sorry, it currently works only on openfoam.com v2412. Compilation instructions: https://github.com/tkeskita/smoothMe...n-instructions
I compiled and ran it on OpenFOAM.com v2212. Worked without modification.
wkernkamp is offline   Reply With Quote

Reply

Tags
mesh, smoothing

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
decomposePar problem: Cell 0contains face labels out of range vaina74 OpenFOAM Pre-Processing 37 July 20, 2020 05:38
[ICEM] Unexplained changes of mesh quality and blocking approach salumi ANSYS Meshing & Geometry 9 November 23, 2016 04:14
[ICEM] Tips on how to improve the quality of this mesh crimsoncabbages ANSYS Meshing & Geometry 0 September 12, 2014 06:26
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
[ICEM] how to improve mesh quality around sharp edge? foolboy007 ANSYS Meshing & Geometry 1 January 23, 2013 11:57


All times are GMT -4. The time now is 21:10.