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

[Commercial meshers] fluentMeshToFoam error

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 13, 2009, 12:26
Default fluentMeshToFoam error
  #1
New Member
 
Adrian Stalnak
Join Date: Jul 2009
Posts: 18
Rep Power: 16
bucksfan is on a distinguished road
Hello,

Every time I try to mesh anything that I just built with gambit using the fluentMeshToFoam command it always gives me the same error,

Problem : cannot find a single face in the mesh which uses vertices 4(0 2 400 399)

From function findFace(const primitiveMesh&, const face&)
in file fluentMeshToFoam.L at line 858.


I was wondering if there was a way around this or if i should be using a different version of if there was something that I could to get around this.

Thanks
bucksfan is offline   Reply With Quote

Old   August 13, 2009, 13:14
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by bucksfan View Post
Hello,

Every time I try to mesh anything that I just built with gambit using the fluentMeshToFoam command it always gives me the same error,
Just to clarify (because in my opinion you mixed some things up in that sentence):
- you built the geometry in Gambit
- you meshed it in Gambit
- exported the mesh to an MSH file
- now you try to convert it using fluentMeshToFoam

Step 2 is essential (fluentMeshToFoam wants a complete mesh I think)

Quote:
Originally Posted by bucksfan View Post
Problem : cannot find a single face in the mesh which uses vertices 4(0 2 400 399)

From function findFace(const primitiveMesh&, const face&)
in file fluentMeshToFoam.L at line 858.


I was wondering if there was a way around this or if i should be using a different version of if there was something that I could to get around this.
I'm not aware of any special version dependence of this converter. Are there any special features in all your meshes?

Two tips:
- try the other convert fluent3dMeshToFoam
- build the simplest possible Geometry (for instance a cube), mesh it and then try the converter on it. If that works add the particular specialities of your mesh to it until it breaks

Bernhard
gschaider is offline   Reply With Quote

Old   August 17, 2009, 11:33
Default
  #3
New Member
 
Adrian Stalnak
Join Date: Jul 2009
Posts: 18
Rep Power: 16
bucksfan is on a distinguished road
It breaks at the cube. I'm trying to create an empty room with an inlet on the upper right wall for a flow and an outlet on the ceiling. But even when I just made it a simple cube with none of the patches it won't even convert over to foam format.
bucksfan is offline   Reply With Quote

Old   August 17, 2009, 11:35
Default
  #4
New Member
 
Adrian Stalnak
Join Date: Jul 2009
Posts: 18
Rep Power: 16
bucksfan is on a distinguished road
And yes sorry the steps that you listed is exactly what I did. Sorry I was a little frusterated when I wrote the first post so it probably wasn't that coherent.
bucksfan is offline   Reply With Quote

Old   August 17, 2009, 15:20
Default
  #5
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by bucksfan View Post
It breaks at the cube. I'm trying to create an empty room with an inlet on the upper right wall for a flow and an outlet on the ceiling. But even when I just made it a simple cube with none of the patches it won't even convert over to foam format.
And you tried the other converter, too? Strange. The cells are nothing fancy? Hexes and/or tets?
But those converters usually work without big problems.

Another question: you're running Gambit on Linux, right? I mean: the msh-file has never been handled by a Windoze-machine? Because there are problems with that (the old Newline-problem)

Quote:
Originally Posted by bucksfan View Post
And yes sorry the steps that you listed is exactly what I did. Sorry I was a little frusterated when I wrote the first post so it probably wasn't that coherent.
The thing is that there were occasions were everyone was trying to help people assuming that the problem happened "at the end" when the problem already occured "in the beginning" because everyone assumed "that can't be the problem"
gschaider is offline   Reply With Quote

Old   August 18, 2009, 09:41
Default
  #6
New Member
 
Adrian Stalnak
Join Date: Jul 2009
Posts: 18
Rep Power: 16
bucksfan is on a distinguished road
Well I'm running an ssh on a windows box to a linux cluster so it was techinically never really touched by windows really. And no the cells are all normal, it doesn't have to be oriented any certian way does it? The other mesh i created didn't. And fluent3DMeshToFoam isn't working either.
bucksfan is offline   Reply With Quote

Old   August 19, 2009, 05:18
Default
  #7
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by bucksfan View Post
Well I'm running an ssh on a windows box to a linux cluster so it was techinically never really touched by windows really.
Just checking. Because I think in the past there were problems with MSH-files generated with Windows-versions of Gambit and/or being opened and saved with the Notepad. But run dos2unix on the file to be sure
Quote:
Originally Posted by bucksfan View Post
And no the cells are all normal, it doesn't have to be oriented any certian way does it?
Not really. General polyeders would be a problem, I guess. But Gambit doesn'T create those anyway
Quote:
Originally Posted by bucksfan View Post
The other mesh i created didn't. And fluent3DMeshToFoam isn't working either.
Have you ever tried fluentMeshToFoam on the msh-file in the icoFoam/elbow-tutorial?
gschaider is offline   Reply With Quote

