CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Post-Processing (
-   -   Use of foamCalc (

msarkar August 16, 2013 06:53

Use of foamCalc
Hi Foamers,

Could you please tell me the use of foamCalc utility? What does each of the following option mean: what exactly they do?

foamCalc addSubtract
foamCalc components
foamCalc div
foamCalc interpolate
foamCalc mag
foamCalc magGrad
foamCalc magSqr
foamCalc randomise

From where I can get details about this utility.

Thanks in advance.

anon_e September 30, 2013 08:06


as I work with foamCalc a littlte, I'll tell you what I know:

foamCalc mag U calculates the magnitute of U at each time. When you would like to specify a time, write fe -latestTime behind the option.

You can sample the outcomes by sample utility (which does need a special sampleDict).


fumiya May 4, 2016 01:43


I'm trying to give a description of each operation in my blog post:

Hope this helps,

All times are GMT -4. The time now is 05:11.