CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Programming & Development (
-   -   patch / vol*Field connection (

tomislav_maric November 9, 2009 05:46

patch / vol*Field connection

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.


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.

Any advice is useful, don't be shy... :)))


All times are GMT -4. The time now is 01:46.