|
[Sponsors] | |||||
|
|
|
#1 |
|
New Member
Join Date: Jul 2025
Posts: 4
Rep Power: 2 ![]() |
After creating a mesh with Snappyhexmesh, I want to analyze the differences between the resulting mesh and the original STL geometry (such as the distance between the snapped mesh and the STL). If the mesh does not fit perfectly on the surface and there are slight irregularities, I want to analyze these. How can I do this?
|
|
|
|
|
|
|
|
|
#2 | |
|
New Member
Ewan Koay
Join Date: Jun 2025
Location: Malaysia/ Singapore
Posts: 3
Rep Power: 2 ![]() |
Quote:
From experience, with suitable mesh size controls, you can control the irregularities within your expectations. Otherwise, scripts can loop the coordinates of each face mesh cell of specified problematic faces. This in turn can be used to interpolate the coordinates of the STL geometric faces and compute the distance differences. A distribution of mesh distance errors can be calculated from this for easy reference. Regards, Ewan |
||
|
|
|
||
|
|
|
#3 |
|
New Member
Join Date: Jul 2025
Posts: 4
Rep Power: 2 ![]() |
I was wondering about the distance between the STL file and the snapped mesh. Some sections of my mesh have minor indentations or bulges. I'd like to know the local deflection values. However, I haven't been able to write the script, so any help would be greatly appreciated.
|
|
|
|
|
|
|
|
|
#4 |
|
Senior Member
M
Join Date: Dec 2017
Posts: 730
Rep Power: 14 ![]() |
I dont know exactly how it will work, but I would try to figure out the boundary nodes of the mesh from the polyMesh folder and compute somehow the distance to the appropriate part of the stl. A problem comes to mind: stl is tessellated and huge faces are probably meshed by thousands of finite faces. So you cannot compute the distance to the nodes of the stl file (well, you can, but it does not tell you anything). You need to compute the shortest distances to each face of the stl, which you must describe first, mathematically. Possible, but an additional step to consider. Corners might pose additional problems.
.. and then, you have the total deviation at each mesh node. I wonder how that is helping you? |
|
|
|
|
|
![]() |
| Tags |
| mesh, openfoam, paraview, snappyhexmesh |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [snappyHexMesh] SnappyHexMesh/splitMeshRegion : region1 in zone "-1" | GuiMagyar | OpenFOAM Meshing & Mesh Conversion | 3 | August 4, 2023 13:38 |
| [snappyHexMesh] non uniform mesh near the stl object | vava10 | OpenFOAM Meshing & Mesh Conversion | 0 | January 31, 2021 15:41 |
| [snappyHexMesh] SnappyHexMesh for internal Flow | vishwa | OpenFOAM Meshing & Mesh Conversion | 24 | June 27, 2016 09:54 |
| [snappyHexMesh] No layers in a small gap | bobburnquist | OpenFOAM Meshing & Mesh Conversion | 6 | August 26, 2015 10:38 |
| [snappyHexMesh] SnappyHexMesh no layers and no decent mesh for complex geometry | pizzaspinate | OpenFOAM Meshing & Mesh Conversion | 1 | February 25, 2015 08:05 |