CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Accessing phi() on arbitrary internal face (https://www.cfd-online.com/Forums/openfoam-solving/130469-accessing-phi-arbitrary-internal-face.html)

Vesposo February 26, 2014 11:38

Accessing phi() on arbitrary internal face
 
Hi,

assuming I have a labelList of arbitrary faces of my internal mesh. How can I access phi() on that faces to calculate the massFlow in my boundary condition routine?

I tried

this->patch().boundaryMesh().mesh().phi()[faceLabel];

without success.


All times are GMT -4. The time now is 21:14.