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 get the pressure gradient value for a probe cell (https://www.cfd-online.com/Forums/openfoam-solving/59794-how-get-pressure-gradient-value-probe-cell.html)

hjasak March 11, 2007 03: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 22: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 01:14.