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 3 years, 1 month ago by achodankar.
-
AuthorPosts
-
October 21, 2021 at 6:15 pm #6075achodankarParticipant
Hello Developers,
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]
[10] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0x7f9ea2ff30b3]
[11] ./cylinder3d(+0x21f5e)[0x5593a51e9f5e]
*** End of error message ***
Aborted (core dumped)Thank you.
Yours sincerely,
Abhijeet C.
October 22, 2021 at 3:20 pm #6088AdrianKeymasterWhat 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 #6091achodankarParticipantHello Adrian,
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.Thank you.
Yours sincerely,
Abhijeet C.
October 26, 2021 at 8:51 pm #6102AdrianKeymasterWhat exactly do you mean by “not symmetric at all”?
October 26, 2021 at 9:33 pm #6109achodankarParticipantHello Adrian,
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.Thank you.
Yours sincerely,
Abhijeet C.
November 2, 2021 at 1:25 pm #6140AdrianKeymasterCan 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 #6177achodankarParticipantHello Adrian,
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
Thank you.
Yours sincerely,
Abhijeet C.
November 23, 2021 at 2:04 pm #6190mathiasKeymasterThe 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 #6194achodankarParticipantHello Mathias,
This explanation is very helpful.Thank you.
Yours sincerely,
Abhijeet C.
-
AuthorPosts
- You must be logged in to reply to this topic.