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

meshing with Salome question. Is Tobi there?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 17, 2022, 15:00
Default meshing with Salome question. Is Tobi there?
  #1
Senior Member
 
Alan w
Join Date: Feb 2021
Posts: 273
Rep Power: 6
boffin5 is on a distinguished road
Hi,

I am posting this Salome related question because in the past I have gotten valuable help from this forum. It's a meshing question that should be general in nature.

My project as of now is to learn how to do meshing in Salome, and use the results in OpenFOAM. I am working with a generic racecar body, which I import as an stl file. In the image, it appears in the top. Characteristic of stl files, it shows as a set of triangles. SnappyHexMesh in OpenFOAM would operate on these triangles, and the result would be a mesh including a lot of skinny triangles which would probably cause OF to choke.

Therefore, my hope is that tools such as Salome can provide more robust meshing capability than OF, so as to produce more regular cells, without all these skinny triangles. My notional goal is indicated in the lower right side of the image.

However, even after trying a variety of approaches with Salome, I still end up with the skinny triangles, as seen in the lower left of the image. It appears to still be operating on the triangles from the stl file. I know that people such as Tobi have much experience in this regard, and hope that I might receive advice to help me understand better procedures to follow.
Attached Images
File Type: jpg SnapCrab_NoName_2022-12-17_11-37-55_No-00.jpg (50.9 KB, 41 views)
boffin5 is offline   Reply With Quote

Old   December 18, 2022, 14:07
Default Solved, or on the way there
  #2
Senior Member
 
Alan w
Join Date: Feb 2021
Posts: 273
Rep Power: 6
boffin5 is on a distinguished road
After churning through some youtube videos, I happened on this one: "Fixing Mesh in Salome".
It shows how to assess a mesh, and importantly, ways to fix the geometry to result in a mesh without errors.
First, in the geometry mode, I used Repair - Limit Tolerance. This found geometry elements in the stl file that were out of tolerance. Then, I created a mesh with 1D - 2D and edited the parameters.
This looks like it will work.
boffin5 is offline   Reply With Quote

Old   December 19, 2022, 10:57
Default
  #3
Senior Member
 
Josh Williams
Join Date: Feb 2021
Location: Scotland
Posts: 113
Rep Power: 5
joshwilliams is on a distinguished road
I have no experience in SALOME, but I would probably recommend to first remesh the original STL file. If you have more regular triangles, I guess snappy will do much better. There are several python libraries like vedo and pyvista that may be able to do this.
joshwilliams is offline   Reply With Quote

Old   December 29, 2022, 11:41
Default Solved - Salome mesh for OpenFOAM
  #4
Senior Member
 
Alan w
Join Date: Feb 2021
Posts: 273
Rep Power: 6
boffin5 is on a distinguished road
Thanks for the reply, Josh.
It turns out that in Salome you need to use a step file as a basis for meshing, not an stl file.
Stl files by their very nature have surfaces composed of triangles, which often are very slender, and this can cause problems in generating meshes with evenly distributed cells. SnappyHexMesh uses stl files in its processing, which is why I have been having problems when using it with more complicated geometries.
Salome was happy to import stl files, but the resulting mesh still had the slender triangles, whereas when I used step files, the results were much better.
boffin5 is offline   Reply With Quote

Reply


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
[Salome] meshing with Salome tenichols19 OpenFOAM Meshing & Mesh Conversion 1 November 21, 2019 05:14
Salome meshing to OpenFOAM FM_Stiral Mesh Generation & Pre-Processing 8 October 15, 2019 08:59
Salome meshing - Algorithm Gmsh FM_Stiral Mesh Generation & Pre-Processing 1 September 19, 2019 16:42
[Salome] Salome Hybrid Meshing NoradFirst2 OpenFOAM Meshing & Mesh Conversion 5 July 20, 2015 02:50
Question about meshing akr FLUENT 1 February 8, 2008 04:43


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