CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Post-Processing (
-   -   Gradient calculation (

jens_klostermann October 20, 2008 12:48

I define a volScalarField linP
I define a volScalarField linP = gradP * (flowDirection & (mesh.C()))
,where gradP is a constant scalar and flowDirection a unitvector (both as in channelOodles)

if I now check mag(fvc::grad(linP)) it is not equal gradP, why?

Is there a way to improve this?


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