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

How to calculate the gradient of pressure and velocity

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 27, 2011, 06:12
Default How to calculate the gradient of pressure and velocity
  #1
New Member
 
Diego Sene Alves
Join Date: Aug 2011
Posts: 7
Rep Power: 15
diegosene is on a distinguished road
Hello guys, I am really new in OpenFoam and i really need some help.

I would like to know how to calculate the gradient of pressure and velocity in the same boundary condition?

Thanks in advance
diegosene is offline   Reply With Quote

Old   September 28, 2011, 09:46
Default
  #2
Member
 
Daniel
Join Date: Apr 2010
Location: Manchester
Posts: 30
Rep Power: 16
drrbradford is on a distinguished road
Diego,

Could you be a little more clear about what it is you want to find out? Do you want to map velocity gradients when post processing?
drrbradford is offline   Reply With Quote

Old   September 28, 2011, 10:03
Default
  #3
New Member
 
Diego Sene Alves
Join Date: Aug 2011
Posts: 7
Rep Power: 15
diegosene is on a distinguished road
Hey! sorry for the few details.

I am changing and creating some boundary conditions with heritance from the mixedFvPatchField.
I am creating a B.C. that will calculate the gradient of the pressure and the velocity, in the same B.C.
and then, create another 2 B.C. one velocity"blabla"Fvvectorfield and other pressure"blabla"FvScalarfield that will just "call" the value of the gradients.

For example
For an outlet using the pressure"blabla"Fvscalarfield, it will call the the gradient from the first B.C.
but i dont know how to calculate both gradients in the same B.C.
Do i need to use snGrad? and how would be the code for that?

Because using this from the mixedFvPatchField:
template<class Type>
tmp<Field<Type> > mixedFvPatchField<Type>::snGrad() const
{
return
valueFraction_
*(refValue_ - this->patchInternalField())
*this->patch().deltaCoeffs()
+ (1.0 - valueFraction_)*refGrad_;
}

Is there someway to differ velocity and pressure when pointing the patchInternalField?
if I use p.InternalField is correct?
diegosene is offline   Reply With Quote

Reply

Tags
pressure gradient, velocity gradient


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
How to calculate gradient of pressure and velocity on an outlet face skabilan OpenFOAM Running, Solving & CFD 2 December 8, 2008 18:26
Neumann pressure BC and velocity field Antech Main CFD Forum 0 April 25, 2006 03:15
Variables Definition in CFX Solver 5.6 R P CFX 2 October 26, 2004 03:13
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 10:11
what the result is negatif pressure at inlet chong chee nan FLUENT 0 December 29, 2001 06:13


All times are GMT -4. The time now is 03:25.