CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[snappyHexMesh] problem with file stl in snappyHexMesh

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By bineet_aero

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 21, 2009, 13:44
Default problem with file stl in snappyHexMesh
  #1
New Member
 
PEPIN Nicolas
Join Date: Sep 2009
Posts: 5
Rep Power: 17
Nicopep is on a distinguished road
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!!!
Nicopep is offline   Reply With Quote

Old   September 21, 2009, 16:28
Default
  #2
New Member
 
James
Join Date: Mar 2009
Location: Sheffield, UK
Posts: 9
Rep Power: 17
derjames is on a distinguished road
the stl geometry have to be placed on the triSurface folder
(see below )


Code:
 
yourCaseFolder
|-0
|-constant
   |-triSurface
|-system
edit:triSurface inside constant directory

Last edited by derjames; September 21, 2009 at 16:53.
derjames is offline   Reply With Quote

Old   September 21, 2009, 16:42
Default
  #3
New Member
 
PEPIN Nicolas
Join Date: Sep 2009
Posts: 5
Rep Power: 17
Nicopep is on a distinguished road
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...)
Nicopep is offline   Reply With Quote

Old   September 21, 2009, 17:04
Default
  #4
New Member
 
James
Join Date: Mar 2009
Location: Sheffield, UK
Posts: 9
Rep Power: 17
derjames is on a distinguished road
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
derjames is offline   Reply With Quote

Old   September 22, 2009, 04:39
Default
  #5
New Member
 
PEPIN Nicolas
Join Date: Sep 2009
Posts: 5
Rep Power: 17
Nicopep is on a distinguished road
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!
Nicopep is offline   Reply With Quote

Old   November 2, 2020, 07:37
Default
  #6
Member
 
Bineet Mehra
Join Date: Aug 2013
Posts: 61
Rep Power: 13
bineet_aero is on a distinguished road
Quote:
Originally Posted by derjames View Post
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
Hiii

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
bineet_aero is offline   Reply With Quote

Old   November 2, 2020, 09:28
Default
  #7
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,222
Rep Power: 28
Yann will become famous soon enough
Hello,


Yes, linux systems are case sensitive. Any lower/uppercase mismatch in your files will lead to an error.



Cheers,
Yann
Yann is offline   Reply With Quote

Old   November 2, 2020, 09:32
Default
  #8
Member
 
Bineet Mehra
Join Date: Aug 2013
Posts: 61
Rep Power: 13
bineet_aero is on a distinguished road
Quote:
Originally Posted by Yann View Post
Hello,


Yes, linux systems are case sensitive. Any lower/uppercase mismatch in your files will lead to an error.



Cheers,
Yann
Thank you Yann. I found it was because of mismatch in lower and uppercase.

Thanks
Yann likes this.
bineet_aero is offline   Reply With Quote

Old   March 17, 2022, 13:28
Default
  #9
New Member
 
Join Date: Dec 2019
Posts: 1
Rep Power: 0
vilisito is on a distinguished road
Hi, I'm struggling with this issue as well - how did you rename your file from filename.STL to filename.stl?
vilisito is offline   Reply With Quote

Reply

Tags
snappyhexmesh, stl, stl format

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[swak4Foam] swak4foam for OpenFOAM 4.0 mnikku OpenFOAM Community Contributions 80 May 17, 2022 09:06
[foam-extend.org] Problems installing foam-extend-4.0 on openSUSE 42.2 and Ubuntu 16.04 ordinary OpenFOAM Installation 19 September 3, 2019 19:13
OpenFoam "Permission denied" and "command not found" problems. iyidaniel@yahoo.co.uk OpenFOAM Running, Solving & CFD 11 January 2, 2018 07:47
what is swap4foam ?? AB08 OpenFOAM 28 February 2, 2016 02:22
[swak4Foam] swak4foam building problem GGerber OpenFOAM Community Contributions 54 April 24, 2015 17:02


All times are GMT -4. The time now is 22:27.