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

About how to handle the interior face in Openfoam

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 9, 2013, 16:27
Question About how to handle the interior face in Openfoam
  #1
Senior Member
 
Join Date: Nov 2012
Posts: 168
Rep Power: 3
hz283 is on a distinguished road
Hi All,

Now I had a problem about how to deal with the "interface" or "interior" faces in Openfoam.

The Problem is like this:
I used ICEM to generate the meshes. Since the computational domain is complex and so I divided into the domain into several bodies. I generated the meshes for each body and then merge them together. Since the nodes belonging to the two neighboring bodies are not matched. I used "move nodes" to make them coincide. I tested this method using fluent and it seemed it is OK. But this mesh is read by Openfoam, the error message is like this:

Cannot find metach for first face. cell model: tet first model face 3(1 2 3) mesh face:
4
(
.....
...
...
...
)

I also tried the mesh with the interface nodes not moved by "move nodes" and this error does not appear.

I have tried to get some solutions for this:
1, try to improve the mesh using ICEM ? (using this method means that I should make the nodes on the interface metached from two sides)
2, using AMI to deal with the non-conformal mesh ? I checked the tutorials (http://www.openfoam.org/version2.1.0/ami.php) for AMI, but I found there is always another file about topoSet. Is this file particularly for AMI? (using this method means that it is not necessary to make the nodes matched.)

I think the interface or interior face between different bodies or mesh regions are common. But I do not know which method is the best way for Openfoam ? Does anybody know something about this? Any suggestions and comments are
welcome!

best regards,
H

Last edited by hz283; March 10, 2013 at 07:13.
hz283 is offline   Reply With Quote

Old   March 10, 2013, 07:13
Default
  #2
Senior Member
 
Join Date: Nov 2012
Posts: 168
Rep Power: 3
hz283 is on a distinguished road
Hi All,

Does anybody know something about this?

best regards,
H
Quote:
Originally Posted by hz283 View Post
Hi All,

Now I had a problem about how to deal with the "interface" or "interior" faces in Openfoam.

The Problem is like this:
I used ICEM to generate the meshes. Since the computational domain is complex and so I divided into the domain into several bodies. I generated the meshes for each body and then merge them together. Since the nodes belonging to the two neighboring bodies are not matched. I used "move nodes" to make them coincide. I tested this method using fluent and it seemed it is OK. But this mesh is read by Openfoam, the error message is like this:

Cannot find metach for first face. cell model: tet first model face 3(1 2 3) mesh face:
4
(
.....
...
...
...
)

I also tried the mesh with the interface nodes not moved by "move nodes" and this error does not appear.

I have tried to get some solutions for this:
1, try to improve the mesh using ICEM ? (using this method means that I should make the nodes on the interface metached from two sides)
2, using AMI to deal with the non-conformal mesh ? I checked the tutorials (http://www.openfoam.org/version2.1.0/ami.php) for AMI, but I found there is always another file about topoSet. Is this file particularly for AMI? (using this method means that it is not necessary to make the nodes matched.)

I think the interface or interior face between different bodies or mesh regions are common. But I do not know which method is the best way for Openfoam ? Does anybody know something about this? Any suggestions and comments are
welcome!

best regards,
H
hz283 is offline   Reply With Quote

Old   March 10, 2013, 08:03
Default
  #3
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 6,649
Blog Entries: 32
Rep Power: 67
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Greetings hz283,

I've moved your thread to the sub-forum that is dedicated for other meshers and OpenFOAM. You can find the sub-forum by going to:
On this sub-forum you can find the following threads :
Hopefully those two threads can provide the information you are looking for.

If not, I suggest that you create a simple test case that shows the problem you're having and share it with us, so that it's easier to help you find the solution with some trial-and-error.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   March 10, 2013, 08:14
Default
  #4
Senior Member
 
Join Date: Nov 2012
Posts: 168
Rep Power: 3
hz283 is on a distinguished road
Hi Bruno,

Actually I have done the test using the a backstep by ICEM.

I divided the whole computational domain into three bodies: nozzle, step and exit. There are two interfaces between nozzle and step, step and exit, respectively. And then I generate the mesh body by body, then merge them in ICEM.

I tried two methods:
1,in ICEM, I make the grid nodes from two bodies matched. Then output the mesh and set the interface face to be "interior", output the fluent format mesh. I used fluent to read the mesh. It is OK, but it is not when I used Openfoam.

2, I did not make the grid nodes matched and then output the fluent format mesh. The openfoam can read in without any error (I did not run it) but fluent will show errors.

I can share my fluent format mesh but I do not know how to upload it.

Thank you.
H

Quote:
Originally Posted by wyldckat View Post
Greetings hz283,

I've moved your thread to the sub-forum that is dedicated for other meshers and OpenFOAM. You can find the sub-forum by going to:
On this sub-forum you can find the following threads :
Hopefully those two threads can provide the information you are looking for.

If not, I suggest that you create a simple test case that shows the problem you're having and share it with us, so that it's easier to help you find the solution with some trial-and-error.

Best regards,
Bruno
hz283 is offline   Reply With Quote

Old   March 10, 2013, 08:23
Default
  #5
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 6,649
Blog Entries: 32
Rep Power: 67
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Quote:
Originally Posted by hz283 View Post
I can share my fluent format mesh but I do not know how to upload it.
Since I've got a feeling that your mesh is larger than 100 kB, I suggest you try Dropbox: https://www.dropbox.com - or it can be any other file sharing
website. All of the big companies now have it... some examples:
wyldckat is offline   Reply With Quote

Old   March 10, 2013, 08:39
Default
  #6
Senior Member
 
Join Date: Nov 2012
Posts: 168
Rep Power: 3
hz283 is on a distinguished road
Thank you so much, Bruno!

Just now I think I found that solution:

For multi-body meshes from ICEM, we can merge the grid nodes from two bodies at the interface face and then use the command fluent3DMeshToFoam.

But I am not sure if the following method can work or not:
Do not merge the mesh nodes at the interfaces and then AMI in openfoam.

Any comments are welcome.

Thank you again.
H

Quote:
Originally Posted by wyldckat View Post
Since I've got a feeling that your mesh is larger than 100 kB, I suggest you try Dropbox: https://www.dropbox.com - or it can be any other file sharing
website. All of the big companies now have it... some examples:
hz283 is offline   Reply With Quote

Old   March 26, 2013, 11:49
Default
  #7
New Member
 
Paul Schroder
Join Date: Mar 2013
Location: Pella, IA USA
Posts: 4
Rep Power: 3
Miner is on a distinguished road
This sounds a lot like a problem I have. I made a Fluent mesh and imported it using Fluent3DMeshToFoam. That worked fine. But I have a conjugate heat transfer problem, and if I make the fluid and solid meshes from 2 separate parts, I get no heat transfer across the interface. If I make the mesh from 2 bodies in a single part, OpenFOAM gives me an error related to the interface. It looks like "wall instead of mappedPatchBase". Does anyone know how to solve this?
Miner is offline   Reply With Quote

Old   April 1, 2013, 08:08
Default
  #8
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 6,649
Blog Entries: 32
Rep Power: 67
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Greetings Paul,

Quote:
Originally Posted by Miner View Post
This sounds a lot like a problem I have. I made a Fluent mesh and imported it using Fluent3DMeshToFoam. That worked fine. But I have a conjugate heat transfer problem, and if I make the fluid and solid meshes from 2 separate parts, I get no heat transfer across the interface. If I make the mesh from 2 bodies in a single part, OpenFOAM gives me an error related to the interface. It looks like "wall instead of mappedPatchBase". Does anyone know how to solve this?
Have you checked the solution given at fluentMeshToFoam multidomain mesh conversion problem post #9?

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   May 2, 2013, 10:58
Default
  #9
New Member
 
Join Date: Sep 2011
Posts: 13
Rep Power: 4
waiter120 is on a distinguished road
Hello, for everyone.
I want share my solution of converting ICEM CFD hex mesh to OpenFOAM mesh.
At start I have same problem as:

Cannot find metach for first face. cell model: tet first model face 3(1 2 3) mesh face:
4
(
...
...
)

The solution was found thanks to this amazing forum and all of its users.

So my recipe is like that.

1. Prepare mesh in ICEM CFD with all name selections
2. Export it to FLUENT_V6 (for my present experience, you don’t need specify BC in Output -> Boundary Condition (If I am wrong, please correct me))
3. Read mesh in FLUENT
4. Modify names of BC
4a. If you case is multi region (like chtMultiregionFoam). In FLUENT change type of coupled wall. From Wall to Interior (+ add interior- prefix to its name)
5. Change write-type to ascii “file/ binary-files? no”
6. Write .cas file
7. In OpenFOAM work directory
7a. fluentMeshToFoam –wrireZones fluent.cas
7b. splitMeshRegions -cellZones -overwrite

That’s ALL )))
waiter120 is offline   Reply With Quote

Reply

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 - Validation of Results Ahmed OpenFOAM Running, Solving & CFD 9 June 22, 2011 18:59
OpenFOAM 1.6.x, 1.7.0 and 1.7.x are not fully prepared to work with gcc-4.5.x wyldckat OpenFOAM Bugs 18 October 21, 2010 05:51
How to Install OpenFOAM on 64 Ubuntu 9.04 hansel OpenFOAM Installation 62 March 19, 2010 15:43
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 17 August 22, 2009 03:59
Adventure of fisrst openfoam installation on Ubuntu 710 jussi OpenFOAM Installation 0 April 24, 2008 14:25


All times are GMT -4. The time now is 05:15.