CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

How to make right addressing for interface pathces?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 24, 2018, 03:43
Default How to make right addressing for interface pathces?
  #1
Member
 
Emad Tandis
Join Date: Sep 2010
Posts: 77
Rep Power: 16
EmadTandis is on a distinguished road
Hello Friends
I am quite new to addressing in OpenFoam and the way coupledpatch boundaries use addressing to find their shadow faces on shadow patch. So excuse me if the question is not very clear.

I have two meshes with a interface (regionCoupling patches) whose faces match together. But their addressing are not correct. for exmaple patch1 on mesh 1 and patch2 on mesh2 are regionCoupling type whose shadowPatch() functions refer to each other. But:
patch1.Cf()[i]=patch1().shadowPatch().Cf()[k]
I need to change addressing in order to have match faces on both side ( i.e. i=k)

How can I do that?
EmadTandis is offline   Reply With Quote

Old   December 25, 2018, 10:14
Default
  #2
New Member
 
ANKUR GARG
Join Date: Mar 2017
Posts: 23
Rep Power: 9
ankur_garg is on a distinguished road
Do you mean to say that both the patches contain same number of faces, but when you call
(1) from patch1.Cf()[i];
(2) from patch1().shadowPatch().Cf()[i]
are not same?


Do you also mean that both the face Centres should be same?



PS: I haven't worked on the same. But I just wanted to be clear about your question first!
__________________
Ankur Garg
ankur_garg is offline   Reply With Quote

Old   December 26, 2018, 01:41
Default
  #3
Member
 
Emad Tandis
Join Date: Sep 2010
Posts: 77
Rep Power: 16
EmadTandis is on a distinguished road
Quote:
Originally Posted by ankur_garg View Post
Do you mean to say that both the patches contain same number of faces, but when you call
(1) from patch1.Cf()[i];
(2) from patch1().shadowPatch().Cf()[i]
are not same?


Do you also mean that both the face Centres should be same?



PS: I haven't worked on the same. But I just wanted to be clear about your question first!

Thanks for your reply
Yes. You realized the problem correctly and actually I solved it yesterday. The problem was as below:
I built my fluid and solid meshes in Gambit separately and transferred them to OF. Problem arises form the fact that interface boundaries included multiple FACES and the order that I chose them for fluid and solid parts was different. As a result, addressing in openfoam for interface patches and their shadow was mismatch. So, by making a same order for choosing FACES for the shared interface I could solve the problem.

I hope it can help other Foamer who are dealing with interface with multiple geometries.
EmadTandis is offline   Reply With Quote

Old   April 22, 2019, 11:23
Default
  #4
New Member
 
Gaoqiang Yang
Join Date: Apr 2018
Posts: 14
Rep Power: 8
shanyeyun is on a distinguished road
Quote:
Originally Posted by EmadTandis View Post
Thanks for your reply
Yes. You realized the problem correctly and actually I solved it yesterday. The problem was as below:
I built my fluid and solid meshes in Gambit separately and transferred them to OF. Problem arises form the fact that interface boundaries included multiple FACES and the order that I chose them for fluid and solid parts was different. As a result, addressing in openfoam for interface patches and their shadow was mismatch. So, by making a same order for choosing FACES for the shared interface I could solve the problem.

I hope it can help other Foamer who are dealing with interface with multiple geometries.
Hi, could please explain further that how you solved the problem? Thanks a lot
shanyeyun 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
[waves2Foam] Waves2Foam Related Topics ngj OpenFOAM Community Contributions 660 August 20, 2018 12:39
how can make normal shock in the nozzle at inlet B.C : Pressure Far field SonicGhoul FLUENT 2 May 8, 2016 05:16
how to make a series of plane with equidistance in postprossing of result sunxihui FLUENT 0 January 13, 2013 09:50
a way to make lots of money quick and easy no lies Dob Main CFD Forum 0 October 10, 2006 16:45
[Q]How to make MPEGs with CFD datas??? Bum-Seok Hyun Main CFD Forum 4 February 16, 2000 18:59


All times are GMT -4. The time now is 21:34.