CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ANSYS Meshing & Geometry (https://www.cfd-online.com/Forums/ansys-meshing/)
-   -   [Other] ANSYS to Fluent mesh export in ASCII format (https://www.cfd-online.com/Forums/ansys-meshing/72929-ansys-fluent-mesh-export-ascii-format.html)

archeoptyrx May 4, 2013 01:35

hi Pei-Ying Hsieh ,

I am able to convert the 2D mesh created in workbench 14 to openfoam readable format fluentMeshToFoam flat.msh .
It automatically takes it in 3D which i found using Paraview .

Now here comes the problem .

I tried running blockMesh after that . IT shows some errors .

I checked the Run/try/constant/polymesh folder for blockmeshdict file .
it has all files like
1.boundary
2.owner
3.faces
4.cellzones
5.facezones
6.pointzones
7.points

but it did not have blockmeshDict .

Because of this it showed the error when i tried running blockMesh inside the respective folder.

So how can i proceed further to get the results . ??

Thanks
sud

phsieh2005 May 4, 2013 09:59

Hi,

After you converted the mesh to openFoam, you do not need to do blockMesh. Just open the boundary file to edit your boundary conditions.

Good luck!

Pei-Ying

nisha May 22, 2013 05:15

PSYMN,

How do I export mesh from ICEM CFD to ASCII format ? I'm using linux OS.
Alternatively, is there any way to convert .msh format to ASCII format ? Please help. Thanks.

PSYMN May 22, 2013 08:12

ICEM CFD native mesh files (*.uns) are only available in binary.

However, FLUENT mesh files (*.msh) are available in binary or ascii. ICEM CFD can read and write both...

So, there may be a better way to convert a binary *.msh file to an ASCII *.msh file, but one way to do it would be to read the binary file into ICEM CFD (File => Import Mesh), and the output (use output tab) it to Fluent as an ASCII file.

archeoptyrx July 6, 2013 03:26

1 Attachment(s)
Hi juaneco,

Quote:

Originally Posted by juaneco2710 (Post 414335)
In the Meshing module of Workbench, go to:

Tools -> Options -> Meshing -> Export

set the export format to ASCII. That's it! This worked for me for ANSYS 14.0 on Windows 8.

As you said , i tried finding this in the meshing module , there is no export option found in the meshing .

Take a look at this .

PSYMN July 6, 2013 11:33

You can set an environment variable to get the mesh in ASCII:

AWP_WRITE_FLUENT_MESH_ASCII=1

Marbau August 21, 2013 06:31

Hi,
I also want to export my mesh file as ASCII.
Unfortunately it doesn't work, neither with using the environmental variable nor with changing export to ASCII. The file is still saved as .msh.
Can anybody please help?

PSYMN August 26, 2013 12:44

The ASCII file still uses the .msh extension...

Did you try to open the file with a mesh editor? Let confirm that before we try anything else.

Marbau August 27, 2013 04:32

I tried to convert it using fluentMeshToFoam, but it didn't work.
Although it looks like the mesh is converted there is no output, just some empty text-files. And at the beginning of the converting there are always messages like "Embedded blocks in comment or unknown"...

itsme_kit January 6, 2014 12:37

Quote:

Originally Posted by PSYMN (Post 247917)
I asked the developer and she said...

You can set an environment variable to get the mesh in ASCII:

AWP_WRITE_FLUENT_MESH_ASCII=1

I haven't had time to try it out myself, so let us know how it works. ;)

Hi Simon

I'm not sure what the environment variable means

itsme_kit January 10, 2014 06:21

Quote:

Originally Posted by johannes (Post 247968)
Simon, you're the man! It works like a charm! Yeah! :D

Thank you very much for taking your time to forward my question.

Best regards,
Johannes

Hi

I wonder how to set the environment variable

Many thanks

itsme_kit January 10, 2014 10:05

Quote:

Originally Posted by phsieh2005 (Post 344158)
Hi, Alberto,

In Meshing, click "Tools", select "Options", then, click Export. You should see ANSYS Fluent. Next to "Format of input files (*.msh)", select ASCII (this is a pull down menu).

Have fun!

Pei-Ying

Finally I found this useful reply

Many thanks

zainb malik April 29, 2014 09:42

cfd
 
Quote:

Originally Posted by kingjewel1 (Post 274742)
Are you saying you export the mesh from within FLUENT? I'm using Gambit...

hi . while using gambit how did u import ur mesh file in fluent?? m facing problm wd it

kingjewel1 April 29, 2014 12:55

Quote:

Originally Posted by zainb malik (Post 488896)
hi . while using gambit how did u import ur mesh file in fluent?? m facing problm wd it

In gambit you need to export your mesh (in 3D) as a fluent 5 file. This is a .msh file.
File > Export > 3D Does that make sense?

mjthomp3 June 11, 2014 14:35

Hi everybody,

are we able to get a mesh file from Autoform software and read that
into ANSYS-FLUENT?

I would like to simulate at different times what is the pressure and velocity
for different meshes of the autorm mesh.

Peoban2 July 30, 2014 09:51

I got exactly the same problem, I got an academic 14.0 version and there is no such an export option in the meshing, and setting the environment variable doesnīt work either. Its the same binary format that fluentMeshToFoam canīt convert. Any clues?

Quote:

Originally Posted by archeoptyrx (Post 438079)
Hi juaneco,



As you said , i tried finding this in the meshing module , there is no export option found in the meshing .

Take a look at this .


nanavati September 24, 2014 11:43

Quote:

Originally Posted by johannes (Post 247968)
Simon, you're the man! It works like a charm! Yeah! :D

Thank you very much for taking your time to forward my question.

Best regards,
Johannes

Hi man,

I am also stucked with the same problem.

I changed the Environment Variable to 1 ! but its not working.

can you let me know how u did it ?

What I am trying to do is,

I made a Geometry in Catia > Exported as .igs file
Then imported that .igs file to Ansys Workbench.
Did the Meshing with Ansys Workbench Mesh.
then Exported it as .msh file.

then in linux terminal with Fluent3DMeshToFoam xyz.msh

but it is giving outout as,

Code:

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

Dimension of grid: 3
Number of points: 9362
Number of faces: 88497
Number of cells: 42058
--> FOAM Warning : Found unknown block of type: "3010"
    on line 14


--> FOAM FATAL ERROR:
Do not understand characters: B▒E
    on line 15

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

FOAM exiting

I doubt whether the conversion from Binary to ASCII has taken place or not ?

Can you please throw some light on it ?

---------------------
edit: Got the Solution. :)
Quote:

Originally Posted by itsme_kit (Post 469463)
Quote:

Originally Posted by phsieh2005 (Post 344158)
Hi, Alberto,

In Meshing, click "Tools", select "Options", then, click Export. You should see ANSYS Fluent. Next to "Format of input files (*.msh)", select ASCII (this is a pull down menu).

Have fun!

Pei-Ying

Finally I found this useful reply

Many thanks

Many Thanks for Sharing it man..

shivakumar January 1, 2015 13:08

:confused:
 
Will this code works in WB 14.0 and higher versions.??. I have set the environment variables and unable to read the mesh file in ASCII format. I opened mesh file in word pad, notepad and word but getting strange outputs..
Where I can read the mesh file correctly.??.

Any help would be appreciated..

Thanks in advance..

Shivakumar

Ayush Jain March 30, 2015 10:16

Even I wanted to convert binary mesh file to ascii format so to import in open foam.
Since i followed the instructions and made the environment variable but its not happening, I am using workbench 14.0

Please guide me with this issue...

JasonG March 30, 2015 10:38

I believe after R14.0 there is no need to change the environmental variable. However, there is a setting within the preferences/settings inside Workbench. I am not near my work pc to document the steps, but there should be a setting for mesh export in one of the system preferences menus.


All times are GMT -4. The time now is 08:14.