I'm doing calculations on a boundary patch of the polyMesh (polyPatch), and the calculations are done for each face of the patch. How can I change the value of the vol*Field based on such computation? I.e.

Code:

initialize some vol*Field

go through all the faces of one boundary patch
{
calculate something for a face
change the value of the vol*Field of the owner cell of this face
}

Everything is clear as day except for the changing of the vol*Field value in the cellCentre. I'm thinking about using faceToCell class, but I don't think it makes sense, since a cell selected this way, has no idea about the field value in it's centre.