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

[Commercial meshers] Problem converting fluent mesh

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

Like Tree1Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 25, 2007, 06:54
Default Problem converting fluent mesh
  #1
Senior Member
 
Vincent RIVOLA
Join Date: Mar 2009
Location: France
Posts: 283
Rep Power: 18
vinz is on a distinguished road
Hi everybody,

A client gave me a fluent mesh, to try the case in OpenFOAM.
I tried to use fluentMeshToFoam and got the error message:

Dimension of grid: 3
Number of points: 31955
Reading points
Number of cells: 158329
Reading uniform cells
number of faces: 326387
Reading uniform faces
Reading uniform faces
Reading uniform faces
Reading uniform faces
Reading uniform faces
Reading uniform faces
Reading uniform faces
Reading uniform faces
Reading uniform faces
Reading uniform faces
Reading uniform faces
Reading uniform faces
Reading uniform faces
Reading uniform faces
Reading uniform faces
Reading zone data
Reading zone data
Reading zone data
Reading zone data
Reading zone data
Reading zone data
Reading zone data
Reading zone data
Reading zone data
Reading zone data
Reading zone data
Reading zone data
Reading zone data
Reading zone data
Reading zone data
Reading zone data


FINISHED LEXING


dimension of grid: 3
Creating shapes for 3-D cells


--> FOAM FATAL ERROR : Cannot find match for face 1.
Model: tet model face: 3(0 3 2) Mesh faces:
4
(
3(-1 16435 12859)
3(12859 12868 16435)
3(12871 12868 12859)
3(12868 12871 16435)
)
Matched points: 4(-1 -1 16435 12859)

From function create3DCellShape(const label cellIndex, const labelList& faceLabels, const labelListList& faces, const labelList& owner, const labelList& neighbour, const label fluentCellModelID)
in file create3DCellShape.C at line 281.

FOAM aborting

Foam::error::printStack(Foam:stream&)
Foam::error::abort()
fluentMeshToFoam [0x804ffe6]
fluentMeshToFoam [0x80558ff]
__libc_start_main
__gxx_personality_v0
Abort


Does someone know what is going wrong? Please notice I'm not famiiar with fluent format so I don't know what's wrong either the mesh or the converter. However the mesh looks to run fine under Fluent.
Help would be much appreciated.

Vincent
vinz is offline   Reply With Quote

Old   July 3, 2007, 09:21
Default Hello all, I got the same e
  #2
mayank
Guest
 
Posts: n/a
Hello all,

I got the same error error message when converting mesh from fluent.But it is starnge that I already converted the same mesh by 'fluentmeshToFoam' a few days ago and now that mesh conversion does not work.
The error is as follows:

--> FOAM FATAL ERROR : Cannot find match for first face. cell model: tet first model face: 3(1 2 3) Mesh faces:
4
(
4(786 1968 1563 415)
4(1563 1968 1362 1263)
4(1362 1968 786 154)
4(154 786 415 63)
)
#0 Foam::error::printStack(Foam:stream&)
#1 Foam::error::abort()
#2 Foam::create3DCellShape(int, Foam::List<int> const&, Foam::List<foam::face> const&, Foam::List<int> const&, Foam::List<int> const&, int)
#3 main
#4 __libc_start_main
#5 __gxx_personality_v0

I have been doing stuff with fluentMeshtoFoam.L which is posted in other forums ,maybe that is the reason it stopped working.But I copied the original file again and compiled then also the same error is shown.
Can anybody help me with this.

Mayank.
  Reply With Quote

Old   July 10, 2007, 07:58
Default Hi I got a similar Problem wit
  #3
Senior Member
 
Jens Klostermann
Join Date: Mar 2009
Posts: 117
Rep Power: 17
jens_klostermann is on a distinguished road
Hi I got a similar Problem with OpenFoam-1.4

error with fluentMeshToFoam.L from OpenFoam-1.4:
dimension of grid: 3
Creating shapes for 3-D cells


--> FOAM FATAL ERROR : Cannot find match for first face. cell model: tet first model face: 3(1 2 3) Mesh faces:
4
(
4(4046 5039 5022 3597)
4(5022 5039 12844 11579)
4(5039 4046 12832 12844)
4(4046 3597 11580 12832)
)
#0 Foam::error::printStack
#1 Foam::error::abort
#2 Foam::create3DCellShape(int, Foam::List<int> const&, Foam::List<foam::face> const&, Foam::List<int> const&, Foam::List<int> const&, int)
#3 main
#4 __libc_start_main
#5 __gxx_personality_v0 at ../sysdeps/x86_64/elf/start.S:116


From function create3DCellShape(const label cellIndex, const labelList& faceLabels, const labelListList& faces, const labelList& owner, const labelList& neighbour, const label fluentCellModelID)
in file create3DCellShape.C at line 186.

