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

Usage of isRegionPatch

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 5, 2021, 16:13
Default Usage of isRegionPatch
  #1
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
coupled boundary, 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
Large memory usage for steady simulation Wenqiang SU2 2 May 15, 2020 14:40
[ANSYS Meshing] is my memory usage normal? Renold ANSYS Meshing & Geometry 2 April 9, 2019 15:09
New workstation for different usage scenarios - CPU and RAM natem Hardware 6 August 7, 2013 03:47
Boosting CPU usage earlybird FLUENT 2 November 2, 2012 11:32
OpenFOAM Solver/BC usage description murrayjc OpenFOAM 3 August 25, 2009 05:48


All times are GMT -4. The time now is 11:36.