CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Post-Processing (
-   -   How to calculate flux across the patch (

unit October 28, 2008 15:40

Hello. My field variable is

My field variable is a scalar (concentration). I need to calculate the
flux (which is -grad(C)) across one of the patches. I could use
patchIntegrate utility for integration over the patch but I need
gradient field for that.

foamCalc utility can calculate div(U) but only for vector fields. Is
there a way to automatically calculate the field of gradients having
the field of scalar?

Thank you for your help,

All times are GMT -4. The time now is 19:50.