CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Saving fluent file as (.mesh ascii) so I can convert it to OpenFOAM (https://www.cfd-online.com/Forums/fluent/243506-saving-fluent-file-mesh-ascii-so-i-can-convert-openfoam.html)

openfoamer93 June 22, 2022 11:23

Saving fluent file as (.mesh ascii) so I can convert it to OpenFOAM
 
3 Attachment(s)
Dear All,

How to save a fluent mesh (.mesh) in ascii format so I can convet it in openfoam using fluent3DMeshToFoam?

I use workbench, so I start from geometry, then mesh, when I finish the mesh it automatically save it in the path shown in Figure 3, there is no even choice to save as .mesh!

The mesh file show in Figure 2 is binary and openfoam cannot read it:

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

Reading header: "ANSYS(R) TGLib(TM) 3D, revision 18.1.0"
Dimension of grid: 3
Number of points: 10279396
--> FOAM Warning : Found unknown block of type: "11"
on line 18
Number of faces: 13523098
Number of cells: 2543034
--> FOAM Warning : Found unknown block of type: "3010"
on line 21


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

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

FOAM exiting


But the mesh (.mesh) file in figure 1 (created by someone else I don't know) is working fine!

Please help me

LuckyTran June 22, 2022 14:47

fluent3DMeshToFoam operates on a .msh or the .cas file. You can simlpy use the case file. I don't know if the foam utility is updated in recent versions, but just save using the legacy .cas format and not the .cas.h5 format. And uncheck the binary box when you save.


To get a .msh file you need to go back to the meshing utility, i.e. ICEM and open the mesh and export it. Fluent will not write a .msh format.


All times are GMT -4. The time now is 23:35.