CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

How to get the pressure gradient value for a probe cell

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   March 11, 2007, 04:42
Default Easy: for memeory management,
  #1
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,758
Rep Power: 21
hjasak will become famous soon enough
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
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   November 5, 2009, 23:27
Default
  #2
Member
 
Sven Winkler
Join Date: May 2009
Posts: 70
Rep Power: 8
sven is on a distinguished road
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!
sven is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Zero pressure gradient selim CFX 2 February 27, 2008 04:00
Pressure Gradient! Usman CFX 2 January 16, 2008 04:30
UDF: Density Cell Gradient Vector Macros matteo FLUENT 0 December 1, 2007 13:14
-------pressure gradient mech FLUENT 1 August 24, 2006 03:29
Pressure gradient Munni FLUENT 0 August 27, 2001 13:58


All times are GMT -4. The time now is 13:59.