CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   How to compute the second derivative of pressure (https://www.cfd-online.com/Forums/openfoam-solving/58177-how-compute-second-derivative-pressure.html)

skabilan December 11, 2008 00:33

Hi All, I would like comput
 
Hi All,

I would like compute the second derivative of p with respect to x, y and z and also impose a boundary condition that the second derivative of p wrt the normal direction is zero at the outlets. Where should I start? Anyone solved a similar problem? Any help will be very much appreciated.

Thanks all in advance!
Senthil

xiao December 22, 2008 16:53

volScalarField dpdx = fvc:grad
 
volScalarField dpdx = fvc:grad(p);
volScalarField dp2dxx = fvc:grad(dpdx);

Would that work? Not tried. I computed gradient of p only.


All times are GMT -4. The time now is 18:00.