Loop over faces of cell
Hey,
I have a surfaceScalarField phi2 which is kind of same like flux phi from U. Now I would like to combine phi and phi2 in another field phiFinal. To decide, which value of phi/phi2 needs to be added, I loop over all cells and check the value of my volScalarField A inside this cell. How can I change the values? At the moment I just know how to get the faces of my cell like this Code:
forAll(A,celli) Thanks in advance Chris. |
A face has always two cells which it is bounding. On which cell owner or neighbor you want to base your I else statement?
|
All times are GMT -4. The time now is 23:08. |