|
[Sponsors] |
August 21, 2014, 06:25 |
Get pressure from velocity
|
#1 |
Member
Join Date: Aug 2014
Posts: 58
Rep Power: 12 |
Hi everyone,
What's the best solution to get the pressure field from the velocity field ? Solving the pressure poisson equation (PPE) ? ( I will assume the boundary for conditions for pressure depending on each flows. ) Thank you very much ! samuel |
|
August 21, 2014, 08:56 |
|
#2 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
Quote:
is the velocity field divergence-free? If yes, you can solve the Poisson equation, however be careful your pressure will be defined apart a function of time |
||
August 21, 2014, 09:09 |
|
#3 |
Member
Join Date: Aug 2014
Posts: 58
Rep Power: 12 |
The velocity is assumed to be divergence-free ( the gradient of the out-of-plane component is very small ) .
I have solved the PPE but still get some wrong results compare to a fluent simulation. I am studying only steady cases so the time dependence does not matter. I am using finite differences to compute the RHS of the PPE ( Lap(P) = ux^2 + uxvy + uy^2 ). Are there any issues there ? ( I am using forward differences ). |
|
August 21, 2014, 12:30 |
|
#4 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
do you know the 3 velocity components in the same nodes of a Cartesian box? Are they equidistant?
First of all, check the (Div v) value in each node using central second order formula. Then, consider the steady momentum equation: Grad (p/rho0)= Div (2ni*Grad v - vv)and take the divergence of both sides to write the Poissone equation for pressure. Be carefull that boundary conditions must be properly posed on the frontier |
|
August 21, 2014, 14:01 |
|
#5 |
Member
Join Date: Aug 2014
Posts: 58
Rep Power: 12 |
The problem is that I not always know the three components. But if just know two of them, the case could often be assimilated to a planar case( in the flows I am going to study.. of course it's not always right!)
I have checked the divergence of the flow. What represent ni and vv in your equation ? If I take the divergence of both sides of the navier stokes equation grad(P) = 1/rho * [ - grad(v) v + nu * lap(v)] and assuming div(v) = 0 , then at the second order I get lap(P) = - 1/rho * ( u_x^2 + u_x * v_y + v_y ^2 ) ( where v=(u,v) and u_x represent the derivative along the x axis of u and so on .. ) Is that right ? |
|
August 21, 2014, 14:22 |
|
#6 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
Quote:
However, you have to discretize the equation as Div (Grad P) = 1/rho * Div [ Div ( 2*nu *Grad v - vv)] vv is the convective flux. You cannot assume div v =0 without ensuring that is numerically satisfied in each node |
||
August 21, 2014, 14:30 |
|
#7 |
Member
Join Date: Aug 2014
Posts: 58
Rep Power: 12 |
Yes of course but I am asked to qualify in which extent this assumption ( divergence-free) is still right by maybe defining a value for the divergence above which results will be wrong. But anyway I will deal with that and I have understood the problem.
So I will try this equation ! But I don't understand why I have to discretize the equation in this way ? Is the problem about numerical instabilities or convergence of the equation ? Thank you very much for your answers ! |
|
August 21, 2014, 15:15 |
|
#8 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
Quote:
If you want, more details are in http://onlinelibrary.wiley.com/doi/1...d.598/abstract |
||
August 21, 2014, 16:09 |
|
#9 |
Member
Join Date: Aug 2014
Posts: 58
Rep Power: 12 |
Do you know where I can find the full-text online ? Or could you send me the paper by private message ( because I ve figured out that you were the author ) ?
Thanks ! |
|
August 21, 2014, 16:19 |
|
#10 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
||
August 21, 2014, 16:55 |
|
#11 |
Member
Join Date: Aug 2014
Posts: 58
Rep Power: 12 |
Thank you, I will take a look at it and try to understand all of that !
Best regards Samuel |
|
August 22, 2014, 05:42 |
|
#12 |
Member
Join Date: Aug 2014
Posts: 58
Rep Power: 12 |
You would mean Div (Grad P) = 1/rho * Div [ Grad( 2*nu *Grad v - vv)] ?because we could not take the divergence of a scalar value.
Do you agree with the fact that the convective term is ( v . grad ) v ? Thanks |
|
August 22, 2014, 05:45 |
|
#13 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
Quote:
no, from the Reynolds theorem you write Div (vv) that is a vector (therefore you still can calculate divergence).... only if you use the mass equation then you can rewrite the momentum equation in quasi-linear form |
||
August 22, 2014, 05:53 |
|
#14 |
Member
Join Date: Aug 2014
Posts: 58
Rep Power: 12 |
I don't understand how is it possible, because the divergence returns a scalar ...
I don't get your point . Before using the mass equation, after taking the divergence you normally get something like : div ( grad P ) = div ( nu lap(v) - vv ) |
|
August 22, 2014, 06:11 |
|
#15 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
Quote:
no, vv is a tensor (as Grad v), therefore its divergence is a vector The diffusive flux is 2*nu*Grad v, when you take the divergence it writes nu*Lap v only if Div v is fulfilled. Therefore ( grad P ) = Div ( nu 2*nu*Grad v - vv ) -> Div ( grad P ) = Div [Div ( nu 2*nu*Grad v - vv )] |
||
August 22, 2014, 06:38 |
|
#16 |
Member
Join Date: Aug 2014
Posts: 58
Rep Power: 12 |
I have understood one part but why the convective term is a tensor ?
Grad v is a tensor, in 2D we get : Grad v = [ ux uy ; vx vy ] ( Matlab notation ) but the convective term defined as ( v . grad ) v gives a vector for me : ( v . grad ) v = [ u ux + v uy ; u vx + v vy ] I must be wrong somewhere but I don't know why |
|
August 22, 2014, 09:03 |
|
#17 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
Quote:
the convective flux of the momentum quantity is a tensor as it represents the mass for volume unit (rho*v) macroscopically transported by the velocity field v. I suggest have a reading of some basical fluid mechanics textbook |
||
August 22, 2014, 09:21 |
|
#18 |
Member
Join Date: Aug 2014
Posts: 58
Rep Power: 12 |
So you're talking of something different from the convective term in Navier-Stokes equation ?
Because for me it's that ( 3.1 section ) http://en.wikipedia.org/wiki/Navier%...e_acceleration |
|
August 22, 2014, 09:27 |
|
#19 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
Quote:
the difference is just in the conservative or quasi-linear form of the NS equations, however both v*Grad v and Div (vv) produce a vector. For the formulation of a general transport equation, the Reynolds transport theorem is the corner stone. From that you can derive everything... Have a reading of some good textbook, wikepedia is very poor... |
||
August 22, 2014, 09:42 |
|
#20 |
Member
Join Date: Aug 2014
Posts: 58
Rep Power: 12 |
I know it was just because there formula were written clearly.
In a lot of great books I found the Pressure poisson equation in 2D for a divergence-free flow as the following : ( approx ~ 2nd order ) laplacien(p) = - rho * ( (u_x)^2 + u_x * v_y + (v_y)^2 ) + Boundary conditions I want to be certain, you told me that it is not correct ? |
|
Tags |
pressure velocity |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
static vs. total pressure | auf dem feld | FLUENT | 17 | February 26, 2016 14:04 |
Timestep and Pressure Correction Relationship in SIMPLE | rks171 | Main CFD Forum | 23 | May 4, 2012 02:04 |
Initial pressure and transverse velocity fields to initialize turbulence model | nickvinn | Main CFD Forum | 0 | February 29, 2012 11:11 |
How to set pressure BC with mass Velocity Magnitud | arwang | FLUENT | 2 | March 12, 2007 21:04 |
how to print the results from CFX-4.2 | cfd_99 | Main CFD Forum | 5 | June 21, 1999 10:23 |