CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   patch / vol*Field connection (http://www.cfd-online.com/Forums/openfoam-programming-development/69906-patch-vol-field-connection.html)

tomislav_maric November 9, 2009 05:46

patch / vol*Field connection
 
Hi,

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.

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

Tomislav


All times are GMT -4. The time now is 03:37.