|
[Sponsors] |
[snappyHexMesh] snappyHexMesh stl file read problem |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 9, 2010, 07:23 |
snappyHexMesh stl file read problem
|
#1 |
New Member
Join Date: Mar 2010
Posts: 2
Rep Power: 0 |
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!!.. |
|
March 10, 2010, 03:35 |
|
#2 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Quote:
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?" |
||
March 12, 2010, 09:18 |
|
#3 |
New Member
Join Date: Mar 2010
Posts: 2
Rep Power: 0 |
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. |
|
April 1, 2010, 11:10 |
|
#4 |
New Member
Age Nammensma
Join Date: Mar 2009
Posts: 10
Rep Power: 17 |
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. |
|
June 25, 2011, 04:29 |
can not open .stl
|
#5 |
Member
|
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] Installation Problem with OF 6 version | Aurel | OpenFOAM Community Contributions | 14 | November 18, 2020 17:18 |
polynomial BC | srv537 | OpenFOAM Pre-Processing | 4 | December 3, 2016 10:07 |
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch | gschaider | OpenFOAM Installation | 225 | August 25, 2015 20:43 |
Problem compiling a custom Lagrangian library | brbbhatti | OpenFOAM Programming & Development | 2 | July 7, 2014 12:32 |
[swak4Foam] funkySetFields compilation error | tayo | OpenFOAM Community Contributions | 39 | December 3, 2012 06:18 |