|
[Sponsors] |
[snappyHexMesh] SnappyHexMesh error: "expected but found" ... "readSTLASCII.L" |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 5, 2014, 05:33 |
SnappyHexMesh error: "expected but found" ... "readSTLASCII.L"
|
#1 |
New Member
federico rovere
Join Date: May 2013
Posts: 11
Rep Power: 13 |
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 paraview can open it. What i have to do? Thanks a lot. |
|
December 5, 2014, 13:35 |
|
#2 |
Senior Member
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 621
Rep Power: 0 |
Just for fun, try taking your STL and run something like:
Code:
surfaceMeshConvert input.stl someNameForOutput.stl |
|
December 6, 2014, 13:16 |
|
#3 |
New Member
federico rovere
Join Date: May 2013
Posts: 11
Rep Power: 13 |
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 |
|
December 8, 2014, 06:13 |
|
#4 |
Senior Member
|
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? |
|
December 8, 2014, 06:32 |
|
#5 |
New Member
federico rovere
Join Date: May 2013
Posts: 11
Rep Power: 13 |
Thanks for your reply.
I saved data with paraview, but the problem still exist. My surface has 0 cells. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.com] Issue configuring ./makeParaView - Ubuntu 16.04 | bjdarrer | OpenFOAM Installation | 2 | April 20, 2020 14:50 |
problem during mpi in server: expected Scalar, found on line 0 the word 'nan' | muth | OpenFOAM Running, Solving & CFD | 3 | August 27, 2018 05:18 |
error in fireFoam, when running the case wallFireSpread2D | zhoubiao1088 | OpenFOAM Running, Solving & CFD | 9 | February 1, 2018 19:45 |
[Other] How to create an MRF zone ? | aminem | OpenFOAM Meshing & Mesh Conversion | 2 | December 8, 2014 11:45 |
critical error during installation of openfoam | Fabio88 | OpenFOAM Installation | 21 | June 2, 2010 04:01 |