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   February 22, 2010, 08:31
Default ANSYS to Fluent mesh export in ASCII format
  #1
Member
 
Johannes Baumann
Join Date: Mar 2009
Location: Baden-Wuerttemberg, Germany
Posts: 43
Rep Power: 17
johannes is on a distinguished road
Hi all,

I have a short question regarding mesh transfer from ANSYS Workbench to Fluent. This is usually done by creating named sections as boundary conditions and exporting the mesh as a binary .msh file.

I sometimes need the mesh as input for another software which cannot read binary files, so the question is:
Is there any possibility to export the mesh as ASCII file, maybe using some kind of APDL macro or script?

Many thanks in advance!

Best regards,
Johannes
johannes is offline   Reply With Quote

Old   March 1, 2010, 10:24
Default Environment Variable...
  #2
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
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.
j-avdeev, anon_a, czhao86 and 2 others like this.
PSYMN is offline   Reply With Quote

Old   March 1, 2010, 14:21
Default
  #3
Member
 
Johannes Baumann
Join Date: Mar 2009
Location: Baden-Wuerttemberg, Germany
Posts: 43
Rep Power: 17
johannes is on a distinguished road
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
johannes is offline   Reply With Quote

Old   June 4, 2010, 09:51
Default
  #4
Member
 
Jason G.
Join Date: Sep 2009
Location: St. Louis, IL
Posts: 89
Rep Power: 17
JasonG is on a distinguished road
Is this environment variable only applicable if Ansys Fluent is loaded? I have access to the CFX mesher from within the Ansys 11.0 Workbench environment, and it appears to only have the ability to write a binary Fluent inport file.

I was hoping to find a flag or setting somewhere to make it write the ascii file, but so far no luck .

Any help is greatly appreciated.
JasonG is offline   Reply With Quote

Old   June 6, 2010, 08:31
Default newer version...
  #5
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
It probably only works with 12.0 o 12.1 and was not available with 11.0.

Simon
PSYMN is offline   Reply With Quote

Old   June 27, 2010, 14:08
Default
  #6
Member
 
Jason G.
Join Date: Sep 2009
Location: St. Louis, IL
Posts: 89
Rep Power: 17
JasonG is on a distinguished road
I finally got 12.1 installed on my work desktop, and it works as described . I was then able to import the mesh file to OpenFOAM.
JasonG is offline   Reply With Quote

Old   September 10, 2010, 09:03
Default
  #7
Senior Member
 
Join Date: Jul 2009
Posts: 260
Rep Power: 18
kingjewel1 is on a distinguished road
Are you saying you export the mesh from within FLUENT? I'm using Gambit...
kingjewel1 is offline   Reply With Quote

Old   September 10, 2010, 09:18
Default
  #8
Member
 
Jason G.
Join Date: Sep 2009
Location: St. Louis, IL
Posts: 89
Rep Power: 17
JasonG is on a distinguished road
I only have the Ansys Mechanical package, but it allows use of the CFX/Fluent mesher. I was able to export the mesh in a Fluent format with BCs, and then run the conversion to OpenFoam once on my Linux desktop.

Now if I could just figure out an easy way to get an inverted volume from cavities and fluid passages.
JasonG is offline   Reply With Quote

Old   February 17, 2011, 11:10
Default more details?
  #9
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18
phsieh2005 is on a distinguished road
Hi, Jason,

can you send me more detailed steps on how you use name selection, mesh it, specify BCs in workbench, then, export to fluent ascii?

I have both WB 12.1 and 13 under Windows 7. Which (and where) file to edit?

Thanks!

Pei
phsieh2005 is offline   Reply With Quote

Old   February 17, 2011, 12:14
Default
  #10
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
JasonG, use DM, Tools => Enclosure.

Phsieh, This link should help...

http://www.youtube.com/user/ansysinc#p/u/6/-6Z2v8geroQ
PSYMN is offline   Reply With Quote

Old   February 17, 2011, 12:26
Default
  #11
Member
 
Jason G.
Join Date: Sep 2009
Location: St. Louis, IL
Posts: 89
Rep Power: 17
JasonG is on a distinguished road
Pei,

Here are some quick steps I followed to setup my computer, hopefully this will assist you:

Step 1: Right click on "My Computer" icon from desktop, click on "Properties", click on the "Advanced" tab, and then click on "Environment Variabls".

Step 2: Under "User Variables for __" click "New", a box should pop up. Fill out the following:

Variable name: AWP_WRITE_FLUENT_MESH_ASCII
Variable value: 1

Step 3: Click "ok" on all the windows to close out of the system properties.

Step 4: Once in the meshing applet of workbench, go to "File" -> "Export", and then select the ".msh" option.

This should export the fluent file in the correct format, and should translate all components (as long as none are overlapping).
JasonG is offline   Reply With Quote

Old   February 17, 2011, 12:30
Default
  #12
Member
 
Jason G.
Join Date: Sep 2009
Location: St. Louis, IL
Posts: 89
Rep Power: 17
JasonG is on a distinguished road
Quote:
Originally Posted by PSYMN View Post
JasonG, use DM, Tools => Enclosure.

Phsieh, This link should help...

http://www.youtube.com/user/ansysinc#p/u/6/-6Z2v8geroQ

I keep discovering that Ansys has removed a lot of boolean functionality in Workbench (unless you purchase DM) that is still available in Classic. For now I have had decent success with getting my cavities from the Pro/Engineer, and it allows me to easily simplify some structures that I suspect to have little flow impact but will result in increased mesh size.
JasonG is offline   Reply With Quote

