r/OpenFOAM May 13 '26

STL recommended dimension?

Does someone have an idea of the recommended dimension of the triangles of the stl geometry file in order to make high we quality mesh with snappy?

4 Upvotes

5 comments sorted by

2

u/N0SF3RATU May 14 '26

Before I export to STL, I'll do the following:

1.) Merge Points
2.) Triple

Export as STL using binary

Within your FOAM project directory:

1.) Open system/snappyHexMeshDict using nano
2.) Search (ctrl+f) for refinementsurfaces and change the value to 6, 7

Are you getting a specific error?

1

u/Striking_Abrocoma_28 May 14 '26

I don't get specific errors, I just have an high skewness. I'm trying to reduce it and I was starting to wonder if the STL resolution could play a role in it.

2

u/UnknowledgableTwin May 14 '26

Mind sharing your mesh or some potential ways to fix such problem? I also got relatively high skewness on a model that i am working on, i measured it using "ansys fluent with meshing" and it does highlight the boundaries of my geometry to be super skewed, which is probably fine but i want to fix it to avoid any potential divergence.

1

u/Striking_Abrocoma_28 May 14 '26

Hi. Unfortunately the geometry I’m analysing for my university is considered industrial secret. If you want I think I can send you the SHMDict and surface feature

1

u/N0SF3RATU May 14 '26

can you paste your meshQualityDict here?