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

[surface handling] surfaceFeatureExtract surface.stl

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By nimasam

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 22, 2013, 12:09
Lightbulb surfaceFeatureExtract surface.stl
  #1
Member
 
Reza
Join Date: Feb 2012
Posts: 67
Rep Power: 14
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, 17:43
Default
  #2
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25
nimasam is on a distinguished road
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
__________________
My Personal Website (http://nimasamkhaniani.ir/)
Telegram channel (https://t.me/cfd_foam)
nimasam is offline   Reply With Quote

Old   August 22, 2013, 18:43
Smile many thanks
  #3
Member
 
Reza
Join Date: Feb 2012
Posts: 67
Rep Power: 14
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, 12:13
Default
  #4
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25
nimasam is on a distinguished road
Open your STL file in paraview and save in in STL format ASCII one
istrate likes this.
__________________
My Personal Website (http://nimasamkhaniani.ir/)
Telegram channel (https://t.me/cfd_foam)
nimasam is offline   Reply With Quote

Old   August 26, 2013, 05:02
Question same error
  #5
Member
 
Reza
Join Date: Feb 2012
Posts: 67
Rep Power: 14
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, 11:01
Default
  #6
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25
nimasam is on a distinguished road
i have no idea, you may want to post your test case here, then OpenFOAM users can help you
__________________
My Personal Website (http://nimasamkhaniani.ir/)
Telegram channel (https://t.me/cfd_foam)
nimasam is offline   Reply With Quote

Old   August 31, 2013, 18:13
Question same thing
  #7
Member
 
Reza
Join Date: Feb 2012
Posts: 67
Rep Power: 14
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, 27 views)
gooya_kabir is offline   Reply With Quote

Old   September 1, 2013, 03:17
Default
  #8
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25
nimasam is on a distinguished road
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, 142 views)
__________________
My Personal Website (http://nimasamkhaniani.ir/)
Telegram channel (https://t.me/cfd_foam)
nimasam is offline   Reply With Quote

Old   September 24, 2013, 06:28
Smile Thanks
  #9
Member
 
Reza
Join Date: Feb 2012
Posts: 67
Rep Power: 14
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

Old   February 15, 2016, 11:54
Default surfaceFeatureExtract not working in OpenFOAM-v3.0+
  #10
Member
 
R. P.
Join Date: Jul 2010
Posts: 73
Rep Power: 16
Rophys is on a distinguished road
Hi all,

I am trying to use the surfaceFeatureExtract in the motorBike (OpenFOAM-v3.0+) tutorial case; however it is not working. It always says "command not found".

Do you know if the surfaceFeatureExtract still in use in OpenFOAM-v3.0+ ? How to solve this problem ?

Thanks.
Rophys is offline   Reply With Quote

Old   April 6, 2016, 13:15
Default surfaceFeatureExtract with OpenFOAM-v3.0+
  #11
New Member
 
Join Date: Feb 2015
Posts: 5
Rep Power: 11
maryCFD is on a distinguished road
Hi Rophys,

I can assure you that surfaceFeatureExtract still works in OpenFOAM-v3.0+.
But I don't know what is wrong with it in your case. Can you post more details ? Are you sure of your installation ?

Mary
maryCFD is offline   Reply With Quote

Old   April 6, 2016, 13:39
Default
  #12
Member
 
R. P.
Join Date: Jul 2010
Posts: 73
Rep Power: 16
Rophys is on a distinguished road
Hi Mary,

Thanks for that. I already solved the problem =)

Cheers,

Rodrigo
Rophys is offline   Reply With Quote

Old   April 24, 2016, 16:14
Default
  #13
New Member
 
Ruzic
Join Date: Jun 2011
Location: Novi Sad
Posts: 4
Rep Power: 15
Ruzic is on a distinguished road
Hi,

I have also the same problem with command surfaceFeatureExtract, and got message command not found, on OpenFOAM-v3.0+.

What to do?

Thanks
Ruzic is offline   Reply With Quote

Old   June 3, 2016, 06:11
Default
  #14
New Member
 
Julien Schaguene
Join Date: Sep 2014
Posts: 5
Rep Power: 12
JulienS is on a distinguished road
Hi all,

I also have the problem with "command not find". My installation looks correct, solvers work fine apart of that.
Rophys, how did you solve the problem?

Best regards

Julien
JulienS is offline   Reply With Quote

Old   June 7, 2016, 12:01
Default
  #15
Member
 
Eric Robertson
Join Date: Jul 2012
Posts: 95
Rep Power: 15
msuaeronautics is on a distinguished road
I am having this same issue with 3.0+. Considering rolling back to a previous version, but if it is assured to work then I am not sure how to fix the problem.
msuaeronautics is offline   Reply With Quote

Old   October 6, 2016, 23:23
Default
  #16
New Member
 
TeiGyou
Join Date: Oct 2016
Location: Tokyo,Japan
Posts: 20
Rep Power: 10
zxzx is on a distinguished road
I have also the same problem with command surfaceFeatureExtract, and got message command not found, on OpenFOAM4.0.

Please tell me how to solve it.

Thanks

ZX
zxzx is offline   Reply With Quote

Old   October 9, 2016, 03:47
Default
  #17
New Member
 
Ruzic
Join Date: Jun 2011
Location: Novi Sad
Posts: 4
Rep Power: 15
Ruzic is on a distinguished road
I solved the issue by removing the installation and installed it again. Now works.
Ruzic is offline   Reply With Quote

Old   October 10, 2016, 00:22
Default
  #18
New Member
 
TeiGyou
Join Date: Oct 2016
Location: Tokyo,Japan
Posts: 20
Rep Power: 10
zxzx is on a distinguished road
Thanks, I did it too. Now it works
zxzx is offline   Reply With Quote

Reply

Tags
snappyhexmesh


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



All times are GMT -4. The time now is 20:31.