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

SnappyHexMesh error: "expected but found" ... "readSTLASCII.L"

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

Reply
 
LinkBack Thread Tools Display Modes
Old   December 5, 2014, 05:33
Default SnappyHexMesh error: "expected but found" ... "readSTLASCII.L"
  #1
New Member
 
federico rovere
Join Date: May 2013
Posts: 3
Rep Power: 4
Rovs is on a distinguished road
Hi there!
I'm tryng to meshing a cone-cylinder geometry using snappyhexmesh.
Something goes wrong.
I use blockMesh for the background mesh,and then snappy.

Code:
--> FOAM FATAL ERROR: 
while error on line 1
    expected  but found '��n?%��ff@�s�=I��<33�>;�=���<ff@�G�=�X=°s?+ۜ�33�>;�=���<33�>'

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

FOAM exiting
I do .stl file with solidworks.
paraview can open it. What i have to do?

Thanks a lot.
Rovs is offline   Reply With Quote

Old   December 5, 2014, 13:35
Default
  #2
Senior Member
 
chegdan's Avatar
 
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 559
Rep Power: 18
chegdan will become famous soon enough
Just for fun, try taking your STL and run something like:

Code:
surfaceMeshConvert input.stl someNameForOutput.stl
(substitute the correct names of course) to see if you can convert the file. I see this error when the "ASCII" stl is not really an ASCII file but a binary file. This utility will take your file, convert, and output a true ASCII file....in theory.
__________________
Dan

Find me on twitter @dancombest and LinkedIn
chegdan is offline   Reply With Quote

Old   December 6, 2014, 13:16
Default
  #3
New Member
 
federico rovere
Join Date: May 2013
Posts: 3
Rep Power: 4
Rovs is on a distinguished road
Thanks for your reply!

It seemed to work, snappyhexmesh goes ,but with CheckMesh i noticed that my new Surface has 0 cells...how could it happen?

Code:
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.3.0                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 2.3.0-f5222ca19ce6
Exec   : checkMesh
Date   : Dec 06 2014
Time   : 18:13:31
Host   : "federico-S551LB"
PID    : 3186
Case   : /home/federico/Documenti/skyward/CFD/SnappyHexMesh
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

Create polyMesh for time = 1

Time = 1

Mesh stats
    points:           1307851
    faces:            3851136
    internal faces:   3779712
    cells:            1271808
    faces per cell:   6
    boundary patches: 7
    point zones:      0
    face zones:       0
    cell zones:       0

Overall number of cells of each type:
    hexahedra:     1271808
    prisms:        0
    wedges:        0
    pyramids:      0
    tet wedges:    0
    tetrahedra:    0
    polyhedra:     0

Checking topology...
    Boundary definition OK.
    Cell to face addressing OK.
    Point usage OK.
    Upper triangular ordering OK.
    Face vertices OK.
    Number of regions: 1 (OK).

Checking patch topology for multiply connected surfaces...
    Patch               Faces    Points   Surface topology                  
    outlet              9216     9409     ok (non-closed singly connected)  
    inlet               9216     9409     ok (non-closed singly connected)  
    bottom              13248    13483    ok (non-closed singly connected)  
    top                 13248    13483    ok (non-closed singly connected)  
    front               13248    13483    ok (non-closed singly connected)  
    back                13248    13483    ok (non-closed singly connected)  
    rocket              0        0        ok (empty)                        

Checking geometry...
    Overall domain bounding box (-900 -150 -150) (900 150 150)
    Mesh (non-empty, non-wedge) directions (1 1 1)
    Mesh (non-empty) directions (1 1 1)
    Boundary openness (0 -8.74514e-18 8.74514e-18) OK.
    Max cell openness = 1.89478e-16 OK.
    Max aspect ratio = 4.17408 OK.
    Minimum face area = 9.76562. Maximum face area = 40.7625.  Face area magnitudes OK.
    Min volume = 127.373. Max volume = 127.383.  Total volume = 1.62e+08.  Cell volumes OK.
    Mesh non-orthogonality Max: 0 average: 0
    Non-orthogonality check OK.
    Face pyramids OK.
    Max skewness = 6.97305e-14 OK.
    Coupled point location match (average 0) OK.

Mesh OK.

Time = 2

Mesh stats
    points:           1307851
    faces:            3851136
    internal faces:   3779712
    cells:            1271808
    faces per cell:   6
    boundary patches: 7
    point zones:      0
    face zones:       0
    cell zones:       0

Overall number of cells of each type:
    hexahedra:     1271808
    prisms:        0
    wedges:        0
    pyramids:      0
    tet wedges:    0
    tetrahedra:    0
    polyhedra:     0

Checking topology...
    Boundary definition OK.
    Cell to face addressing OK.
    Point usage OK.
    Upper triangular ordering OK.
    Face vertices OK.
    Number of regions: 1 (OK).

