- **OpenFOAM Running, Solving & CFD**
(*http://www.cfd-online.com/Forums/openfoam-solving/*)

- - **About surface weighed average **
(*http://www.cfd-online.com/Forums/openfoam-solving/59861-about-surface-weighed-average.html*)

Hello,
I want to calculate Hello,
I want to calculate a surface weighed average at a fixed plane of my computational domain DURING the computation. I controle it well for boundary fields patches but not at all for internal field surfaces. I have looked at the diffferent threats but it is not clear for me and have some questions: 1) The value I want to interpolate at the surface is a scalar. Is it possible to use the function fvc::interpolate(Myscalar) ? 2)Now, guessing I have the interpolated value, I need to estimate my surface area. I can do it using magSf() for example. However, how do I know which faceI indice it is relatively to my cell location ? For example I know the indices of the two cells that surrounds the plane surface on which I want the interpolated value but I don't know how to indice the faceI to be sure to get the right indice location. Will mesh.Sf()[2] give me all the surface area in the direction [2] ? Is there any findFace as there is a findCell function ? Thanks you, anne |

Quote:
Did you find any answer (on your 2nd point more precicely)? I have the same problem: I'd like to know how I can access/choose the area (of only one of the 6 faces) of an internal cubical finite volume (not near a patch). I know I have to use the magSf command, but I don't know which face area (or which direction) of the finite volume it gives me. If you have any infos on this can you foward them to me? If you don't have any, good luck for your search (if I find anything I'll think about you)! Maxime |

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