Old   February 17, 2011, 12:38
Default
  #13
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
I wasn't there for the decision, but I suspect that you have given the reason why...

Many users have access to CAD tools which can extract the flow volume, simplify it and send it to ANSYS Meshing as a solid. So it probably didn't seem necessary to complicate the mesher (and use up our meshing team resources and probably increase the price of ANSYS Meshing) to replicate this same functionality.

For those who want to pay for this sort of development, we have DM. It is designed for users (mostly analysts) who would prefer a specialist tool because they either don't have access (or don't want to pay for something like Pro/E), or don't want to learn a professional CAD system.

The tools that were in classic are still there (and Mechanical APDL is available in WB). DM and CAD tools (connected with direct CAD interfaces) just do it better.
PSYMN is offline   Reply With Quote

Old   February 17, 2011, 12:50
Default
  #14
Member
 
Jason G.
Join Date: Sep 2009
Location: St. Louis, IL
Posts: 89
Rep Power: 17
JasonG is on a distinguished road
I just get that "nickle and dimed" feeling from Ansys . At this time time the only reason I use workbench is for the experimenting I am doing with OpenFOAM. All of my structural analyses will remain in the Classic environment unless there is a better hybird made of the two.
JasonG is offline   Reply With Quote

Old   February 17, 2011, 13:05
Default
  #15
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
Don't think of it as nickel and dimming. It is more like not charging you for stuff you don't want. The alternative is to just include it and raise the price and complexity for everyone... Oh well, not up to me, but that is how I look at it.

As for Classic functionality moving over to WB, it is a continuous process. The hard part is balancing the functionality of Classic with the Ease of Use of WB. They have to be careful to do it right.

You can now run APDL snipits in ANSYS Mechanical. Plus ANSYS Mechanical APDL (aka ANSYS Classic) is actually on the workbench project page now so you can connect it to DM and/or ANSYS Meshing or automatically parse the APDL for variables which become parameters and can be controlled by DX, etc. This combo lets you take advantage of the easy parts of WB while still having the solver flexibility and scritability of classic. The plans for the next few releases should take care of the rest.

Just keep checking back. They are working hard to win you over eventually
PSYMN is offline   Reply With Quote

Old   February 17, 2011, 14:00
Default
  #16
Member
 
Jason G.
Join Date: Sep 2009
Location: St. Louis, IL
Posts: 89
Rep Power: 17
JasonG is on a distinguished road
Ah, but don't fix what isn't broken! I am happpy with my APDL and classic lol.
JasonG is offline   Reply With Quote

Old   February 17, 2011, 18:36
Default
  #17
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18
phsieh2005 is on a distinguished road
Thanks a lot Jason!

This is what I have been looking for for a long time.

Pei

Quote:
Originally Posted by JasonG View Post
Pei,

Here are some quick steps I followed to setup my computer, hopefully this will assist you:

Step 1: Right click on "My Computer" icon from desktop, click on "Properties", click on the "Advanced" tab, and then click on "Environment Variabls".

Step 2: Under "User Variables for __" click "New", a box should pop up. Fill out the following:

Variable name: AWP_WRITE_FLUENT_MESH_ASCII
Variable value: 1

Step 3: Click "ok" on all the windows to close out of the system properties.

Step 4: Once in the meshing applet of workbench, go to "File" -> "Export", and then select the ".msh" option.

This should export the fluent file in the correct format, and should translate all components (as long as none are overlapping).
phsieh2005 is offline   Reply With Quote

Old   February 17, 2011, 22:02
Default
  #18
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
Quote:
Originally Posted by JasonG View Post
Ah, but don't fix what isn't broken! I am happpy with my APDL and classic lol.
Yea, I am pretty sure they know not to wreck that... They are just exposing its functionality thru the new interface... No worries
PSYMN is offline   Reply With Quote

Old   June 10, 2011, 07:05
Thumbs up
  #19
New Member
 
Join Date: Feb 2011
Location: France
Posts: 2
Rep Power: 0
Alynx 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.

Hello,
I try it with WB 13.0 and it works fine
Thanks a lot
Alynx is offline   Reply With Quote

Old   June 10, 2011, 09:16
Default
  #20
Member
 
Jason G.
Join Date: Sep 2009
Location: St. Louis, IL
Posts: 89
Rep Power: 17
JasonG is on a distinguished road
This feature is also working for me in R13.0. I have discovered that the file export will always be in Metric units regards of the current project setting in Workbench. I spoke with Ansys support, and they said the Fluent export will only write the file in Metric and allow the user to convert to different units once in Fluent.

The industry I work in is largely based around standard units (unfortunately), so I will need to figure out a way to scale everything around in the pre-solution or in the post processing. For now I have added a few lines to my controlDict that will compute Pstatic, and I added a factor to my density such that I end up with units of Psi.
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 10:52
Exporting structured mesh from ICEMCFD to Fluent? jeevan kumar FLUENT 1 January 23, 2012 12:21
how to export mesh file to Fluent sachin CFX 4 May 14, 2007 09:31
Icemcfd 11: Loss of mesh from surface mesh option? Joe CFX 2 March 26, 2007 19:10
how to export mesh from ICEM CFD to Ansys siv CFX 10 March 23, 2006 09:19


All times are GMT -4. The time now is 03:41.