CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   Gradient calculation (https://www.cfd-online.com/Forums/openfoam-post-processing/61354-gradient-calculation.html)

jens_klostermann October 20, 2008 13: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?

Jens


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