CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Fractional Step Method with Dirichlet Pressure Boundary Conditions ?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By FMDenaro

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 8, 2013, 11:29
Default Fractional Step Method with Dirichlet Pressure Boundary Conditions ?
  #1
Member
 
Osman
Join Date: Oct 2012
Location: Japan
Posts: 53
Rep Power: 14
o_mars_2010 is on a distinguished road
Please please please
Could any one tell me how to apply Dirichlet Pressure Boundary Conditions while using fractional step method.
All the paper says that the Poisson equation has to be solved with Neumann BC, what about Dirichlet B.C!!!
Please help me it is urgent
o_mars_2010 is offline   Reply With Quote

Old   August 8, 2013, 12:14
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by o_mars_2010 View Post
Please please please
Could any one tell me how to apply Dirichlet Pressure Boundary Conditions while using fractional step method.
All the paper says that the Poisson equation has to be solved with Neumann BC, what about Dirichlet B.C!!!
Please help me it is urgent
Starting from the Hodge decomposition you have on a boundary:

n.v* = n.v^n+1 + n.Grad Phi

therefore if you fix the pressure at the outlet you have to discretize the normal derivative and use the pressure value. Furthermore, the velocities must be somehow computed.

I remember a post that already treated this topic
FMDenaro is offline   Reply With Quote

Old   August 8, 2013, 12:27
Default
  #3
Member
 
Osman
Join Date: Oct 2012
Location: Japan
Posts: 53
Rep Power: 14
o_mars_2010 is on a distinguished road
So, you mean that the Poisson eq will be solved with Neumann B.C, and the Dirichlet Pressure B.C will be included implicitly in the intermediate velocity B.C ???
If my understanding is true , the question arises will be How can i now v^n+1 ???
o_mars_2010 is offline   Reply With Quote

Old   August 8, 2013, 12:49
Default
  #4
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by o_mars_2010 View Post
So, you mean that the Poisson eq will be solved with Neumann B.C, and the Dirichlet Pressure B.C will be included implicitly in the intermediate velocity B.C ???
If my understanding is true , the question arises will be How can i now v^n+1 ???
You can use some approximation on the derivatives...Some constraint must be fulfilled to ensure the existence of the solution.
Just as example, see http://www.aeromech.usyd.edu.au/~kir...eld-ctac08.pdf
sbaffini likes this.
FMDenaro is offline   Reply With Quote

Old   October 24, 2013, 09:15
Default
  #5
New Member
 
subhendu
Join Date: May 2012
Posts: 10
Rep Power: 14
raw17 is on a distinguished road
Hello,
I am using a pseudospectral code that uses fractional step algorithm with mixed RK3/CN . It works fine . But I have to modify my velocity field with newton method for some of my problems. After that I would like to recompute the pressure using that velocity field. To verify my poisson solver I used this method :

1. Do a long dns save velocity and pressure(P)

2. Use this velocity to compute pressure using laplacian(P)= -div(convetive terms)
with dp/dy =1/Re(d2v/dy2) as my B.c's . Here I get P'

3. L2norm(grad(P'-P))/L2norm(grad(P)) ~ 1e-2.

4. But to my surprise original pressure P from DNS does not satisfy this laplacian(P)= -div(convetive terms) . I mean this should be staisfied atleast upto machine precision .

In short the gradient is same for P and P' but P does not satisfy pressure poisson equation . Can anyone explain this to me what is the reason behind this
raw17 is offline   Reply With Quote

Old   October 24, 2013, 09:35
Default
  #6
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by raw17 View Post
Hello,
I am using a pseudospectral code that uses fractional step algorithm with mixed RK3/CN . It works fine . But I have to modify my velocity field with newton method for some of my problems. After that I would like to recompute the pressure using that velocity field. To verify my poisson solver I used this method :

1. Do a long dns save velocity and pressure(P)

2. Use this velocity to compute pressure using laplacian(P)= -div(convetive terms)
with dp/dy =1/Re(d2v/dy2) as my B.c's . Here I get P'

3. L2norm(grad(P'-P))/L2norm(grad(P)) ~ 1e-2.

4. But to my surprise original pressure P from DNS does not satisfy this laplacian(P)= -div(convetive terms) . I mean this should be staisfied atleast upto machine precision .

In short the gradient is same for P and P' but P does not satisfy pressure poisson equation . Can anyone explain this to me what is the reason behind this

I think your are not ensuring the continuity constraint at all...

I suggest starting from the Hodge decomposition v* = vn+1 + Grad phi, then substitute in the continuity equation to get the elliptic problem

Div (v* = vn+1 + Grad phi) => Div Grad phi = Div v*

To be well posed the problem, you must prescribe the normal component of the Hodge decomposition on the boundary.
When that is correctly done, the divergence-free constraint is ensured to machine precision in case of exact projection method (as happens in the MAC method) or up to the local truncation error magnitude for the approximate projection method (as it happens using colocated variable).
FMDenaro is offline   Reply With Quote

Old   October 28, 2013, 05:32
Default
  #7
New Member
 
subhendu
Join Date: May 2012
Posts: 10
Rep Power: 14
raw17 is on a distinguished road
Hello ,
Thanks for your reply . I checked my calculation . The (0,0) harmonic of pressure is not calculated properly by poisson's equation . Here from Poisson I mean not the one in the fractional step , but a seprate subroutine that uses the velocity field computed from the DNS and attempt to recompute the pressure. The problem now is :

1. For the zero zero harmonic the poisson is d2p/dy2 = -RHS(u) . To solve this I need 2 BC's . On the lower wall I apply Drichlet and homogeneous Neuman on the upper wall .

2. When I see the result close to the upperwall my pressure mathches the one from the DNS. But close to the lower wall its wrong . If you apply Drichlet on uuper wall and homogeneous Neuman on lower wall . The results are opposite.

3. I can't apply Neumann on both the walls the matrix becomes singular.

How can I solve this issue .

Thank you
raw17 is offline   Reply With Quote

Old   October 28, 2013, 05:40
Default
  #8
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
- The pressure equation produces a singular matrix, this is congruent to the fact that the pressure solution is defined apart a constant.
- The system is solvable due to the fact that the compatibility constraint is satisfied. Therefore, your BC must be such as to fulfill this relation, otherwise you do not have a solution.
FMDenaro 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
Low Mixing time Problem Mavier CFX 5 April 29, 2013 01:00
CFX13 Post Periodic interface EtaEta CFX 7 December 8, 2011 18:15
Proper Pressure Boundary Conditions for Buoyant Flow mchurchf OpenFOAM 0 March 25, 2010 13:16
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 03:58
Pressure boundary conditions in MAC method Ravi Main CFD Forum 4 January 21, 2000 14:50


All times are GMT -4. The time now is 18:04.