|
[Sponsors] |
[snappyHexMesh] Regarding SnappyMesh and Stl file |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 7, 2017, 04:58 |
Regarding SnappyMesh and Stl file
|
#1 |
New Member
Join Date: Jul 2017
Location: Germany
Posts: 5
Rep Power: 8 |
Hi,
I am relatively new to openfoam and I have a gearPump Stl file.Till blockMesh it works fine but when I run snappyHexMesh run I am getting an error.Please find the error in the attachment.I am working on windows platform. Thankyou |
|
September 8, 2017, 00:31 |
|
#2 |
Senior Member
Join Date: Aug 2013
Posts: 407
Rep Power: 15 |
Hi,
I am not sure, and I am taking a guess based on your error message - is your STL file in binary or ascii? If it is in binary, can you convert it to ascii and try again? Cheers, Antimony |
|
September 8, 2017, 04:04 |
|
#3 |
New Member
Join Date: Jul 2017
Location: Germany
Posts: 5
Rep Power: 8 |
Hi ,
I tried in both formats but still getting the same error. Thanks |
|
September 12, 2017, 17:56 |
|
#4 |
Senior Member
Kent Wardle
Join Date: Mar 2009
Location: Illinois, USA
Posts: 219
Rep Power: 21 |
You might try to run surfaceCheck on your STL file.
|
|
September 12, 2017, 19:23 |
Re: Regarding SnappyMesh and Stl file
|
#5 | |
Member
Andrew O. Winter
Join Date: Aug 2015
Location: Seattle, WA, USA
Posts: 78
Rep Power: 10 |
Hi naik,
Your error output is unfamiliar to me, but somehow running snappyHexMesh caused a segmentation fault (sigsegv). As pointed out in the OpenFOAM debugging webpage, this likely is caused by the program trying to access memory outside its allocated space. I've never had this occur with a successfully compiled OpenFOAM installation even when I've used a bad .stl file (open surface geometry, etc...); snappyHexMesh would just fail and generate an output saying some condition was violated and it had to terminate. First of all, could you post your snappyHexMeshDict script for the case you're attempting to build? There may be a critical error or typo made there. Secondly, does snappyHexMesh work for the tutorials? If it does, then I suppose it could be your .stl file, in which case you should check it to be sure it doesn't have errors. If the file isn't too detailed, I like to plot it using Matlab (see script below; note that the file must be in ascii format for it to work). Quote:
Finally, this forum post may have a point. It's suggested there that perhaps running out of disk space may be the issue, or, you may have forgotten to clean up the case before retrying to build it, which can cause failures in building cases. Best regards, Andrew |
||
September 12, 2017, 23:11 |
|
#6 |
Senior Member
Join Date: Aug 2013
Posts: 407
Rep Power: 15 |
Hi,
In which case, can you open your ASCII STL file using a text editor and see that there is a word after "solid" in the first line and then there is an "endsolid" at the end of the file? Cheers, Antimony |
|
September 13, 2017, 04:39 |
|
#7 |
New Member
Join Date: Jul 2017
Location: Germany
Posts: 5
Rep Power: 8 |
Hi ,
thank you guys for the reply.The problem is sorted.There was some problem while exporting from the CAD software.Now its working fine. Regards, Anirudh |
|
September 13, 2017, 04:58 |
|
#8 |
Member
Andrew O. Winter
Join Date: Aug 2015
Location: Seattle, WA, USA
Posts: 78
Rep Power: 10 |
If you don't mind my asking, what was the issue? I use CAD software (Autodesk's Inventor, which is free for students) to generate ascii format .stl files a lot and usually don't have issues (I try to keep the precision very high), but would like to know in case something similar pops up.
Glad you could figure out your issue! |
|
September 13, 2017, 05:09 |
|
#9 |
New Member
Join Date: Jul 2017
Location: Germany
Posts: 5
Rep Power: 8 |
Hi Andrew,
I use Creo.I think the file was corrupted because when i tried opening the ASCII stl file , the file was unreadable in notepad .But again we saved the stl file in ASCII format from Creo and the problem was solved.Even i dont know what exactly the problem was. Regards |
|
September 13, 2017, 05:27 |
|
#10 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51 |
Hi,
if you are new to FOAM and the meshing procedure, you can check this out. You might find some interesting points: http://holzmann-cfd.de/index.php/en/4-create-a-project
__________________
Keep foaming, Tobias Holzmann |
|
September 13, 2017, 06:00 |
|
#11 |
New Member
Join Date: Jul 2017
Location: Germany
Posts: 5
Rep Power: 8 |
Hi Tobias,
Thank you,I am working on gear pump and the snappyHexMesh worked fine.But now i want to do snappyHesxMesh for different angular orintations of gears.My question is how do I get differnet angular orientations from the Stl file.I am doing a dynamic mesh so I am creating different base meshes. Thank you |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Convert from WaSP .map to STL .- SnappyMesh | Xabi | OpenFOAM | 7 | September 8, 2009 09:53 |