CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [Commercial meshers] Fluent3DMeshToFoam (https://www.cfd-online.com/Forums/openfoam-meshing/61672-fluent3dmeshtofoam.html)

makaveli_lcf March 25, 2012 08:39

You need *.msh file not the *.cas

hei@ge March 25, 2012 08:46

.cas file is ok.it is got through fluent not gambit.i git .msh file through gambit is not ok.i use .msh file also get error:--> FOAM FATAL ERROR:
Do not understand characters:
on line 1066402

From function fluentMeshToFoam::lexer
in file fluent3DMeshToFoam.L at line 747.

FOAM exiting

hei@ge March 25, 2012 08:48

can you tell me how to use dos2unix and how to install it? Tanks a lot.

sitekss May 7, 2012 10:46

Hello Foamers,
I just played with environmental variables AWP_WRITE_FLUENT_MESH_ASCII=1 and other configurations like WORKBENCH, ANSYS_FLUENT etc. but it doesn't work with v14.0 of Ansys Workbench. Any suggestions?
BR,
Adam

wyldckat May 7, 2012 12:54

Greetings sitekss,

Quote:

Originally Posted by sitekss (Post 359757)
I just played with environmental variables AWP_WRITE_FLUENT_MESH_ASCII=1 and other configurations like WORKBENCH, ANSYS_FLUENT etc. but it doesn't work with v14.0 of Ansys Workbench. Any suggestions?

OK, no error message... I'll have to guess the problem:
Best regards,
Bruno

sitekss May 8, 2012 05:20

Thank you wyldckat for a fast replay. It is not exactly what I'm looking for because now I can't cope with export .msh file in ASCII format (when I open it I can see a lot of #$%@ except 'normal' numbers), so my intence is to find a way for export in ASCII from Ansys Fluent.
BR
Adam

sitekss May 14, 2012 04:57

Hi,
I still can't export mesh from Ansys Workbench v.14 in ASCII format. Fluent can only export boundary mesh (.msh extension too) in ASCII, but it is impossible (?) to export volume mesh. I can do it from mesher, but in binary format. Any solution?
BR,
Adam

falke126 May 14, 2012 05:08

In R14 you donīt need to set an env variable...

In ANsys Meshing: Under Tools>Options>Meshing>Export you can set the Fluent format to ASCII

sitekss May 14, 2012 05:20

This is it! Thanks a lot. Your reply was incredibly fast and precise.

gsaisankar July 2, 2018 22:50

Errors while using fluent 3DMeshToFoam
 
Dear All,

I am new to OpenFOAM and when I tried loading a mesh file that was generated in fluent using fluent3dMeshToFoam i had the below mentioned error and warning. Could someone clarify?

" Number of points: 1324330
Number of faces: 3994574
Number of cells: 1333566
--> FOAM Warning : Found unknown block of type: "3010"
on line 14


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

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

Also, fluentMeshToFoam threw me the error "Illegal hex digit: '' ".

Thanks for the help.

gaza January 19, 2020 15:33

1 Attachment(s)
Quote:

Originally Posted by gsaisankar (Post 697979)
Dear All,

I am new to OpenFOAM and when I tried loading a mesh file that was generated in fluent using fluent3dMeshToFoam i had the below mentioned error and warning. Could someone clarify?

" Number of points: 1324330
Number of faces: 3994574
Number of cells: 1333566
--> FOAM Warning : Found unknown block of type: "3010"
on line 14


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

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

Also, fluentMeshToFoam threw me the error "Illegal hex digit: '' ".

Thanks for the help.


One of my student found a solution. It is below:


Basically, the Ansys time to time block the license if we work a lot inside. It means it stops to work properly. Somebody cannot run the solver, for me, it was the mesh export. I was looking for the solution, and we just have to use command prompt to reset the files (reinstall would work as well, but we do not have to reinstall).


In this case, we have to open CMD, and type

--- move "%appdata%\ansys" "%appdata%\ansys.old" ---


and


--- "%USERPROFILE%\.cfx" "%USERPROFILE%\cfx_old" ---


When I started the program again, it started to offer me the tutorials, so basically it is the reset program.





And I also found the solution of exporting mesh from Spaceclaim directly to OpenFoam with fluent mesh (.msh) without ICEM process.


The only thing you should do is:


Go to workbench, start a "Fluid Flow (Fluent)" work.
After that, go to the Mesh and edit it, and go to the "Option".
In the "Option", go to the export and at the tab of "ANSYS FLUENT" change the "Format of Input File (*.msh) from Binary to ASCII.
I attached a picture as well!

It is gonna work, because Openfoam uses ascii formats, not binary.


All times are GMT -4. The time now is 04:59.