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

How to calculate gradient of pressure and velocity on an outlet face

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 5, 2008, 21:15
Default Hi All, I need to find the
  #1
Senior Member
 
Senthil Kabilan
Join Date: Mar 2009
Posts: 113
Rep Power: 17
skabilan is on a distinguished road
Hi All,

I need to find the gradient of normal velocity (averaged over the outlet surface) along the direction normal to the outlets and also the gradient of pressure (once again an average) along the direction normal to the outlets.

Thanks in advance!
Senthil
skabilan is offline   Reply With Quote

Old   December 8, 2008, 05:41
Default Maybe you can use the "sample"
  #2
Senior Member
 
Wolfgang Heydlauff
Join Date: Mar 2009
Location: Germany
Posts: 136
Rep Power: 21
wolle1982 will become famous soon enough
Maybe you can use the "sample"-Tool.

go look at http://www.cfd-online.com/OpenFOAM_D...s/1/10206.html

insteat of the points-"cloud" you also can use the "uniform" command which creates a line with variable number of points.
wolle1982 is offline   Reply With Quote

Old   December 8, 2008, 18:26
Default Hi Wolfgang, Thanks for the
  #3
Senior Member
 
Senthil Kabilan
Join Date: Mar 2009
Posts: 113
Rep Power: 17
skabilan is on a distinguished road
Hi Wolfgang,

Thanks for the Help. Actually, I wanted to calculate the both the gradients on the fly (i.e., after every iteration). I was using the buildGlobalBoundaryList.H computeMassFlux.H files to compute the massflux at the boundaries in my icoFoam. I used the following two lines to calculate the maximum gradient of velocity and pressure along the normal direction.

max_vel_grad= max(mag(U.boundaryField()[patchIndex].snGrad()));
max_press_grad=max(p.boundaryField()[patchIndex].snGrad());

Let me know if it is doing other than what I think it is doing!

Thanks in advance!
Senthil
skabilan is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF-How to calculate gradient of a scalar Tony Tonton Fluent UDF and Scheme Programming 19 November 20, 2023 09:13
velocity inlet and pressure outlet Ebrahim FLUENT 5 January 15, 2015 18:14
Calculate the pressure gradient skabilan OpenFOAM Running, Solving & CFD 0 March 6, 2009 04:51
how to calculate the temperature gradient of wall houbaolin FLUENT 0 July 28, 2008 03:51
Calculate normal gradient Sunil FLUENT 0 April 30, 2008 17:44


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