CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Native Meshers: snappyHexMesh and Others

surfaceFeatureExtract surface.stl

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 22, 2013, 11:09
Lightbulb surfaceFeatureExtract surface.stl
  #1
Member
 
Reza
Join Date: Feb 2012
Posts: 63
Rep Power: 5
gooya_kabir is on a distinguished road
Hi friends

I'm trying to make .emesh file from my .stl file for snappyHesh. but when I apply the command: srfaceFeatureExtract,this happens:
FOAM FATAL ERROR:
Cannnot read "surface.stl"

From function triSurface::read(const fileName&, const word&, const bool)
in file triSurface/triSurface.C at line 369.
can you give a comment about it?

Many thanks
gooya_kabir is offline   Reply With Quote

Old   August 22, 2013, 16:43
Default
  #2
Senior Member
 
Nima Sam
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,123
Blog Entries: 1
Rep Power: 14
nimasam is on a distinguished road
Send a message via Yahoo to nimasam
Dear Reza

you might saved your STL file in binary format , so i guess if you save it in ASCII format, then error would be solved
__________________
Training Course on OpenFOAM at (http://www.isme.ir/)
My Weblog (http://openfoam.blogfa.com/)
nimasam is offline   Reply With Quote

Old   August 22, 2013, 17:43
Smile many thanks
  #3
Member
 
Reza
Join Date: Feb 2012
Posts: 63
Rep Power: 5
gooya_kabir is on a distinguished road
would you help me how to change .stl to binary one?
I tried autocad, but it didnt work
gooya_kabir is offline   Reply With Quote

Old   August 23, 2013, 11:13
Default
  #4
Senior Member
 
Nima Sam
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,123
Blog Entries: 1
Rep Power: 14
nimasam is on a distinguished road
Send a message via Yahoo to nimasam
Open your STL file in paraview and save in in STL format ASCII one
__________________
Training Course on OpenFOAM at (http://www.isme.ir/)
My Weblog (http://openfoam.blogfa.com/)
nimasam is offline   Reply With Quote

Old   August 26, 2013, 04:02
Question same error
  #5
Member
 
Reza
Join Date: Feb 2012
Posts: 63
Rep Power: 5
gooya_kabir is on a distinguished road
Hi Sam,

Thank you for your help, I saved the file in Ascii format and run it again, but the same error appeared:
Rezas-MacBook-Pro:chalk reza$ surfaceFeatureExtract -includedAngle 150 pores.stl features
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.1.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.1.1-221db2718bbb
Exec : surfaceFeatureExtract -includedAngle 150 pores.stl features
Date : Aug 26 2013
Time : 09:57:48
Host : "Rezas-MacBook-Pro.local"
PID : 483
Case : /Volumes/OpenFOAM-v2.1.1/OpenFOAM-2.1.1/tutorials/mesh/snappyHexMesh/chalk
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Feature line extraction is only valid on closed manifold surfaces.
Surface : "pores.stl"
Output feature set : "features"



--> FOAM FATAL ERROR:
Cannnot read "pores.stl"

From function triSurface::read(const fileName&, const word&, const bool)
in file triSurface/triSurface.C at line 369.

FOAM exiting



What do you think????

thanks
gooya_kabir is offline   Reply With Quote

Old   August 26, 2013, 10:01
Default
  #6
Senior Member
 
Nima Sam
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,123
Blog Entries: 1
Rep Power: 14
nimasam is on a distinguished road
Send a message via Yahoo to nimasam
i have no idea, you may want to post your test case here, then OpenFOAM users can help you
__________________
Training Course on OpenFOAM at (http://www.isme.ir/)
My Weblog (http://openfoam.blogfa.com/)
nimasam is offline   Reply With Quote

Old   August 31, 2013, 17:13
Question same thing
  #7
Member
 
Reza
Join Date: Feb 2012
Posts: 63
Rep Power: 5
gooya_kabir is on a distinguished road
Hi friends,

As I told my problem, I could not use surfacefeature extract and above message come to my terminal after run. I tried with many cases and I got the same result!!! I uploaded one of the stl files. If you can see that what's the problem, it would be a great help for me.

Thank you in advance
Attached Files
File Type: gz last.stl.tar.gz (62.9 KB, 8 views)
gooya_kabir is offline   Reply With Quote

Old   September 1, 2013, 02:17
Default
  #8
Senior Member
 
Nima Sam
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,123
Blog Entries: 1
Rep Power: 14
nimasam is on a distinguished road
Send a message via Yahoo to nimasam
did you edit your surfaceFeatureExtractDict at all?
However, it works for me , i used OF-2.2.0, and i add working test case with your stl file

to use following test case:

1- open zip file
2- run script

Code:
./preAllrun
Attached Files
File Type: zip mold.zip (79.6 KB, 58 views)
__________________
Training Course on OpenFOAM at (http://www.isme.ir/)
My Weblog (http://openfoam.blogfa.com/)
nimasam is offline   Reply With Quote

Old   September 24, 2013, 05:28
Smile Thanks
  #9
Member
 
Reza
Join Date: Feb 2012
Posts: 63
Rep Power: 5
gooya_kabir is on a distinguished road
Many thanks for your help. As you helped me I could solve the problem. In my case, OF could not find the directory but it showed an error about not being able to read the file. I change the path and it work.
Now I generate the mesh, but since the surface structure is complicated, I do not know how to define the boundary (Wall type) on the surface. Is there any feature which help me to define the boundary on the surface?

Regards
gooya_kabir is offline   Reply With Quote

Reply

Tags
snappyhexmesh

Thread Tools
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 On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 15:34.