|
[Sponsors] |
[Other] ANSYS to Fluent mesh export in ASCII format |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 22, 2010, 08:31 |
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 |
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 |
|
March 1, 2010, 10:24 |
Environment Variable...
|
#2 |
Senior Member
Simon Pereira
Join Date: Mar 2009
Location: Ann Arbor, MI
Posts: 2,663
Blog Entries: 1
Rep Power: 47 |
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. |
|
March 1, 2010, 14:21 |
|
#3 |
Member
Johannes Baumann
Join Date: Mar 2009
Location: Baden-Wuerttemberg, Germany
Posts: 43
Rep Power: 17 |
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 |
|
June 4, 2010, 09:51 |
|
#4 |
Member
Jason G.
Join Date: Sep 2009
Location: St. Louis, IL
Posts: 89
Rep Power: 17 |
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. |
|
June 27, 2010, 14:08 |
|
#6 |
Member
Jason G.
Join Date: Sep 2009
Location: St. Louis, IL
Posts: 89
Rep Power: 17 |
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.
|
|
September 10, 2010, 09:03 |
|
#7 |
Senior Member
Join Date: Jul 2009
Posts: 260
Rep Power: 18 |
Are you saying you export the mesh from within FLUENT? I'm using Gambit...
|
|
September 10, 2010, 09:18 |
|
#8 |
Member
Jason G.
Join Date: Sep 2009
Location: St. Louis, IL
Posts: 89
Rep Power: 17 |
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. |
|
February 17, 2011, 11:10 |
more details?
|
#9 |
Senior Member
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18 |
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 |
|
February 17, 2011, 12:14 |
|
#10 |
Senior Member
Simon Pereira
Join Date: Mar 2009
Location: Ann Arbor, MI
Posts: 2,663
Blog Entries: 1
Rep Power: 47 |
JasonG, use DM, Tools => Enclosure.
Phsieh, This link should help... http://www.youtube.com/user/ansysinc#p/u/6/-6Z2v8geroQ |
|
February 17, 2011, 12:26 |
|
#11 |
Member
Jason G.
Join Date: Sep 2009
Location: St. Louis, IL
Posts: 89
Rep Power: 17 |
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). |
|
February 17, 2011, 12:30 |
|
#12 | |
Member
Jason G.
Join Date: Sep 2009
Location: St. Louis, IL
Posts: 89
Rep Power: 17 |
Quote:
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. |
||
February 17, 2011, 12:38 |
|
#13 |
Senior Member
Simon Pereira
Join Date: Mar 2009
Location: Ann Arbor, MI
Posts: 2,663
Blog Entries: 1
Rep Power: 47 |
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. |
|
February 17, 2011, 12:50 |
|
#14 |
Member
Jason G.
Join Date: Sep 2009
Location: St. Louis, IL
Posts: 89
Rep Power: 17 |
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.
|
|
February 17, 2011, 13:05 |
|
#15 |
Senior Member
Simon Pereira
Join Date: Mar 2009
Location: Ann Arbor, MI
Posts: 2,663
Blog Entries: 1
Rep Power: 47 |
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 |
|
February 17, 2011, 14:00 |
|
#16 |
Member
Jason G.
Join Date: Sep 2009
Location: St. Louis, IL
Posts: 89
Rep Power: 17 |
Ah, but don't fix what isn't broken! I am happpy with my APDL and classic lol.
|
|
February 17, 2011, 18:36 |
|
#17 | |
Senior Member
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18 |
Thanks a lot Jason!
This is what I have been looking for for a long time. Pei Quote:
|
||
June 10, 2011, 07:05 |
|
#19 |
New Member
Join Date: Feb 2011
Location: France
Posts: 2
Rep Power: 0 |
||
June 10, 2011, 09:16 |
|
#20 |
Member
Jason G.
Join Date: Sep 2009
Location: St. Louis, IL
Posts: 89
Rep Power: 17 |
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. |
|
|
|
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 |