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

Unequal wall-normal grid spacing and solution of pressure equation with natural bc

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 21, 2019, 21:04
Default Unequal wall-normal grid spacing and solution of pressure equation with natural bc
  #1
Member
 
Tony Zahtila
Join Date: Mar 2016
Posts: 33
Rep Power: 10
tzaht is on a distinguished road
Hi there,

I was wondering if anyone out there had a similar experience to me regarding implementing unequal wall-normal grid spacing in the domain.

Specifically, in order to solve a poisson equation with natural boundary conditions, i.e partial p/partial n = 0 at the walls, I need the sum of the source term globally to come to zero. If this isn't satisfied, the iterative solution will not converge but continue to shift by a constant.

I am able to implement this for a Navier Stokes code if the domain is equally spaced but I cannot seem to achieve this with an unequal spacing in the wall-normal direction.

If anyone has had this problem, please let me know of your solution.
tzaht is offline   Reply With Quote

Old   April 22, 2019, 04:00
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,849
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by tzaht View Post
Hi there,

I was wondering if anyone out there had a similar experience to me regarding implementing unequal wall-normal grid spacing in the domain.

Specifically, in order to solve a poisson equation with natural boundary conditions, i.e partial p/partial n = 0 at the walls, I need the sum of the source term globally to come to zero. If this isn't satisfied, the iterative solution will not converge but continue to shift by a constant.

I am able to implement this for a Navier Stokes code if the domain is equally spaced but I cannot seem to achieve this with an unequal spacing in the wall-normal direction.

If anyone has had this problem, please let me know of your solution.



The pressure solution is always defined up to a function of time, if you prescribe homogeneous Neumann BCs. you must change the source term in the Poisson equation accordingly to fulfill the compatibility condition.
On a non-uniform grid there is nothing different.
You can read how to implement here
https://www.researchgate.net/publica...uqt7Fko0rKOcng
FMDenaro is offline   Reply With Quote

Old   April 22, 2019, 04:26
Default
  #3
Member
 
Tony Zahtila
Join Date: Mar 2016
Posts: 33
Rep Power: 10
tzaht is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
The pressure solution is always defined up to a function of time, if you prescribe homogeneous Neumann BCs. you must change the source term in the Poisson equation accordingly to fulfill the compatibility condition.
On a non-uniform grid there is nothing different.
You can read how to implement here
https://www.researchgate.net/publica...uqt7Fko0rKOcng
Hey FMDenaro,

Thanks for taking time to reply to my thread. This paper is very long, which page/section should I read?

Kind regards.
tzaht is offline   Reply With Quote

Old   April 22, 2019, 04:27
Default
  #4
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,849
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by tzaht View Post
Hey FMDenaro,

Thanks for taking time to reply to my thread. This paper is very long, which page/section should I read?

Kind regards.

you will find the section about the pressure equation with the proper BCs and some figures of the grid
FMDenaro is offline   Reply With Quote

Old   November 14, 2019, 02:05
Default
  #5
Member
 
Tony Zahtila
Join Date: Mar 2016
Posts: 33
Rep Power: 10
tzaht is on a distinguished road
Hi Dr. Denaro,

My concern rests in my experience that non-homogenous boundary conditions can actually effect the solution of the variable, particularly at the first grid point but also throughout the domain?

I have tried solving poisson equations in 1D with arbitrary source term and found that my results w/ and w.o homongeous boundary conditions differed?

Kind regards.
tzaht is offline   Reply With Quote

Old   November 14, 2019, 03:51
Default
  #6
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,849
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by tzaht View Post
Hi Dr. Denaro,

My concern rests in my experience that non-homogenous boundary conditions can actually effect the solution of the variable, particularly at the first grid point but also throughout the domain?

I have tried solving poisson equations in 1D with arbitrary source term and found that my results w/ and w.o homongeous boundary conditions differed?

Kind regards.

No, apart from the additive constant, the two approaches are numerically equivalent. Check for some bug in your code.
FMDenaro is offline   Reply With Quote

Old   November 16, 2019, 00:12
Default
  #7
Member
 
Tony Zahtila
Join Date: Mar 2016
Posts: 33
Rep Power: 10
tzaht is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
No, apart from the additive constant, the two approaches are numerically equivalent. Check for some bug in your code.

Dear Dr.Denaro,

I am still a bit confused, in your paper I can see that the pressure boundary condition is, for the boundary elements,

\frac{\partial \phi}{\partial y} = \frac{1}{\Delta t} (v^*-v^{n+1})

This is equation 18 on page 404 of the journal article in the paper that you have sent me.

However, when I solve for the intermediate velocity field, my boundary conditions are u*,v*,w* Dirichlet zero.

So doesn't that right hand side go to zero?
tzaht is offline   Reply With Quote

Old   November 16, 2019, 03:56
Default
  #8
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,849
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by tzaht View Post
Dear Dr.Denaro,

I am still a bit confused, in your paper I can see that the pressure boundary condition is, for the boundary elements,

\frac{\partial \phi}{\partial y} = \frac{1}{\Delta t} (v^*-v^{n+1})

This is equation 18 on page 404 of the journal article in the paper that you have sent me.

However, when I solve for the intermediate velocity field, my boundary conditions are u*,v*,w* Dirichlet zero.

So doesn't that right hand side go to zero?

No, the intermediate velocity field at the boundaries is not prescribed to vanish. It depends on an expression that is function of the real velocity and the pressure gradient.


But, no matter about the intermediate velocity, the Neumann condition is prescribed in such a way that v* will be eliminated by difference with the same term that appears in the RHS of the Poisson equation.
FMDenaro is offline   Reply With Quote

Old   November 18, 2019, 01:39
Default
  #9
Member
 
Tony Zahtila
Join Date: Mar 2016
Posts: 33
Rep Power: 10
tzaht is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
No, the intermediate velocity field at the boundaries is not prescribed to vanish. It depends on an expression that is function of the real velocity and the pressure gradient.


But, no matter about the intermediate velocity, the Neumann condition is prescribed in such a way that v* will be eliminated by difference with the same term that appears in the RHS of the Poisson equation.
Dear Prof. Denaro,

I am wondering why you wouldn't just set the intermediate velocity field to be zero at the boundary and then use a finite volume discretization? This will necessarily satisfy the integrability constraint?

Kind regards.
tzaht is offline   Reply With Quote

Old   November 18, 2019, 03:32
Default
  #10
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,849
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by tzaht View Post
Dear Prof. Denaro,

I am wondering why you wouldn't just set the intermediate velocity field to be zero at the boundary and then use a finite volume discretization? This will necessarily satisfy the integrability constraint?

Kind regards.



If you see the expression of the Hodge decomposition, the only known physical condition that can be prescribed on a boundary is the natural velocity. Therefore, you know only that the difference between the intermediate velocity and the pressure gradient is a known value but nothing is known for each one of both.
Setting a zero value for the intermediate velocity is misleading. I discussed many details about that in this paper



https://www.researchgate.net/publica...ection_methods
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
Reynolds transport, turbulence model, etc Beginner Main CFD Forum 1 January 7, 2009 06:36
BC for Pressure Correction on Colocated Grid Matt Umbel Main CFD Forum 1 October 3, 2000 20:44
Grid Independent Solution Chuck Leakeas Main CFD Forum 2 May 26, 2000 12:18
Grid Quality and the Solution Faraz Main CFD Forum 4 January 10, 2000 19:18


All times are GMT -4. The time now is 12:36.