FOAM aborting

Aborted


If I use fluentMeshToFoam.L from OpenFoam-1.3 with OpenFOAM-1.4 I get the following error:

--> FOAM FATAL ERROR : Trying to add 5th face to a cell with 4 faces. Face index: 7101 Current faces: 4(5888 7098 7099 7100)#0 Foam::error::printStack
#1 Foam::error::abort
#2 main
#3 __libc_start_main
#4 __gxx_personality_v0 at ../sysdeps/x86_64/elf/start.S:116


From function fluentMeshToFoam
in file fluentMeshToFoam.L at line 907.

FOAM aborting


If I use OpenFOAM 1.3 I the conversion works. I thought the problem is within fluentMeshToFoam.L, but this doesn't seem to be the case. Where do I have to dig to find more information?

Jens
jens_klostermann is offline   Reply With Quote

Old   July 10, 2007, 08:27
Default sorry but I'm a newbie in Open
  #4
Member
 
Davide Pasini
Join Date: Mar 2009
Posts: 34
Rep Power: 17
ilpaso is on a distinguished road
sorry but I'm a newbie in OpenFoam.
Why don't you use gambitToFoam to import your mesh in OpenFoam?

I do this in gambit:
- create mesh
- change solver to "generic"
- create patches with differents name (wall, inlet, ...) and the same type: "ELEMENT_SIDE"
- use gambitToMesh to convert mesh
- In FoamX define the patch types

bye
Davide
zaynah04 likes this.
ilpaso is offline   Reply With Quote

Old   July 10, 2007, 08:55
Default Hy Davide, because I didn't
  #5
Senior Member
 
Jens Klostermann
Join Date: Mar 2009
Posts: 117
Rep Power: 17
jens_klostermann is on a distinguished road
Hy Davide,

because I didn't create the mesh myself and I just have *.msh file. And it worked with OpenFOAM-1.3 but not with OpenFOAM-1.4.

Best regards

Jens
jens_klostermann is offline   Reply With Quote

Old   July 10, 2007, 09:11
Default Convert it with OF 1.3 and the
  #6
Senior Member
 
Francesco Del Citto
Join Date: Mar 2009
Location: Zürich Area, Switzerland
Posts: 237
Rep Power: 18
fra76 is on a distinguished road
Convert it with OF 1.3 and then use it with 1.4
Is a workaround, I know, but it could work...

Francesco
fra76 is offline   Reply With Quote

Old   July 10, 2007, 09:28
Default I don't know if this can help
  #7
Member
 
Davide Pasini
Join Date: Mar 2009
Posts: 34
Rep Power: 17
ilpaso is on a distinguished road
I don't know if this can help you.....
another workaround:
if you have a .msh (or .cas) file import in gambit the mesh (file>import>mesh)

after do this:
- change solver to "generic"
- create patches with differents name (wall, inlet, ...) and the same type: "ELEMENT_SIDE"
- use gambitToMesh to convert mesh
- In FoamX define the patch types

bye

Davide
ilpaso is offline   Reply With Quote

Old   July 10, 2007, 10:32
Default @Francesco this workarounds wo
  #8
Senior Member
 
Jens Klostermann
Join Date: Mar 2009
Posts: 117
Rep Power: 17
jens_klostermann is on a distinguished road
@Francesco this workarounds works. Thank you!

@Davide thanks for your hints

@all:
I don't want workarounds. I actually want to know, why it worked with OF-1.3 and not with OF-1.4. Maybe Mattijs, Henry, Eugene or Hrv has a hint where to dig further to get this bug.

Jens
jens_klostermann is offline   Reply With Quote

Old   July 10, 2007, 10:45
Default The file create3DCellShape.C h
  #9
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,904
Rep Power: 33
hjasak will become famous soon enough
The file create3DCellShape.C has not changed, which means there is a problem with the parsing. Run a diff on fluentMeshToFoam.L and start chasing it from there.

I would assume the face belongs to a zone that should be ignored - looks silly to add a fifth face on a quad.

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   July 10, 2007, 11:07
Default Yes, indeed within the fluentM
  #10
Senior Member
 
Jens Klostermann
Join Date: Mar 2009
Posts: 117
Rep Power: 17
jens_klostermann is on a distinguished road
Yes, indeed within the fluentMeshToFoam directory only the fluentMeshToFoam.L has changed. I made a diff, which shows me a lot of changes. But I still have the problem that the fluentMeshToFoam (version OF-1.4) doesn't work with the fluentMeshToFoam.L taken from OF-1.3, which is strange (With OF-1.3 it works.).
Since this is not working I thought the error must come from somewhere else.

Regards Jens

