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

Fluent Mesh (XP32) to OpenFoam

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 31, 2010, 07:23
Question Fluent Mesh (XP32) to OpenFoam
  #1
Member
 
Claus Schmitzer
Join Date: Mar 2010
Posts: 30
Rep Power: 6
archymedes is on a distinguished road
Hello!

I am new with OF and have just run some tutorial examples up to now. Recently I wanted to start my own simulations and compare them to ansys results.

I have created a model geometry and Mesh in Ansys Worbench 12 ( where Fluent is included) on a WinXp32 machine and exported a .msh file from fluent. In the Fluent launcher I've added the environment Variable

AWP_WRITE_FLUENT_MESH_ASCII=1

Restarting the machine on Ubuntu i execute
Code:
$dos2unix -b myMesh.msh
When I compare the converted file and the backup in GEDIT it looks exactly the same (is that the way it should be even after the conversion ?).

Then I've tried to convert the Mesh with fluentMeshToFoam , because it's a 2D Mesh
Code:
$ fluentMeshToFoam quader2_envVarFluent.msh 
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  1.6                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 1.6-53b7f692aa41
Exec   : fluentMeshToFoam quader2_envVarFluent.msh
Date   : Mar 31 2010
Time   : 12:08:40
Host   : BE13661
PID    : 2337
Case   : /media/System/Claus/GasSimu/OpenFoam/valve_All_2D
nProcs : 1
SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).

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

number of faces: 402
Number of points: 56
Reading uniform faces
Reading uniform faces
Reading uniform faces
Reading points


FINISHED LEXING


#0  Foam::error::printStack(Foam::Ostream&) in "/home/claus/OpenFOAM/OpenFOAM-1.6/lib/linuxGccDPOpt/libOpenFOAM.so"
#1  Foam::sigSegv::sigSegvHandler(int) in "/home/claus/OpenFOAM/OpenFOAM-1.6/lib/linuxGccDPOpt/libOpenFOAM.so"
#2  Uninterpreted: 
#3  main in "/home/claus/OpenFOAM/OpenFOAM-1.6/applications/bin/linuxGccDPOpt/fluentMeshToFoam"
#4  __libc_start_main in "/lib/tls/i686/cmov/libc.so.6"
#5  _start at /usr/src/packages/BUILD/glibc-2.9/csu/../sysdeps/i386/elf/start.S:122
Segmentation fault
being curious I' also tried fluent3DMeshToFoam which gave me
Code:
$ fluent3DMeshToFoam quader3D_EnvVarFluent.msh 
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  1.6                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 1.6-53b7f692aa41
Exec   : fluent3DMeshToFoam quader3D_EnvVarFluent.msh
Date   : Mar 31 2010
Time   : 12:18:25
Host   : BE13661
PID    : 2370
Case   : /media/System/Claus/GasSimu/OpenFoam/valve_All_2D
nProcs : 1
SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).

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

Number of faces: 5616
Number of points: 866
FaceGroup: 5 start: 4752 end: 4895.  Reading uniform faces...done.
FaceGroup: 6 start: 4896 end: 5039.  Reading uniform faces...done.
FaceGroup: 7 start: 5040 end: 5615.  Reading uniform faces...done.
PointGroup: 1 start: 0 end: 865.  Reading points...done.

FINISHED LEXING



Mesh is not 3D, dimension of grid: 0

    From function fluent3DMeshToFoam
    in file fluent3DMeshToFoam.L at line 824.

FOAM exiting
So the conversion routine recognizes the wrong dimension that is to say 0 instead of 2D.

Does anyone have an idea what could be wrong ? How to check if the ASCII export was done properly ?

The file is on a windows ntfs partition which I access from ubuntu which was installed on another partition.

Thank you for your help!

Last edited by archymedes; March 31, 2010 at 08:57.
archymedes is offline   Reply With Quote

Old   April 1, 2010, 06:26
Default Solution
  #2
Member
 
Claus Schmitzer
Join Date: Mar 2010
Posts: 30
Rep Power: 6
archymedes is on a distinguished road
I've found a solution.

Up to now I have tried to export a .msh file from Fluent and then read it with OF.
As I create my geometry and mesh in Ansys Workbench, I now export the .msh file from the Workbench Mesher!
Then I execute dos2unix, and now it can be read by fluentMeshToFoam wihout any errors!

I don't know why the Fluent export doesn't work, but at least it works with the ansys mesher.

Last edited by archymedes; April 12, 2010 at 11:31.
archymedes is offline   Reply With Quote

Reply

Tags
ascii, fluent, fluentmeshtofoam, foam::error, sigsegvhandler

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
OpenFOAM vs. Fluent & CFX marco FLUENT 11 February 25, 2014 16:56
[ICEM] Generating Mesh for STL Car in Windtunnel Simulation tommymoose ANSYS Meshing & Geometry 48 April 15, 2013 05:24
Problem importing mesh in openfoam from fluent alessandr0 OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 3 September 4, 2008 14:41
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55
Import ICEM Mesh to Fluent Fluent Beginner FLUENT 5 June 23, 2004 01:27


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