CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   How to get the pressure gradient value for a probe cell (http://www.cfd-online.com/Forums/openfoam-solving/59794-how-get-pressure-gradient-value-probe-cell.html)

hjasak March 11, 2007 04:42

Easy: for memeory management,
 
Easy: for memeory management, gradient returns a temporary. Thus:

fvc::grad(p)().internalField()[probeCell]

.internalField() is not strictly needed but makes it easier to understand what you're doing.

Hrv

sven November 5, 2009 23:27

can I do the same for the temperature gradient at a wall? how can I put out a gradient at a wall over time? can i use the probing utility for this? Thanks a lot!


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