problem with file stl in snappyHexMesh
Hello everybody!
I'm a new user of openFOAM and I try to modelise the free surface flow over a dam. I have the geometry of the dam under a .stl file and I want to use snappyHexMesh. When I'm running it, I get this message: "Cannot find triSurfaceMesh starting from "/home/isl/OpenFOAM/isl-1.6.x/run/CasTests/Thesauque/constant/triSurface/coursierThesauque2.stl From function triSurfaceMesh::checkFile(const fileName&, const fileName&) in file searchableSurface/triSurfaceMesh.C at line116." Does it exist an other type of geometry? (instead of "triSurfaceMesh") Thanks for your help!!! |
the stl geometry have to be placed on the triSurface folder
(see below ) Code:
|
Thank you but I already put the geometry file .stl in a triSurface subdirectory. That's why I don't understand the message... I know that my .stl is a binary file. Should it be a ASCII file? (but I don't know how to convert a binary file in a ASCII file...)
|
It shoudn´t be a problem snappyHexMesh can read binary or ASCII files. Perhaps your CAD package has a STL translator but I do not think that is the problem. (CATIA the one I am using has one.)
Please just double check your directory structure |
Ok, sorry! Thank you very much derjames, you were right... I put the triSurface directory in the case folder not in the constant directory...
Now, I have an other problem with features. In fact I didn't really understand what this option was so I let it as it was in the motorbike case. Now I get this message: "Refinement phase ---------------- Found point (50 0 10) in cell 68299 on processor 0 Reading external feature lines. keyword file is undefined in dictionary "/home/isl/OpenFOAM/isl-1.6.x/run/CasTests/Thesauque/system/snappyHexMeshDict::features" file: /home/isl/OpenFOAM/isl-1.6.x/run/CasTests/Thesauque/system/snappyHexMeshDict::features From function dictionary::lookupEntry(const word&, bool, bool) const in file db/dictionary/dictionary.C at line 388." Can somebody explain me what is feature? And do you have an idea about this error? Thanks a lot! |
Quote:
I do not why i am getting this error while trying to use snappy "Cannot find surface starting from... .stl". I have verified that the stl file is located in the trisurface folder in the constant directory. "ls" command in trisurface folder shows filename.STL, do you think it is because of difference in the filename with respect to lowercase and uppercase. In the snappyHexMeshDict; it is filename.stl while in the trisurface folder it is filename.STL ? Thanks for any help Regards |
Hello,
Yes, linux systems are case sensitive. Any lower/uppercase mismatch in your files will lead to an error. Cheers, Yann |
Quote:
Thanks |
Hi, I'm struggling with this issue as well - how did you rename your file from filename.STL to filename.stl?
|
All times are GMT -4. The time now is 15:24. |