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

[Other] Getting the cells next to a patch

Register Blogs Community New Posts Updated Threads Search

Like Tree15Likes
  • 1 Post By arkangel
  • 10 Post By hjasak
  • 3 Post By nygbook
  • 1 Post By nygbook

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   December 8, 2010, 09:05
Default Getting the cells next to a patch
  #1
Member
 
O R
Join Date: Mar 2009
Posts: 50
Rep Power: 17
arkangel is on a distinguished road
Dear Foamers,

I want to get the indexes of the cells right next to a patch. In other words, I want to access the owner index of a face that conforms a patch

something like this

Code:
foreach (patchList , patchI){
    foreach (patchList[patchI].faces(), facesI){
        mesh.C[patchList[patchI].faces[facesI].owner] =val;

   }
 }
or maybe you have a better idea of how can I do it

thanks !!
mm.abdollahzadeh likes this.

Last edited by arkangel; December 8, 2010 at 09:20.
arkangel is offline   Reply With Quote

 


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
cellZone not taking all the cells inside rahulksoni OpenFOAM Running, Solving & CFD 6 January 25, 2019 00:11
[snappyHexMesh] SHM Layer Addition Phase dickcruz OpenFOAM Meshing & Mesh Conversion 4 November 1, 2018 07:05
[snappyHexMesh] sHM layer process keeps getting killed MBttR OpenFOAM Meshing & Mesh Conversion 4 August 15, 2016 03:21
Problem with cyclic boundaries in Openfoam 1.5 fs82 OpenFOAM 36 January 7, 2015 00:31
Cyclic Boundary Condition Luiz Eduardo Bittencourt Sampaio (Sampaio) OpenFOAM Running, Solving & CFD 36 July 2, 2012 12:23


All times are GMT -4. The time now is 06:55.