PS: Don't know if the fluentMeshToFoam (version OF-1.3) works with the fluentMeshToFoam.L taken from OF-1.4?
jens_klostermann is offline   Reply With Quote

Old   July 27, 2007, 10:25
Default Hi all I hope there is still
  #11
Senior Member
 
Cedric DUPRAT
Join Date: Mar 2009
Location: Nantes, France
Posts: 195
Rep Power: 17
cedric_duprat is on a distinguished road
Hi all
I hope there is still someone to answer my question on a friday afternoon ... in july ...with this weather (sunny here) ...

I created a mesh with Gambit, and importing to OF-1.3. In fact, I just tried to import it;
this is the OF message:

.....

FINISHED LEXING
dimension of grid: 3
Creating shapes for 3-D cells
--> FOAM FATAL ERROR : Number of face labels not equal tonumber of face in the model. Number of face labels: 32774 number of faces in model: 6


so, if the number of face labels was close to the number of face in the model, I should correct by hand ... but there
I don't know where I can look to understand the problem and then, find a solution. I've defined only 5 BC on gambit so where the 6 and the 32774 come from ?
Can anybody help me with this problem before week end?
thanks,

Cedric
cedric_duprat is offline   Reply With Quote

Old   August 30, 2011, 03:59
Default
  #12
Member
 
Avdeev Evgeniy
Join Date: Jan 2011
Location: Togliatty, Russia
Posts: 69
Blog Entries: 1
Rep Power: 21
j-avdeev will become famous soon enough
Send a message via Skype™ to j-avdeev
Hi.
I'm trying to convert fluent mesh to OF.

Code:
$ fluentMeshToFoam fluent_V6_ascii_1.msh 
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.0.1                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 2.0.1-51f1de99a4bc
Exec   : fluentMeshToFoam fluent_V6_ascii_1.msh
Date   : Aug 30 2011
Time   : 10:39:14
Host   : debian-toshiba
PID    : 4364
Case   : /home/jenek/msh1/fluentMsh
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



--> FOAM FATAL IO ERROR: 
cannot find file

file: /home/jenek/msh1/fluentMsh/system/controlDict at line 0.

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

FOAM exiting
Ok, I create folder system and emtpy controlDict file in it.

Code:
$ fluentMeshToFoam fluent_V6_ascii_1.msh 
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.0.1                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 2.0.1-51f1de99a4bc
Exec   : fluentMeshToFoam fluent_V6_ascii_1.msh
Date   : Aug 30 2011
Time   : 10:40:48
Host   : debian-toshiba
PID    : 4431
Case   : /home/jenek/msh1/fluentMsh
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

--> FOAM Serious Error : 
    From function IOobject::readHeader(Istream&)
    in file db/IOobject/IOobjectReadHeader.C at line 89
    Reading "/home/jenek/msh1/fluentMsh/system/controlDict" at line 3
    First token could not be read or is not the keyword 'FoamFile'

Check header is of the form:

/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.0.1                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //



--> FOAM FATAL IO ERROR: 
problem while reading header for object controlDict

file: /home/jenek/msh1/fluentMsh/system/controlDict at line 3.

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

FOAM exiting
Can anybody comment what is wrong?

Last edited by j-avdeev; August 30, 2011 at 04:17.
j-avdeev is offline   Reply With Quote

Old   August 30, 2011, 11:32
Default
  #13
Member
 
Avdeev Evgeniy
Join Date: Jan 2011
Location: Togliatty, Russia
Posts: 69
Blog Entries: 1
Rep Power: 21
j-avdeev will become famous soon enough
Send a message via Skype™ to j-avdeev
Don't know why this not written in User Guide. Or I read inattentively?

fluent mesh file was successfully converted to OpenFOAM after
1. creating system folder in folder with fluent file
2. copying any controlDict file to system folder
3. run fluentMeshToFoam <fluent mesh file name> from directory with fluent mesh file. Running from other folder threw fluentMeshToFoam <fluent mesh file path> didn't work for me.
j-avdeev is offline   Reply With Quote

Old   November 30, 2011, 04:55
Default
  #14
Senior Member
 
xinguang cui
Join Date: Mar 2009
Posts: 116
Rep Power: 17
flying is on a distinguished road
I have also met this problem in OpenFOAM 1.5, Is there some solution for it?

The error information is as following:

FINISHED LEXING


dimension of grid: 3
Creating shapes for 3-D cells


