Help with repairing geometry
Hello everyone,
I am writing to ask for some help with geometry preparation in order to use it in snappyHexMesh I've been following the recommendations made by Tobias Holzzman ((1),and (2)), but I am still having trouble ending with a closed STL. Small edges, sharp faces, and probably other things that I am not aware of are always giving me problems. For example, I've been trying to use the geometry of a submarine I got online (STEP file) and transform it into an STL. I put the STEP file in Salome, mesh it with the same size (following the procedure recommended in (2)), and then exported it to STL, but when I perform surfaceCheck I get the following message: Quote:
Any help will be really appreciated!!! Files: https://drive.google.com/open?id=0B4...3o0X3lMLVlucW8 (STL file is quite heavy) (1): https://www.youtube.com/watch?v=RFJN...L3CN4WA&t=237s (2): https://www.cfd-online.com/Forums/op...sh-salome.html |
Hi Frederico,
You could try two programs: MeshMixer and MeshLab. Perhaps one of them can repair your surface. Best regards, Paulo |
1 Attachment(s)
Hi,
I recently encountered this problem, and the problem I had, I think it's the same as yours. As you said you downloaded a file, you have to check that you have not any double edges defining your patches. To explain what I'm saying, load into salome the following dumpFile (copy and paste into a new file and save it with .py extension) Code:
import sys Even If I set the same local lenght hypotesis, point of the triangles are not matching, where ONE edge of face2 is matching TWO edges of face1. If you want find out where these "not matching" triangles are, you can use surfaceSubsetDict. Cheers |
1 Attachment(s)
There's also a poor-man way to look for faces that give you problem.
Open the problemFaces file. Top number is total number of faces, other numbers are numbered faces of the mesh. Now run paraview and import your stl file. Open on the side a spreadsheet view and select to look for cellData, scroll to your faces and use filter extract selections. This will produce an extraction of the problemFaces. I attach a picture. Cheers |
Thank you all for your suggestions.
I've followed your advice and I found that the problem are a few small faces that are giving me trouble. The problem I am having right now is that if I remove them, then my solid will not be closed, but if I try to mesh them, salome gives me an error. :confused::confused: Then.. how can I do to deal with this? Thanks in advance!! |
1 Attachment(s)
Hi,
I make you note that your problem can be threated as symmetric, so you should mesh half of the volume...you will considerably reduce your computational effort. Further more, I have not run surfaceCheck but you should reconsider your starting geometry, as you may remove your capital letters USBN 70 and there are many small fillets (slivering faces?) I think you can remove (see example in picture), these are quite hard to be captured by SHM. I haven't try to reproduce your errors in Salome, maybe try to post the faces you would to remove and let's see if for my above suggestions these are needed or not. Regards |
Quote:
I used this method and was able to identify the problem faces. I then went back to CAD and filleted the edges of the problem faces. Problem solved! |
Hi, I think you can try 3D builder in the windows store. It's a 1 click repair which works for my case. Note that your output may be shifted after that, if it lies in the negative coordinates.
|
All times are GMT -4. The time now is 14:51. |