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

[Commercial meshers] About how to handle the interior face in Openfoam

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By waiter120

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 9, 2013, 17:27
Question About how to handle the interior face in Openfoam
  #1
Senior Member
 
Join Date: Nov 2012
Posts: 171
Rep Power: 14
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: 171
Rep Power: 14
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
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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: 171
Rep Power: 14
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
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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: 171
Rep Power: 14
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: 5
Rep Power: 13
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, 09:08
Default
  #8
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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 http://www.cfd-online.com/Forums/ope...tml#post346373 post #9?

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   May 2, 2013, 11:58
Default
  #9
New Member
 
Join Date: Sep 2011
Posts: 15
Rep Power: 15
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 )))
Ramzy1990 likes this.
waiter120 is offline   Reply With Quote

Reply


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
OpenFOAM 5.0 Released CFDFoundation OpenFOAM Announcements from OpenFOAM Foundation 11 June 6, 2018 00:48
OpenFOAM Training, London, Chicago, Munich, Houston 2016-2017 cfd.direct OpenFOAM Announcements from Other Sources 0 September 14, 2016 04:19
OpenFOAM Training: Programming CFD Course 12-13 and 19-20 April 2016 cfd.direct OpenFOAM Announcements from Other Sources 0 January 14, 2016 11:19
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 19:07
OpenFOAM Training and Workshop Zagreb 2628Jan2006 hjasak OpenFOAM 1 February 2, 2006 22:07


All times are GMT -4. The time now is 02:18.