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

[Commercial meshers] Several problems with the mesh conversion utility when converting the meshes from Gridgen

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 25, 2008, 23:22
Default Several problems with the mesh conversion utility when converting the meshes from Gridgen
  #1
Senior Member
 
su_junwei's Avatar
 
su junwei
Join Date: Mar 2009
Location: Xi'an China
Posts: 151
Rep Power: 20
su_junwei is on a distinguished road
Send a message via MSN to su_junwei
Dear all

These days, I have been trying to convert the mesh exported from gridgen (v 15.11) to the openfoam native format, but get no luck. Below are the problems encountered during the conversion process.

1) gridgen -> fluent mesh -> fluentmeshToFoam
For 2D mesh, it seems well.
For 3D mesh, using fluentMeshToFoam(no errors found during the conversion, but the resulting mesh cannot be read by visIt and paraview), however using fluent3DMeshToFoam, the message below appears


Header: "exported from Gridgen 15.11R1"


--> FOAM FATAL ERROR : Do not understand characters:

From function fluentMeshToFoam::lexer
in file fluentMeshToFoam.L at line 703.

FOAM exiting


2) gridgen->anasys CFX -> cfxToFoam

The following error occured

--> FOAM FATAL IO ERROR : wrong token type - expected int found on line 2 the word 'Version'

file: cfx_ansys.grd at line 2.

From function operator>>(Istream&, int&)
in file primitives/int/intIO.C at line 74.

FOAM exiting

3) gridgen->CFX-4 -> cfxToFoam

The internal mesh was converted successfully.
but if you don't define any boundary condition and got a warning below, the file of "boundary" was written into the dir of ployMesh but with only one patch, yes it is meaningfull. But if you define the
boundary condition, the file of boundary was not written, but the message on the screen showed they are created.

Default patch type set to wall
--> FOAM Warning :
From function polyMesh::polyMesh(... construct from shapes...)
in file meshes/polyMesh/polyMeshFromShapeMesh.C at line 577
Found 8214 undefined faces in mesh; adding to default patch.
Writing polyMesh



4) gridgen->star CD -> starToFoam
starToFoam aborted with messages

--> FOAM FATAL IO ERROR : Unexpected \n

file: star.vrt at line 1.

From function starMesh::readPoints()
in file readPoints.C at line 100.

FOAM aborting

#0 Foam::error::printStack(Foam:stream&) at OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/OSspecific/Unix/printStack.C:203
#1 Foam::IOerror::abort() at OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/IOerror.C:209
#2 Foam:stream& Foam::operator<<>(Foam:stream&, Foam::errorManip<foam::ioerror>) at OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/errorManip.H:86
#3 starMesh::readPoints(double) at OpenFOAM/OpenFOAM-1.4.1/applications/utilities/mesh/conversion/starToFoam/readPo ints.C:105
#4 starMesh at OpenFOAM/OpenFOAM-1.4.1/applications/utilities/mesh/conversion/starToFoam/starMe sh.C:260
#5 main at OpenFOAM/OpenFOAM-1.4.1/applications/utilities/mesh/conversion/starToFoam/starTo Foam.C:65
#6 __libc_start_main in "/lib/libc.so.6"
#7 __gxx_personality_v0 in "/home/sujunwei/OpenFOAM/OpenFOAM-1.4.1/applications/bin/linuxGccDPDebug/starToF oam"

5) gridgen -> plot3D -> plot3DToFoam

the utility aborted with messages

Reading 2 blocks
xDim:16 yDim:30 zDim:8
xDim:30 yDim:59 zDim:30
Reading block points
block 0:
Looking at cell 0 0 0 to determine orientation.
Right-handed block.

block 1:


--> FOAM FATAL IO ERROR : Attempt to get back from bad stream

file: 001.grd at line 42710.

From function void Istream::getBack(token& t)
in file db/IOstreams/IOstreams/Istream.C at line 44.

FOAM exiting


Have you encountered these problems, how do you solve it ? would you give me some suggestion on the conversion of mesh from gridgen into openfoam native format? Any response about the mesh conversion will be appreciated.

thanks, Junwei
su_junwei is offline   Reply With Quote

Old   July 26, 2008, 14:19
Default Did you use the Fluent analysi
  #2
Member
 
Dennis Kingsley
Join Date: Mar 2009
Location: USA
Posts: 45
Rep Power: 17
dkingsley is on a distinguished road
Did you use the Fluent analysis software type or the older Fluent v4?

I have never got the Fluent v4 output to work, even transfers to Gambit were problematic.

Also, if you created the cas file on a windows machine, you should run the dos2unix command to convert the line endings.

dennis
dkingsley is offline   Reply With Quote

Old   July 27, 2008, 00:58
Default Dear dennis yes, I have tr
  #3
Senior Member
 
su_junwei's Avatar
 
su junwei
Join Date: Mar 2009
Location: Xi'an China
Posts: 151
Rep Power: 20
su_junwei is on a distinguished road
Send a message via MSN to su_junwei
Dear dennis

yes, I have tried fluent V4, but get no luck.

I used the gridgen in opensuse with wine. after converting using dos2unix, it seems that fluent3DMeshToFoam doesn't work.

Junwei
su_junwei is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[ICEM] Problems with coedge curves and surfaces tommymoose ANSYS Meshing & Geometry 6 December 1, 2020 12:12
how to set periodic boundary conditions Ganesh FLUENT 15 November 18, 2020 07:09
[snappyHexMesh] problems generating clean mesh Christian_tt OpenFOAM Meshing & Mesh Conversion 2 June 20, 2019 06:39
CFD by anderson, chp 10.... supersonic flow over flat plate varunjain89 Main CFD Forum 18 May 11, 2018 08:31
problem when converting mesh (made by ICEM) using fluentMeshToFoam Forrest_Lei OpenFOAM 11 October 16, 2009 07:28


All times are GMT -4. The time now is 19:04.