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

Acess the neighboring region in multi-region problem

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By dlahaye

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 23, 2021, 12:42
Default Acess the neighboring region in multi-region problem
  #1
New Member
 
Saumava Dey
Join Date: Sep 2020
Posts: 29
Rep Power: 6
saumavadey is on a distinguished road
Hello!

I am developing my own multi-region solver in OpenFOAM where I need to identify the neighboring solid regions of a particular fluid region and vice versa.
Would anyone please help me with any leads on how to achieve that?
saumavadey is offline   Reply With Quote

Old   July 24, 2021, 07:15
Default
  #2
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 802
Blog Entries: 1
Rep Power: 18
dlahaye is on a distinguished road
Access would be done on the boundary, correct?
saumavadey likes this.
dlahaye is offline   Reply With Quote

Old   August 8, 2021, 17:50
Default
  #3
New Member
 
Saumava Dey
Join Date: Sep 2020
Posts: 29
Rep Power: 6
saumavadey is on a distinguished road
I am trying to access the patch values of the field 'h' for a region from it's coupled patches. The snippet of the code looks like this:

forAll(mesh.boundaryMesh(), patchID)
{
if (isRegionPatch(patchID))
{
forAll(h.boundaryField()[patchID], faceID)
{
qINT[faceID] = qINT[faceID] + h.boundaryField()[patchID][faceID];
}
}
}

I think the use of the function 'isRegionPatch' is incorrect. Can anyone provide me with the correct usage of the function 'isRegionPatch'?
saumavadey is offline   Reply With Quote

Reply

Tags
multiregions


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
multi region problem in developing a new solver huyidao OpenFOAM Programming & Development 1 May 17, 2016 08:28
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 19:57
[Other] Material properties in multi region foam and refining mesh for each region mukut OpenFOAM Meshing & Mesh Conversion 2 October 7, 2013 03:08
Nonconvergence in a multiple region Laplacian problem kmurphy OpenFOAM Running, Solving & CFD 4 June 8, 2006 05:40
[Gmsh] Import gmsh msh to Foam adorean OpenFOAM Meshing & Mesh Conversion 24 April 27, 2005 09:19


All times are GMT -4. The time now is 17:22.