STL file Import Error
OpenLB – Open Source Lattice Boltzmann Code › Forums › on OpenLB › General Topics › STL file Import Error
- This topic has 8 replies, 3 voices, and was last updated 1 year, 6 months ago by achodankar.
October 21, 2021 at 6:15 pm #6075
I don’t get an error when I import an STL file created in Freecad. But, I get an error when I import an STL file created in Solidworks. I would really appreciate your help in this matter.
The following is the error:
terminate called after throwing an instance of ‘std::runtime_error’
what(): STL File not valid.
*** Process received signal ***
Signal: Aborted (6)
Signal code: (-6)
[ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x46210)[0x7f9ea3012210]
[ 1] /lib/x86_64-linux-gnu/libc.so.6(gsignal+0xcb)[0x7f9ea301218b]
[ 2] /lib/x86_64-linux-gnu/libc.so.6(abort+0x12b)[0x7f9ea2ff1859]
[ 3] /usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x9e911)[0x7f9ea33c8911]
[ 4] /usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0xaa38c)[0x7f9ea33d438c]
[ 5] /usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0xaa3f7)[0x7f9ea33d43f7]
[ 6] /usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0xaa6a9)[0x7f9ea33d46a9]
[ 7] ./cylinder3d(+0x9ebb9)[0x5593a5266bb9]
[ 8] ./cylinder3d(+0x9f377)[0x5593a5267377]
[ 9] ./cylinder3d(+0x219c1)[0x5593a51e99c1]
*** End of error message ***
Aborted (core dumped)
Abhijeet C.October 22, 2021 at 3:20 pm #6088
What happens if you open the Solidworks STL in Freecad, save it there and try to open this STL file in OpenLB?October 22, 2021 at 8:41 pm #6091
Thank you very much for your prompt reply. Your suggestion did work out. I can import the stl file successfully in openlb. However, the problem is that the nodes at the wall are not symmetric at all. The top and bottom nodes are not symmetric. It applies the same to the left and right nodes. I have imported a simple cylinder geometry. I would be grateful if you could suggest me how do I solve this issue.
Abhijeet C.October 26, 2021 at 8:51 pm #6102
What exactly do you mean by “not symmetric at all”?October 26, 2021 at 9:33 pm #6109
The arrangement of the nodes on the top, bottom, left and right side is not symmetric. Basically, it should be mirror images(Eg:-circular geometry). That’s not the case presently. I didn’t have that problem, when the geometries were created using indicators.
Abhijeet C.November 2, 2021 at 1:25 pm #6140
Can the asymmetry be explained by a non-center origin of the STL (i.e. it is shifted in some direction?) If so this can be adapted.
Is it still at least roughly following the geometry? (i.e. if you increase the resolution does it converge to the setup you expect?) Maybe a picture and the STL could help me to follow this.November 17, 2021 at 8:45 pm #6177
The asymmetry issue persists even after increasing the resolution. I have ignored the issue temporarily, since for higher resolution it not that much difference. However, from the fundamental point of view, it is incorrect. So, I am pondering if anything can be tweaked in the stl reader.
Here is the link to the image of the geometry: https://ibb.co/zGbNp3s
Abhijeet C.November 23, 2021 at 2:04 pm #6190mathiasKeymaster
The voxelizer works correctly. The voxel mesh is slidly shifted to avoid artefacts with nodes beeing exaxtly at an interface which is problematic for offLattice boundary conditions.November 23, 2021 at 7:02 pm #6194
This explanation is very helpful.
- You must be logged in to reply to this topic.