|
[Sponsors] |
Acess the neighboring region in multi-region problem |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 23, 2021, 12:42 |
Acess the neighboring region in multi-region problem
|
#1 |
New Member
Saumava Dey
Join Date: Sep 2020
Posts: 29
Rep Power: 6 |
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? |
|
August 8, 2021, 17:50 |
|
#3 |
New Member
Saumava Dey
Join Date: Sep 2020
Posts: 29
Rep Power: 6 |
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'? |
|
Tags |
multiregions |
|
|
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 |