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

[Commercial meshers] From ansys meshing to openfoam

Register Blogs Community New Posts Updated Threads Search

Like Tree9Likes
  • 1 Post By wyldckat
  • 8 Post By phsieh2005

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 2, 2012, 05:38
Default From ansys meshing to openfoam
  #1
Member
 
Evangelos
Join Date: Sep 2011
Posts: 87
Rep Power: 14
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, 16:22
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
Mazze[ITA] likes this.
__________________
wyldckat is offline   Reply With Quote

Old   October 21, 2012, 11:34
Default
  #3
Member
 
Anon
Join Date: Oct 2012
Posts: 33
Rep Power: 13
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, 08:38
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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, 11:26
Default
  #5
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18
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
phsieh2005 is offline   Reply With Quote

Old   October 23, 2012, 10:33
Default
  #6
Member
 
Anon
Join Date: Oct 2012
Posts: 33
Rep Power: 13
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

Old   August 24, 2016, 00:36
Default
  #7
New Member
 
alan
Join Date: May 2016
Posts: 4
Rep Power: 9
cktan22 is on a distinguished road
Hi,

I`m trying to export a mesh file from Ansys to OpenFOAM but received this error message: -

/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.1.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.1.1-221db2718bbb
Exec : fluentMeshToFoam surface3.msh
Date : Aug 24 2016
Time : 12:22:10
Host : "ck-VirtualBox"
PID : 3632
Case : /home/ck/Desktop/Test/surface
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

fileName::stripInvalid() called for invalid fileName surface3.STEP
For debug level (= 2) > 1 this is considered fatal
Aborted (core dumped)



Can anyone help me on that? I am using Ansys version 16.2 and i have followed the treat to change the file format to ASCII yet the problem doesn`t resolved.

I have no idea on the following statement: "stripInvalid() called for invalid fileName surface3.STEP" . I placed this geometry file in the same folder with surface3.msh. If i removed this file from the folder, i get an error message :-

--> FOAM FATAL IO ERROR:
cannot find file

file: /home/ck/Desktop/Test/surface/system/controlDict at line 0.

From function regIOobject::readStream()
in file db/regIOobject/regIOobjectRead.C at line 73.

FOAM exiting


Thanks.
cktan22 is offline   Reply With Quote

Old   September 9, 2016, 03:53
Default
  #8
New Member
 
Taher
Join Date: Sep 2016
Posts: 1
Rep Power: 0
Taher.AHEL is on a distinguished road
Quote:
Originally Posted by cktan22 View Post
Hi,

I`m trying to export a mesh file from Ansys to OpenFOAM but received this error message: -

/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.1.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.1.1-221db2718bbb
Exec : fluentMeshToFoam surface3.msh
Date : Aug 24 2016
Time : 12:22:10
Host : "ck-VirtualBox"
PID : 3632
Case : /home/ck/Desktop/Test/surface
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

fileName::stripInvalid() called for invalid fileName surface3.STEP
For debug level (= 2) > 1 this is considered fatal
Aborted (core dumped)



Can anyone help me on that? I am using Ansys version 16.2 and i have followed the treat to change the file format to ASCII yet the problem doesn`t resolved.

I have no idea on the following statement: "stripInvalid() called for invalid fileName surface3.STEP" . I placed this geometry file in the same folder with surface3.msh. If i removed this file from the folder, i get an error message :-

--> FOAM FATAL IO ERROR:
cannot find file

file: /home/ck/Desktop/Test/surface/system/controlDict at line 0.

From function regIOobject::readStream()
in file db/regIOobject/regIOobjectRead.C at line 73.

FOAM exiting


Thanks.


Plz See this:

https://www.youtube.com/watch?v=f9-GDWLKixg
Taher.AHEL 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
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 05:29
[Commercial meshers] About the Commercial and Closed Source Meshers discussed here wyldckat OpenFOAM Meshing & Mesh Conversion 3 July 22, 2020 22:09
[ANSYS Meshing] Hex meshing in ANSYS Meshing ashwah1993 ANSYS Meshing & Geometry 0 June 8, 2018 15:20
[ANSYS Meshing] Ansys meshing does not respond when it is opened after the first time MikhO ANSYS Meshing & Geometry 0 February 16, 2018 08:08
[Commercial meshers] import ansys meshing to openfoam bhrz OpenFOAM Meshing & Mesh Conversion 2 November 11, 2014 11:41


All times are GMT -4. The time now is 23:29.