Cannot find match for first face. cell model: tet first model face: 3(1 2 3) Mesh faces:
4
(
0()
0()
0()
0()
)
#0 Foam::error:rintStack(Foam::Ostream&) in "/opt/bwgrid/cae/openfoam/1.5/OpenFOAM-1.5/lib/linux64GccDPOpt/libOpenFOAM.so"
#1 Foam::error::abort() in "/opt/bwgrid/cae/openfoam/1.5/OpenFOAM-1.5/lib/linux64GccDPOpt/libOpenFOAM.so"
#2 Foam::Ostream& Foam:perator<< <Foam::error>(Foam::Ostream&, Foam::errorManip<Foam::error>) in "/opt/bwgrid/cae/openfoam/1.5/OpenFOAM-1.5/applications/bin/linux64GccDPOpt/fluentMeshToFoam"
#3 Foam::create3DCellShape(int, Foam::List<int> const&, Foam::List<Foam::face> const&, Foam::List<int> const&, Foam::List<int> const&, int) in "/opt/bwgrid/cae/openfoam/1.5/OpenFOAM-1.5/applications/bin/linux64GccDPOpt/fluentMeshToFoam"
#4 main in "/opt/bwgrid/cae/openfoam/1.5/OpenFOAM-1.5/applications/bin/linux64GccDPOpt/fluentMeshToFoam"
#5 __libc_start_main in "/lib64/libc.so.6"
#6 __gxx_personality_v0 in "/opt/bwgrid/cae/openfoam/1.5/OpenFOAM-1.5/applications/bin/linux64GccDPOpt/fluentMeshToFoam"
flying is offline   Reply With Quote

Old   June 19, 2012, 03:47
Default
  #15
New Member
 
kumawat
Join Date: Feb 2012
Posts: 5
Rep Power: 14
kumawatnana is on a distinguished road
Hi
i am new in OpenFOAM. i am trying to convert Fluent mesh file to OpenFOAM by using fluentMeshToFoam command in command prompt but i got "fluentMeshToFoam is not recognized as internal or external command operable program or batch file " massage .Can any one help me on this problem if possible send me step by step Procedure of mesh conversion.
thanks
Kumavat
kumawatnana is offline   Reply With Quote

Old   June 19, 2012, 03:50
Default OpenFOAM mesh conversion Problem
  #16
New Member
 
kumawat
Join Date: Feb 2012
Posts: 5
Rep Power: 14
kumawatnana is on a distinguished road
Hi
i am new in OpenFOAM. i am trying to convert Fluent mesh file to OpenFOAM by using fluentMeshToFoam command in command prompt but i got "fluentMeshToFoam is not recognized as internal or external command operable program or batch file " massage .Can any one help me on this problem if possible send me step by step Procedure of mesh conversion.
thanks
Kumavat
kumawatnana is offline   Reply With Quote

Old   November 17, 2012, 04:30
Default
  #17
Senior Member
 
zaynah K.
Join Date: Jun 2012
Location: Mauritius
Posts: 138
Rep Power: 13
zaynah04 is on a distinguished road
I want to import my gambit mesh to open foam
I did create a case directory but still when i do fluent3DMeshToFoam
i obtain " command not find"

can anyone please explain to me step by step what must i do?
i am a newbie in both openfoam and ubuntu...

any help would be welcome.
regards

zaynah
zaynah04 is offline   Reply With Quote

Old   November 17, 2012, 04:47
Default
  #18
New Member
 
kumawat
Join Date: Feb 2012
Posts: 5
Rep Power: 14
kumawatnana is on a distinguished road
hii,
1) put your mesh file in working directory where o, constant ...folders are their .
2)after that go to working directory through command prompt.
3)then type fluent3DMeshToFoam <space> mesh file name.
try it....
regards
kumavat
kumawatnana is offline   Reply With Quote

Old   November 17, 2012, 04:57
Default
  #19
Senior Member
 
zaynah K.
Join Date: Jun 2012
Location: Mauritius
Posts: 138
Rep Power: 13
zaynah04 is on a distinguished road
hi
thanks for your quick reply..
i did it but still i get " command not found"
zaynah04 is offline   Reply With Quote

Old   November 17, 2012, 06:25
Default
  #20
New Member
 
kumawat
Join Date: Feb 2012
Posts: 5
Rep Power: 14
kumawatnana is on a distinguished road
ok,
after entering into working directory just type fluent and after that tab button (keybord) two times then yes you will get commands which you can use on your system in that search fluent3DMeshToFoam if available then only you can able to convert mesh in your system. Also remember that "fluent3DMeshToFoam" is case sensetive
kumawatnana 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] surface mesh merging problem everest ANSYS Meshing & Geometry 44 April 14, 2016 07:41
Running UDF with Supercomputer roi247 FLUENT 4 October 15, 2015 14:41
[snappyHexMesh] No layers in a small gap bobburnquist OpenFOAM Meshing & Mesh Conversion 6 August 26, 2015 10:38
[ICEM] Problem making structured mesh on a surface froztbear ANSYS Meshing & Geometry 4 November 10, 2011 09:52
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55


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