CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [Commercial meshers] Fluent Mesh (XP32) to OpenFoam (https://www.cfd-online.com/Forums/openfoam-meshing/74389-fluent-mesh-xp32-openfoam.html)

archymedes March 31, 2010 06:23

Fluent Mesh (XP32) to OpenFoam
 
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!

archymedes April 1, 2010 05:26

Solution
 
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! :cool:

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


All times are GMT -4. The time now is 06:48.