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

[snappyHexMesh] snappyHexMesh stl file read problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 9, 2010, 06: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, 02:35
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,685
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
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, 08: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, 10:10
Default
  #4
New Member
 
Age Nammensma
Join Date: Mar 2009
Posts: 10
Rep Power: 17
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, 03:29
Default can not open .stl
  #5
Member
 
s.rasoul_varedi
Join Date: Feb 2010
Posts: 82
Rep Power: 15
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


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] Installation Problem with OF 6 version Aurel OpenFOAM Community Contributions 14 November 18, 2020 16:18
polynomial BC srv537 OpenFOAM Pre-Processing 4 December 3, 2016 09:07
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 19:43
Problem compiling a custom Lagrangian library brbbhatti OpenFOAM Programming & Development 2 July 7, 2014 11:32
[swak4Foam] funkySetFields compilation error tayo OpenFOAM Community Contributions 39 December 3, 2012 05:18


All times are GMT -4. The time now is 18:01.