boundary cells
Hi,
I have given a volVectorField U. U contains a boundaryField. I want to set the values of U at the cellcenter of the cells next to the boundary eqal to the values of U on the boundaryField. U.internalField()[?]=U.boundaryField()[wall][i] Illustration: 1 0 | 0 | 0 --> 1 1 | 0 | 0 2 0 | 0 | 0 --> 2 2 | 0 | 0 3 0 | 0 | 0 --> 3 3 | 0 | 0 Maybe someone has a useful hint, thanks, Martin. |
Hi Martin,
you get the adjacent cell of a boundary face by using mesh.owner(). Take care, that owner is not defined for local face numbers inside a patch but for global face numbers. Example that should do your job: Code:
forAll(U.boundaryField()[wall], iFaceLocal) Stefan |
Hi Stefan,
great, this is exactly what I was seeking for. Thanks a lot! (Just in case someone else also uses it: the last iFace is a iFaceLocal, of course). Best wishes, Martin. |
boundary face owning cell
Hey Foamers,
im am a little stuck here.. I am looping over faces in my boundary patch. I need to check for a property in the cell belonging to the face. So I do something like: Code:
In the loop: Code:
###jet- ownercell:37 ,face: 129 ,current population:5 The number of faces for the patch is correct (145) but i have way less owners (and dividing 145 by three does not give me an integer anyways). The manual says: Code:
In the case of boundaries, the connected cell is the owner and the neighbour is assigned the label ‘-1’. With this in mind, the I/O specification consists of the following files So why do three faces belong to one cell? And how do I adress the 145 cells above my 145 boundary faces? Thanks a bunch! |
All times are GMT -4. The time now is 10:44. |