|
[Sponsors] |
How to calculate gradient of pressure and velocity on an outlet face |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 5, 2008, 21:15 |
Hi All,
I need to find the
|
#1 |
Senior Member
Senthil Kabilan
Join Date: Mar 2009
Posts: 113
Rep Power: 17 |
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 |
|
December 8, 2008, 05:41 |
Maybe you can use the "sample"
|
#2 |
Senior Member
Wolfgang Heydlauff
Join Date: Mar 2009
Location: Germany
Posts: 136
Rep Power: 21 |
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. |
|
December 8, 2008, 18:26 |
Hi Wolfgang,
Thanks for the
|
#3 |
Senior Member
Senthil Kabilan
Join Date: Mar 2009
Posts: 113
Rep Power: 17 |
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 |
|
|
|
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 |