|
[Sponsors] |
pointVectorField index from known volVectorField index |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 14, 2020, 13:46 |
pointVectorField index from known volVectorField index
|
#1 |
Member
Join Date: Aug 2017
Posts: 32
Rep Power: 8 |
Howdy Yall:
I am trying to make a change on a point shared by two patches. Looping over the volVectorField mesh parameters, (patches, faces and points), I can find which points are shared by two patches. Now that I have a patchID, faceID and pointID I want to get the corresponding index from a pointVectorField. Code:
forAll(cPatchBI, faceBI) // faceI: the face whose neighbour faces we want { forAll(cPatch, faceJ) // faceJ: possible neighbour face { forAll(cPatchBI[faceBI], pointBI) // check all points of which faceI consists { forAll(cPatch[faceJ], pointJ) // and compare them with the ones of faceJ { if (cPatchBI[faceBI][pointBI] == cPatch[faceJ][pointJ]) { // pointVectorField[INDEX THAT I NEED].component(x,y,z) = volVectorField.boundaryFieldRef()[patchID][faceJ].component(x,y,z) [I am assigning the value on this face to the point of interest] } } } } } Last edited by siefer92; December 14, 2020 at 13:48. Reason: incomplete |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to get the global index of a cell in UDF | chuyi | Fluent UDF and Scheme Programming | 6 | October 23, 2017 12:28 |
[General] 2 datas on one plot | Akuji | ParaView | 46 | December 1, 2013 14:06 |
[OpenFOAM] Paraview 3.98 - errors when saving geometry file | pajot | ParaView | 1 | September 28, 2013 10:45 |
Doxygen documentation | Tanay | OpenFOAM Installation | 9 | September 23, 2011 11:40 |
OpenFOAM install on Ubuntu Natty 11.04 | bkubicek | OpenFOAM | 13 | May 26, 2011 05:48 |