CFD Online URL
[Sponsors]
Home > Forums > OpenFOAM Native Meshers: snappyHexMesh and Others

snappyHexMesh stl file read problem

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 9, 2010, 07:23
Default snappyHexMesh stl file read problem
  #1
New Member
 
Join Date: Mar 2010
Posts: 2
Rep Power: 0
joeholdsworth is on a distinguished road
Hi,

I am trying to use the motorbike sHM tutorial as a base point for my project.

I have replaced the motorBike.stl file with my .stl file which i renamed as motorBike.stl to avoid having to change the sHM dic file too much.

I then edited the sHM dic file making the following changes ...

1. // refinementBox i commented this part out for now
// {
// type searchableBox;
// min (-1.0 -0.7 0.0);
// max ( 8.0 0.7 2.5);
// }

2. locationInMesh (3 0 4); //this is so my model is in the middle of the mesh

3. layers // i'm not shore i changed this to the correct value..?
{
motorBike_OBJECT
{
nSurfaceLayers 1;
}
}

... "blockMesh" works fine..

then when i type snappyHexMesh i get this error...


while reading solid on line 275620
expected 'solid', 'color', 'facet' or 'endsolid' but found 'Point(1) = {0, 0, 0};'

From function triSurface::readSTLASCII(const fileName& STLfileName)
in file triSurface/interfaces/STL/readSTLASCII.L at line 369.

FOAM exiting

...help me!!..
joeholdsworth is offline   Reply With Quote

Old   March 10, 2010, 03:35
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: http://olesenm.github.io/
Posts: 777
Rep Power: 17
olesen will become famous soon enough
Quote:
Originally Posted by joeholdsworth View Post
then when i type snappyHexMesh i get this error...

while reading solid on line 275620
expected 'solid', 'color', 'facet' or 'endsolid' but found 'Point(1) = {0, 0, 0};'

From function triSurface::readSTLASCII(const fileName& STLfileName)
in file triSurface/interfaces/STL/readSTLASCII.L at line 369.

FOAM exiting

...help me!!..
I think it's a safe guess that your STL file isn't STL at all.
Take a look at your file and compare it to the STL format (http://en.wikipedia.org/wiki/STL_%28file_format%29), you'll see that it doesn't match.

The question is "what format do you actually have?"
olesen is offline   Reply With Quote

Old   March 12, 2010, 09:18
Default
  #3
New Member
 
Join Date: Mar 2010
Posts: 2
Rep Power: 0
joeholdsworth is on a distinguished road
Hi Mark,

thank you very much for taking the time to reply...

You are indeed right, its funny becuase i could open my stl model using gmsh ok, so i assumed that the .stl file was fine.

Anyway the solution was to save it in gmesh again making sure stl format was selected, this worked.
joeholdsworth is offline   Reply With Quote

Old   April 1, 2010, 11:10
Default
  #4
New Member
 
Age Nammensma
Join Date: Mar 2009
Posts: 10
Rep Power: 7
squadron is on a distinguished road
Some programs that create .stl's do not create the entries:
solid "name"
endsolid "name"

at the top and bottom of the file respectively.
Open the .stl file in a text editor and add these entries manually will solve the problem.

Other programs create wrong entries. Deleting them in a text editor will solve the problems.

If a .stl file is very large, you can write a script to delete or add required text.
squadron is offline   Reply With Quote

Old   June 25, 2011, 04:29
Default can not open .stl
  #5
Member
 
s.rasoul_varedi
Join Date: Feb 2010
Posts: 82
Rep Power: 5
desert_1250 is an unknown quantity at this point
Send a message via Yahoo to desert_1250
hello all
i have .stl file that created with MATLAB, but when i import it in GAMBIT or another visualized software such as NETGEN, STL viewer, dont appear any thing, why this happen? i am very confused
desert_1250 is offline   Reply With Quote

Reply

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
STL File - Mesh Surface Problems Harmeet FLUENT 8 May 13, 2010 22:59
Paraview command not found hardy OpenFOAM Paraview & paraFoam 7 September 18, 2008 05:59
gcc and executable file from Mac to Linux simone Marras Main CFD Forum 0 April 8, 2007 16:49
how to read a gridpro 2d file into starcd shell prc CD-adapco 3 December 21, 2006 19:59
Why I can't read one external file? Lee CD-adapco 7 April 2, 2004 12:25


All times are GMT -4. The time now is 19:44.