CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ...

From ansys meshing to openfoam

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By phsieh2005

Reply
 
LinkBack Thread Tools Display Modes
Old   October 2, 2012, 06:38
Default From ansys meshing to openfoam
  #1
Member
 
Evangelos
Join Date: Sep 2011
Posts: 66
Rep Power: 5
Danath is on a distinguished road
I have created a 3d geometry with gambit and meshing with ansys meshing and i exported as .msh

when i type fluent3DMeshToFoam singleserpantinefine.msh


/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.1.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.1.0-0bc225064152
Exec : fluent3DMeshToFoam singleserpantinefine.msh
Date : Oct 02 2012
Time : 12:30:08
Host : "danath-desktop"
PID : 1915
Case : /home/danath/OpenFOAM/danath-2.1.0/run/tutorials/singleserpantine
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

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

Dimension of grid: 3
Number of points: 9835676
Number of faces: 28616972
Number of cells: 9401296
--> FOAM Warning : Found unknown block of type: "3010"
on line 14


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

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

FOAM exiting

where is the problem ?


http://albertopassalacqua.com/?p=885 is it safe ?
Danath is offline   Reply With Quote

Old   October 2, 2012, 17:22
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,511
Blog Entries: 33
Rep Power: 74
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Greetings Evangelos,

The fix that is presented in http://albertopassalacqua.com/?p=885 is meant to be used as follows:
  1. Edit the file "~/.bashrc" and add to the end of the file a new line with:
    Code:
    export AWP_WRITE_FLUENT_MESH_ASCII=1
  2. Start a new terminal.
  3. Launch Workbench directly from the new terminal.
    • If you are only able to launch the Workbench application from the menu, then you might need to logout and then log back in.
  4. Export the mesh on Workbench again to ".msh".
  5. Now you can go back to the terminal and convert the ".msh" file to OpenFOAM.
Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   October 21, 2012, 12:34
Default
  #3
Member
 
Jone Rivrud Rygg
Join Date: Oct 2012
Posts: 33
Rep Power: 4
jrrygg is on a distinguished road
Hi,

I would like to trythis fix to see if I can succesfully import my Ansys mesh. However I am running Ansys Workbench in Windows, how can I specify that I would like the .msh-file in ASCII-format?

Regards,

Jone
jrrygg is offline   Reply With Quote

Old   October 22, 2012, 09:38
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,511
Blog Entries: 33
Rep Power: 74
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Greetings Jone and welcome to forum!

Quote:
Originally Posted by jrrygg View Post
I would like to trythis fix to see if I can succesfully import my Ansys mesh. However I am running Ansys Workbench in Windows, how can I specify that I would like the .msh-file in ASCII-format?
Search for "How To Manage Environment Variables in Windows". Example: http://support.microsoft.com/kb/310519

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   October 22, 2012, 12:26
Default
  #5
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 269
Rep Power: 8
phsieh2005 is on a distinguished road
Hi, Jone,

Depending on which ANSYS version you are using. If you are using V14, then, you do not have to set the ascii = 1 throught windows variable.

In Workbench Meshing, seclect "Tools", then, click "Export" under Meshing. Set ANSYS Fluent format to "Ascii".

After this, you can export the mesh and select Fluent *.msh format.

Pei-Ying
wyldckat likes this.
phsieh2005 is offline   Reply With Quote

Old   October 23, 2012, 11:33
Default
  #6
Member
 
Jone Rivrud Rygg
Join Date: Oct 2012
Posts: 33
Rep Power: 4
jrrygg is on a distinguished road
Thank you very much both of you! I will check this out as soon as I get my new installation running.

Have a nice day!
jrrygg is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[ANSYS Meshing] Extruding 2D mesh to 3D mesh in ANSYS meshing Rachit ANSYS Meshing & Geometry 5 July 31, 2012 07:32
Fluent + ansys meshing dif regions kvloover FLUENT 3 February 13, 2012 10:19
How To save a created mesh file in Ansys Meshing ashtonJ CFX 4 January 7, 2012 23:04
Ansys Meshing and Voronoi Meshes EphemeralMemory ANSYS Meshing & Geometry 0 July 19, 2011 18:10
Is there a meshing tool within the Ansys Fluent software srikanth ANSYS 5 March 21, 2010 16:04


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