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

[Other] fluentMeshToFoam error

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes
  • 5 Post By Time4Tea

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 25, 2019, 16:05
Default fluentMeshToFoam error
  #1
Senior Member
 
Lee Strobel
Join Date: Jun 2016
Posts: 133
Rep Power: 9
Time4Tea is on a distinguished road
Hi, I am trying to use fluentMeshToFoam to convert a fluent mesh to OpenFOAM format; however, when I run the program, I get the following error:


Code:
<a lot of output like the following:>

...
...

Found end of section in unknown:$
Embedded blocks in comment or unknown:
�Embedded blocks in comment or unknown:\�
Found end of section in unknown:�
��ݻFound end of section in unknown:?
]�Embedded blocks in comment or unknown:��
Found end of section in unknown:=
�Embedded blocks in comment or unknown:�
▒�E��UEmbedded blocks in comment or unknown:M�
Found end of section in unknown:�
�n�I

--> FOAM FATAL IO ERROR: 
wrong token type - expected int32_t, found on line 0 the punctuation token ')'

file: IStringStream.sourceFile at line 0.

    From function Foam::Istream &Foam::operator>>(Foam::Istream &, int &)
    in file primitives/ints/int32/int32IO.C at line 62.

FOAM exiting
Other OF applications (blockMesh, snappyHexMesh) seem to work fine and the .msh file opens fine in fluent. Does anyone know what the problem might be?
Time4Tea is offline   Reply With Quote

Old   July 2, 2019, 16:30
Default
  #2
Senior Member
 
Lee Strobel
Join Date: Jun 2016
Posts: 133
Rep Power: 9
Time4Tea is on a distinguished road
No-one has any idea about this?
Time4Tea is offline   Reply With Quote

Old   July 2, 2019, 16:45
Default
  #3
Senior Member
 
Lee Strobel
Join Date: Jun 2016
Posts: 133
Rep Power: 9
Time4Tea is on a distinguished road
I also tried using fluent3DMeshToFoam and got a different error, as shown below:


Code:
/*---------------------------------------------------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  6
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
Build  : 6
Exec   : fluent3DMeshToFoam 16_FTO_LRS6.msh
Date   : Jul 02 2019
Time   : 16:26:56
Host   : ***
PID    : ***
I/O    : uncollated
Case   : ***
nProcs : 1
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Dimension of grid: 3
Number of points: 2092605
Number of faces: 15563604
Number of cells: 7085600
--> FOAM Warning : Found unknown block of type: "3010"
    on line 14


--> FOAM FATAL ERROR: 
Do not understand characters: �
    on line 15

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

FOAM exiting
Line 15 appears to be where the binary data begins in the .msh file. Should I report this as a bug?
Time4Tea is offline   Reply With Quote

Old   July 2, 2019, 23:14
Default
  #4
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 15
Antimony is on a distinguished road
Hi,

Perhaps you want to check with another version of OF? If it works in say OF 5.x, then it is probably a bug in OF 6. Else, maybe something else is the issue.

Hope this helps.

Cheers,
Antimony
Antimony is offline   Reply With Quote

Old   July 3, 2019, 09:33
Default
  #5
Senior Member
 
Lee Strobel
Join Date: Jun 2016
Posts: 133
Rep Power: 9
Time4Tea is on a distinguished road
@Antimony: Thanks for your reply. I am using OF on a shared system and they only have versions 6 and 1.7.1 installed. I tried it with 1.7.1 and got exactly the same error about not understanding characters on line 15.


I also tried it with a much simpler mesh (literally just a simple tube) and got exactly the same thing.
Time4Tea is offline   Reply With Quote

Old   July 3, 2019, 13:21
Default
  #6
Senior Member
 
Lee Strobel
Join Date: Jun 2016
Posts: 133
Rep Power: 9
Time4Tea is on a distinguished road
Ah, I figured it out. In the ANSYS options, there is one that selects either binary or ASCII format for the mesh export. I changed it from binary to ASCII, re-exported the mesh and it now works fine.


I guess fluentMeshToFoam likes ASCII data, but not binary. Good to know
m.reza, OcQue, Sai Krishna and 2 others like this.
Time4Tea is offline   Reply With Quote

Old   July 3, 2019, 22:31
Default
  #7
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 15
Antimony is on a distinguished road
Hi,

Yes, most of the tools in OF prefer the ASCII format - especially the ones that deal with conversion.

Cheers,
Antimony
Antimony is offline   Reply With Quote

Old   July 30, 2021, 08:01
Default
  #8
New Member
 
saba basiri
Join Date: Jul 2021
Posts: 2
Rep Power: 0
saba* is on a distinguished road
Hi Time4Tea
I got exactly the same error, but my mesh format is ASCII and no binary. Do you have a solution to my problem?
saba* is offline   Reply With Quote

Reply

Tags
mesh, openfoam 6


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
[blockMesh] blockMesh with double grading. spwater OpenFOAM Meshing & Mesh Conversion 92 January 12, 2019 09:00
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM Community Contributions 300 October 29, 2014 18:00
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 09:17
Errors in UDF shashank312 Fluent UDF and Scheme Programming 6 May 30, 2013 20:30
Ansys Fluent 13.0 UDF compilation problem in Window XP (32 bit) Yogini Fluent UDF and Scheme Programming 7 October 3, 2012 07:24


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