View Issue Details

IDProjectCategoryView StatusLast Update
0003330OpenFOAMBugpublic2019-08-19 11:08
Reporterjoegi Assigned Tohenry  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformlinuxOSOpenSuSEOS Version15.1
Fixed in Versiondev 
Summary0003330: fluent3DMeshToFoam -> Do not understand characters: ;
DescriptionWhen converting 3D meshes generated using Ansys workbench or Fluent mesher, it gives the following error:

> FOAM FATAL ERROR:
Do not understand characters: ;
    on line 6101

    From function virtual int yyFlexLexer::yylex()
    in file fluent3DMeshToFoam.L at line 748.

FOAM exiting



The error is related to a semi-colon. I think I started to see this problem after Ansys version 17 (I guess they changed something in the format). This error happens with any kind of cell type, and input file (.case or .msh).

To fix this issue, I just use sed to erase the offending semi-colon (just two):

sed -i 's/;/ /g' input_file.cas


Steps To ReproduceIn the attached case, try to convert the mesh poly1.cas,

         fluent3DMeshToFoam poly1.cas



and you will get the error:

--> FOAM FATAL ERROR:
Do not understand characters: ;
    on line 6101

    From function virtual int yyFlexLexer::yylex()
    in file fluent3DMeshToFoam.L at line 748.

FOAM exiting



To fix the problem use sed as follows (be sure to backup the mesh first):

sed -i 's/;/ /g' polu1.cas


So far the workaround using sed seems to work fine (I have use it with meshes upto 200 million cells).
TagsNo tags attached.

Activities

joegi

2019-08-19 07:13

reporter   ~0010677

case
dummy.tar.gz (164,550 bytes)

henry

2019-08-19 11:08

manager   ~0010679

Resolved by commit c61a66fc0021a11fe4f71178c737b7e5bb352b38

Issue History

Date Modified Username Field Change
2019-08-19 06:53 joegi New Issue
2019-08-19 07:13 joegi File Added: dummy.tar.gz
2019-08-19 07:13 joegi Note Added: 0010677
2019-08-19 11:08 henry Assigned To => henry
2019-08-19 11:08 henry Status new => resolved
2019-08-19 11:08 henry Resolution open => fixed
2019-08-19 11:08 henry Fixed in Version => dev
2019-08-19 11:08 henry Note Added: 0010679