Old   August 19, 2009, 09:16
Default
  #8
New Member
 
Adrian Stalnak
Join Date: Jul 2009
Posts: 18
Rep Power: 16
bucksfan is on a distinguished road
Ok well i tried the dos2unix and i am still having the same error pop up. And I just tried running it in icoFoam and it worked perfect. I'm just not understanding why this is popping up at all. Because its only a very very simple mesh.
bucksfan is offline   Reply With Quote

Old   August 19, 2009, 16:22
Default
  #9
Senior Member
 
BastiL
Join Date: Mar 2009
Posts: 530
Rep Power: 20
bastil is on a distinguished road
Just one more hint: For both converters meshes nedd to be saved in ASCII-Foramt, binary format is not supported.

Regards
bastil is offline   Reply With Quote

Old   August 21, 2009, 10:42
Default
  #10
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by bastil View Post
Just one more hint: For both converters meshes nedd to be saved in ASCII-Foramt, binary format is not supported.
If I understood his last remark correctly, the mesh gets converted, he just gets a warning message.

@bucksfan: could you post a small mesh to have a look at it?
gschaider is offline   Reply With Quote

Old   October 1, 2009, 09:26
Default
  #11
New Member
 
Milos Stanic
Join Date: Mar 2009
Location: Novi Sad, Serbia
Posts: 29
Rep Power: 17
milos is on a distinguished road
Quote:
Originally Posted by gschaider View Post
Just to clarify (because in my opinion you mixed some things up in that sentence):
- you built the geometry in Gambit
- you meshed it in Gambit
- exported the mesh to an MSH file
- now you try to convert it using fluentMeshToFoam
I did all this and it reports the same thing (can't find vertices...). First I thought it was due a complex geometry, so I made a simple pipe, divided it into two volumes, meshed them (with different steps), then merged them in order to get a coherent single volume. Exported it in .msh format and fluentMeshToFoam reports the mentioned 'vertices' error.

I also tried fluent3DMeshToFoam and it worked, but it's of no use since no boundaries are specified.

My Gambit runs on Windows XP.

Any additional suggestions or ideas?

Thnx a million!
milos is offline   Reply With Quote

Old   October 9, 2009, 14:03
Default
  #12
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by milos View Post
I did all this and it reports the same thing (can't find vertices...). First I thought it was due a complex geometry, so I made a simple pipe, divided it into two volumes, meshed them (with different steps), then merged them in order to get a coherent single volume. Exported it in .msh format and fluentMeshToFoam reports the mentioned 'vertices' error.

I also tried fluent3DMeshToFoam and it worked, but it's of no use since no boundaries are specified.

My Gambit runs on Windows XP.

Any additional suggestions or ideas?
And you treated the msh-file with dos2unix (that was discussed above!!). That is important if you use an operating system that is not the proper choice for CAE

Bernhard
gschaider is offline   Reply With Quote

Old   October 12, 2009, 05:24
Default
  #13
New Member
 
Milos Stanic
Join Date: Mar 2009
Location: Novi Sad, Serbia
Posts: 29
Rep Power: 17
milos is on a distinguished road
Yeah, I tried it several times. I hope the command should look like this:

dos2unix nameofthefile.msh

I also tried:

dos2unix nameofthefile.msh -c iso newnameofthefile.msh

, but it says that '-c' is not an option.

Still doesn't work.
milos is offline   Reply With Quote

Old   October 12, 2009, 13:07
Default
  #14
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by milos View Post
Yeah, I tried it several times. I hope the command should look like this:

dos2unix nameofthefile.msh

I also tried:

dos2unix nameofthefile.msh -c iso newnameofthefile.msh

, but it says that '-c' is not an option.

Still doesn't work.
Sorry for asking that. It was the only guess I had from that information. And as the other converter works it looks like you HAVE a volume-mesh (the absence of which throws a similar error message AFAIR)

Bernhard
gschaider is offline   Reply With Quote

Old   October 13, 2009, 06:00
Default
  #15
New Member
 
Milos Stanic
Join Date: Mar 2009
Location: Novi Sad, Serbia
Posts: 29
Rep Power: 17
milos is on a distinguished road
It is a volume mesh... Fortunately, it's not necessary for now to merge and refine different meshes in multiple volumes, but I would like to know how to overcome that problem for future situations.

Thnx for the effort. If anyone comes up with any ideas, please let me know.

Milos
milos 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
[blockMesh] blockMesh with double grading. spwater OpenFOAM Meshing & Mesh Conversion 92 January 12, 2019 10:00
error compiling modified applications yvyan OpenFOAM Programming & Development 21 March 1, 2016 05:53
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM Community Contributions 300 October 29, 2014 19:00
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 10:17
Ansys Fluent 13.0 UDF compilation problem in Window XP (32 bit) Yogini Fluent UDF and Scheme Programming 7 October 3, 2012 08:24


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