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

[Other] ANSYS to Fluent mesh export in ASCII format

Register Blogs Community New Posts Updated Threads Search

Like Tree21Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 4, 2013, 00:35
Default
  #41
Member
 
sandy
Join Date: May 2013
Posts: 91
Rep Power: 12
archeoptyrx is on a distinguished road
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
archeoptyrx is offline   Reply With Quote

Old   May 4, 2013, 08:59
Default
  #42
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18
phsieh2005 is on a distinguished road
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
phsieh2005 is offline   Reply With Quote

Old   May 22, 2013, 04:15
Default
  #43
New Member
 
Nisha
Join Date: Sep 2009
Location: Massachusetts
Posts: 18
Rep Power: 16
nisha is on a distinguished road
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.
nisha is offline   Reply With Quote

Old   May 22, 2013, 07:12
Default
  #44
Senior Member
 
PSYMN's Avatar
 
Simon Pereira
Join Date: Mar 2009
Location: Ann Arbor, MI
Posts: 2,663
Blog Entries: 1
Rep Power: 47
PSYMN has a spectacular aura aboutPSYMN has a spectacular aura about
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.
__________________
-----------------------------------------
Please help guide development at ANSYS by filling in these surveys

Public ANSYS ICEM CFD Users Survey

This second one is more general (Gambit, TGrid and ANSYS Meshing users welcome)...

CFD Online Users Survey
PSYMN is offline   Reply With Quote

Old   July 6, 2013, 02:26
Default
  #45
Member
 
sandy
Join Date: May 2013
Posts: 91
Rep Power: 12
archeoptyrx is on a distinguished road
Hi juaneco,

Quote:
Originally Posted by juaneco2710 View Post
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 .
Attached Images
File Type: jpg Untitled.jpg (54.3 KB, 107 views)
archeoptyrx is offline   Reply With Quote

Old   July 6, 2013, 10:33
Default
  #46
Senior Member
 
PSYMN's Avatar
 
Simon Pereira
Join Date: Mar 2009
Location: Ann Arbor, MI
Posts: 2,663
Blog Entries: 1
Rep Power: 47
PSYMN has a spectacular aura aboutPSYMN has a spectacular aura about
You can set an environment variable to get the mesh in ASCII:

AWP_WRITE_FLUENT_MESH_ASCII=1
__________________
-----------------------------------------
Please help guide development at ANSYS by filling in these surveys

Public ANSYS ICEM CFD Users Survey

This second one is more general (Gambit, TGrid and ANSYS Meshing users welcome)...

CFD Online Users Survey
PSYMN is offline   Reply With Quote

Old   August 21, 2013, 05:31
Default
  #47
New Member
 
Join Date: Feb 2013
Posts: 11
Rep Power: 13
Marbau is on a distinguished road
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?
Marbau is offline   Reply With Quote

Old   August 26, 2013, 11:44
Default
  #48
Senior Member
 
PSYMN's Avatar
 
Simon Pereira
Join Date: Mar 2009
Location: Ann Arbor, MI
Posts: 2,663
Blog Entries: 1
Rep Power: 47
PSYMN has a spectacular aura aboutPSYMN has a spectacular aura about
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.
__________________
-----------------------------------------
Please help guide development at ANSYS by filling in these surveys

Public ANSYS ICEM CFD Users Survey

This second one is more general (Gambit, TGrid and ANSYS Meshing users welcome)...

CFD Online Users Survey
PSYMN is offline   Reply With Quote

Old   August 27, 2013, 03:32
Default
  #49
New Member
 
Join Date: Feb 2013
Posts: 11
Rep Power: 13
Marbau is on a distinguished road
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"...
Marbau is offline   Reply With Quote

Old   January 6, 2014, 11:37
Default
  #50
Senior Member
 
Join Date: Jan 2012
Posts: 197
Rep Power: 14
itsme_kit is on a distinguished road
Quote:
Originally Posted by PSYMN View Post
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 is offline   Reply With Quote

Old   January 10, 2014, 05:21
Default
  #51
Senior Member
 
Join Date: Jan 2012
Posts: 197
Rep Power: 14
itsme_kit is on a distinguished road
Quote:
Originally Posted by johannes View Post
Simon, you're the man! It works like a charm! Yeah!

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 is offline   Reply With Quote

Old   January 10, 2014, 09:05
Default
  #52
Senior Member
 
Join Date: Jan 2012
Posts: 197
Rep Power: 14
itsme_kit is on a distinguished road
Quote:
Originally Posted by phsieh2005 View Post
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
nanavati likes this.
itsme_kit is offline   Reply With Quote

Old   April 29, 2014, 08:42
Default cfd
  #53
New Member
 
zainb
Join Date: Apr 2014
Posts: 1
Rep Power: 0
zainb malik is on a distinguished road
Quote:
Originally Posted by kingjewel1 View Post
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
zainb malik is offline   Reply With Quote

Old   April 29, 2014, 11:55
Default
  #54
Senior Member
 
Join Date: Jul 2009
Posts: 260
Rep Power: 17
kingjewel1 is on a distinguished road
Quote:
Originally Posted by zainb malik View Post
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?
kingjewel1 is offline   Reply With Quote

Old   June 11, 2014, 13:35
Default
  #55
New Member
 
AZ
Join Date: Jan 2014
Posts: 17
Rep Power: 12
mjthomp3 is on a distinguished road
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.
mjthomp3 is offline   Reply With Quote

Old   July 30, 2014, 08:51
Default
  #56
New Member
 
Pedro Obando
Join Date: Jun 2014
Posts: 3
Rep Power: 11
Peoban2 is on a distinguished road
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 View Post
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 .
Peoban2 is offline   Reply With Quote

Old   September 24, 2014, 10:43
Default
  #57
Member
 
Pratik Nanavati
Join Date: May 2014
Location: Munich, Germany
Posts: 40
Rep Power: 11
nanavati is on a distinguished road
Quote:
Originally Posted by johannes View Post
Simon, you're the man! It works like a charm! Yeah!

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 View Post
Quote:
Originally Posted by phsieh2005 View Post
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..

Last edited by wyldckat; September 24, 2014 at 15:29. Reason: posted a few minutes apart... and added [CODE][/CODE] markers
nanavati is offline   Reply With Quote

Old   January 1, 2015, 12:08
Default :confused:
  #58
Senior Member
 
Join Date: Mar 2013
Location: B'lr
Posts: 130
Rep Power: 13
shivakumar is on a distinguished road
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
shivakumar is offline   Reply With Quote

Old   March 30, 2015, 09:16
Default
  #59
New Member
 
Ayush Jain
Join Date: Nov 2014
Posts: 16
Rep Power: 11
Ayush Jain is on a distinguished road
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...
Ayush Jain is offline   Reply With Quote

Old   March 30, 2015, 09:38
Default
  #60
Member
 
Jason G.
Join Date: Sep 2009
Location: St. Louis, IL
Posts: 89
Rep Power: 16
JasonG is on a distinguished road
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.
JasonG is offline   Reply With Quote

Reply


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
export ascii file with fluent Clementine FLUENT 3 August 2, 2012 09:52
Exporting structured mesh from ICEMCFD to Fluent? jeevan kumar FLUENT 1 January 23, 2012 11:21
how to export mesh file to Fluent sachin CFX 4 May 14, 2007 08:31
Icemcfd 11: Loss of mesh from surface mesh option? Joe CFX 2 March 26, 2007 18:10
how to export mesh from ICEM CFD to Ansys siv CFX 10 March 23, 2006 08:19


All times are GMT -4. The time now is 21:19.