Checking patch topology for multiply connected surfaces...
    Patch               Faces    Points   Surface topology                  
    outlet              9216     9409     ok (non-closed singly connected)  
    inlet               9216     9409     ok (non-closed singly connected)  
    bottom              13248    13483    ok (non-closed singly connected)  
    top                 13248    13483    ok (non-closed singly connected)  
    front               13248    13483    ok (non-closed singly connected)  
    back                13248    13483    ok (non-closed singly connected)  
    rocket              0        0        ok (empty)                        

Checking geometry...
    Overall domain bounding box (-900 -150 -150) (900 150 150)
    Mesh (non-empty, non-wedge) directions (1 1 1)
    Mesh (non-empty) directions (1 1 1)
    Boundary openness (0 -8.74514e-18 8.74514e-18) OK.
    Max cell openness = 1.89478e-16 OK.
    Max aspect ratio = 4.17408 OK.
    Minimum face area = 9.76562. Maximum face area = 40.7625.  Face area magnitudes OK.
    Min volume = 127.373. Max volume = 127.383.  Total volume = 1.62e+08.  Cell volumes OK.
    Mesh non-orthogonality Max: 0 average: 0
    Non-orthogonality check OK.
    Face pyramids OK.
    Max skewness = 6.97305e-14 OK.
    Coupled point location match (average 0) OK.

Mesh OK.

Time = 3

Mesh stats
    points:           1307851
    faces:            3851136
    internal faces:   3779712
    cells:            1271808
    faces per cell:   6
    boundary patches: 7
    point zones:      0
    face zones:       0
    cell zones:       0

Overall number of cells of each type:
    hexahedra:     1271808
    prisms:        0
    wedges:        0
    pyramids:      0
    tet wedges:    0
    tetrahedra:    0
    polyhedra:     0

Checking topology...
    Boundary definition OK.
    Cell to face addressing OK.
    Point usage OK.
    Upper triangular ordering OK.
    Face vertices OK.
    Number of regions: 1 (OK).

Checking patch topology for multiply connected surfaces...
    Patch               Faces    Points   Surface topology                  
    outlet              9216     9409     ok (non-closed singly connected)  
    inlet               9216     9409     ok (non-closed singly connected)  
    bottom              13248    13483    ok (non-closed singly connected)  
    top                 13248    13483    ok (non-closed singly connected)  
    front               13248    13483    ok (non-closed singly connected)  
    back                13248    13483    ok (non-closed singly connected)  
    rocket              0        0        ok (empty)                        

Checking geometry...
    Overall domain bounding box (-900 -150 -150) (900 150 150)
    Mesh (non-empty, non-wedge) directions (1 1 1)
    Mesh (non-empty) directions (1 1 1)
    Boundary openness (0 -8.74514e-18 8.74514e-18) OK.
    Max cell openness = 1.89478e-16 OK.
    Max aspect ratio = 4.17408 OK.
    Minimum face area = 9.76562. Maximum face area = 40.7625.  Face area magnitudes OK.
    Min volume = 127.373. Max volume = 127.383.  Total volume = 1.62e+08.  Cell volumes OK.
    Mesh non-orthogonality Max: 0 average: 0
    Non-orthogonality check OK.
    Face pyramids OK.
    Max skewness = 6.97305e-14 OK.
    Coupled point location match (average 0) OK.

Mesh OK.

End
Rovs is offline   Reply With Quote

Old   December 8, 2014, 06:13
Default
  #4
Senior Member
 
Jens Höpken
Join Date: Apr 2009
Location: Duisburg, Germany
Posts: 156
Rep Power: 8
jhoepken is on a distinguished road
Send a message via Skype™ to jhoepken
This happens because binary STLs seem not to be that compatible to snappy & Co. So always use the ascii version of it. You can also convert them via paraview (save data).
__________________
Blog: sourceflux.de/blog
"The OpenFOAM Technology Primer": sourceflux.de/book
Twitter: @sourceflux_de
Interested in courses on OpenFOAM?
jhoepken is offline   Reply With Quote

Old   December 8, 2014, 06:32
Default
  #5
New Member
 
federico rovere
Join Date: May 2013
Posts: 3
Rep Power: 4
Rovs is on a distinguished road
Thanks for your reply.

I saved data with paraview, but the problem still exist.
My surface has 0 cells.
Rovs 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
CGNS converters available mbeaudoin OpenFOAM Meshing & Mesh Conversion 126 January 14, 2016 10:01
How to create an MRF zone ? aminem OpenFOAM Meshing & Mesh Conversion 2 December 8, 2014 11:45
OpenFOAM on cluster: version GLIBCXX_3.4.9 and GLIBCXX_3.4.11 not found ovie OpenFOAM 9 October 15, 2012 01:59
wmake error zxj160 OpenFOAM 0 March 26, 2012 10:52
critical error during installation of openfoam Fabio88 OpenFOAM Installation 21 June 2, 2010 03:01


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