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

Fully coupled solver (incompressible N.-S.) - Determinig pressure up to a constant

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 10, 2014, 21:14
Default Fully coupled solver (incompressible N.-S.) - Determinig pressure up to a constant
  #1
New Member
 
Fabian Gabel
Join Date: Oct 2014
Location: Darmstadt
Posts: 13
Rep Power: 12
eltenedor is on a distinguished road
I implemented a fully coupled solver for the incompressible Navier-Stokes Equations (solves for u,v,w,p simultaneously) according to Darwish:

http://www.sciencedirect.com/science...21999108004725.

I want to verify my program using a manufactured solution. For this I am applying dirichlet boundary conditions for the velocities to ALL of my boundaries. According to Darwish's paper I have to extrapolate pressure at those boundaries (Neumann BC). Analysis of the resulting system shows, that my system is not singular. Furthermore depending on the way I chose the preconditioner settings I get different results for the pressure. Note that I cannot apply a direct solver without generating zero pivots due to the bad condition of the linear system. However I observe that two results for pressure coming from different preconditioner settings only differ by a constant. The results for the velocities remain indifferent to those settings.

On the other side, using a segregated approach (SIMPLE), the system for the pressure correction is, due to the use of Neumann BCs, always singular (nullspace of the respective matrix has dimension 1). So the homogeneous solution of this linear system, the vector that spans the nullspace (constant vector, i.e. all entries have the same value), can be added to the special solution an hence shift the pressure level.

Shouldn't the system resulting from the fully coupled FVM discretization be singular, too (nullspace of dimension 1), so the pressure would exhibit the same behaviour?
eltenedor is offline   Reply With Quote

Old   November 11, 2014, 10:37
Default
  #2
New Member
 
kiyoung kim
Join Date: Oct 2014
Posts: 5
Rep Power: 12
kykim is on a distinguished road
I am not fully understand your question but constant difference in pressure difference do not affect your solution. You only need pressure difference in Navier Stokes equation. absolute preesure value varies depending on solver or boundary condition.
kykim is offline   Reply With Quote

Old   November 11, 2014, 11:11
Default
  #3
New Member
 
Fabian Gabel
Join Date: Oct 2014
Location: Darmstadt
Posts: 13
Rep Power: 12
eltenedor is on a distinguished road
Let me amplify the question for the sake of clarity:

Why is the system that I get from a fully coupled discretization nonsingular whereas the system for the pressure correction that I get from a segregated approach is singular? I think the coupling of the rows for (u,v,w) and (p) in the linear system takes care of the singularity but this is just a guess, not a proof.

I don't need boundary conditions to change the pressure level up to a constant in the segregated approach, the singularity of the system matrix for the pressure correction already allows me to add a vector of the associated nullspace to my pressure correction and change the pressure level accordingly. Why don't I have this opportunity in the coupled approach?

Last edited by eltenedor; November 11, 2014 at 16:32.
eltenedor is offline   Reply With Quote

Old   November 12, 2014, 08:30
Default
  #4
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,882
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
If I am right, you are wondering why the global matrix in the system (see attache image) is not singular while the pressure matrix is singular?
Attached Images
File Type: gif Immagine.gif (72.3 KB, 23 views)
FMDenaro is offline   Reply With Quote

Old   November 12, 2014, 10:00
Default
  #5
New Member
 
Fabian Gabel
Join Date: Oct 2014
Location: Darmstadt
Posts: 13
Rep Power: 12
eltenedor is on a distinguished road
This is correct. The global system for u,v,w and p in its most general form for n control volumes looks like this (no field interlacing):

\begin{bmatrix}
A_{uu}& A_{uv} & A_{uw} & A_{up}\\ 
A_{vu}& A_{vv} & A_{vw} & A_{vp}\\
A_{wu}& A_{wv} & A_{ww} & A_{wp}\\
A_{pu}& A_{pv} & A_{pw} & A_{pp}
\end{bmatrix} 
\begin{bmatrix}
u \\ v \\ w \\ p
\end{bmatrix} = 
\begin{bmatrix}
b_u \\ b_v \\ b_w \\ b_p
\end{bmatrix}

where A_{ij} \in \mathbb{R}^{n\times n}.

If I compare Matrix coefficients I can prove that the Matrix A_{pp} is the same one I use for the pressure correction equation in the segregated approach (SIMPLE algorithm). I exported the matrix for a two dimensional test case (u,v,p) to matlab and extracted the matrix block corresponding to A_{pp}. This matrix block has the vector (1,1,1,1,...,1)^t \in \mathbb{R}^n spanning the nullspace of A_{pp} just as in the segregated approach.

For completeness I will attach an example matrix in ASCII format so anyone interested can analyse it with the means of their choosing. Note that I use field interlacing - speaking in terms of Matlab:

Code:
 A_pp = A(i,i)
where
Code:
 i = 3:3:size(A,1)
Attached Files
File Type: txt MatA.txt (5.5 KB, 8 views)
eltenedor is offline   Reply With Quote

Old   November 12, 2014, 14:46
Default
  #6
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,882
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Ok, note that the bc.s are relevant for the matrix structure
FMDenaro is offline   Reply With Quote

Old   November 12, 2014, 14:48
Default
  #7
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,882
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Segregated, projection metods, etc can be seen in terms of approximate factorization of the original matrix. Some papers of Perot explained that
FMDenaro is offline   Reply With Quote

Old   November 12, 2014, 15:15
Default
  #8
New Member
 
Fabian Gabel
Join Date: Oct 2014
Location: Darmstadt
Posts: 13
Rep Power: 12
eltenedor is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
Ok, note that the bc.s are relevant for the matrix structure
Note that I apply Dirichlet boundary conditions for velocity on every boundary and Neumann boundary conditions for pressure on every boundary. Is this allowed for a coupled solver? I used this set of BCs to verify a segregated solver (SIMPLE algorithm) some time ago and it worked flawlessly.

Does this further Information help you in understanding singularity / nonsingularity of my system matrix, i.e. does my system matrix behave as expected from the BCs I apply?
eltenedor is offline   Reply With Quote

Old   November 12, 2014, 15:18
Default
  #9
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,882
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by eltenedor View Post
Note that I apply Dirichlet boundary conditions for velocity on every boundary and Neumann boundary conditions for pressure on every boundary. Is this allowed for a coupled solver? I used this set of BCs to verify a segregated solver (SIMPLE algorithm) some time ago and it worked flawlessly.

Does this further Information help you in understanding singularity / nonsingularity of my system matrix, i.e. does my system matrix behave as expected from the BCs I apply?
Indeed singularity appears in the pressure equation only when using Neumann bc.s
FMDenaro is offline   Reply With Quote

Old   November 12, 2014, 15:27
Default
  #10
New Member
 
Fabian Gabel
Join Date: Oct 2014
Location: Darmstadt
Posts: 13
Rep Power: 12
eltenedor is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
Indeed singularity appears in the pressure equation only when using Neumann bc.s
Yes, this is the expected behaviour for the pressure / pressure correction equation. I think this reflects the property of incompressible flows that says that pressure can be determined only up to a constant. However by coupling this equation with the velocities former singularity gets lost. Do you have an explanation for this?
eltenedor is offline   Reply With Quote

Old   November 12, 2014, 15:31
Default
  #11
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,882
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Several references are reported here
http://www.maths.manchester.ac.uk/~d...unsteadyNS.pdf
FMDenaro is offline   Reply With Quote

Old   November 12, 2014, 15:35
Default
  #12
New Member
 
Fabian Gabel
Join Date: Oct 2014
Location: Darmstadt
Posts: 13
Rep Power: 12
eltenedor is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
Several references are reported here
http://www.maths.manchester.ac.uk/~d...unsteadyNS.pdf
Thank you, I will look into that.

Quote:
Segregated, projection metods, etc can be seen in terms of approximate factorization of the original matrix. Some papers of Perot explained that
Can you point me to a specific paper?
eltenedor is offline   Reply With Quote

Old   November 12, 2014, 15:44
Default
  #13
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,882
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by eltenedor View Post
Thank you, I will look into that.



Can you point me to a specific paper?
You will find in the references
FMDenaro is offline   Reply With Quote

Reply

Tags
coupled solver, finite volume method, incompressible flow, pressure based solver, singularity


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 read pressure at discrete points paka OpenFOAM 16 April 28, 2020 08:26
Pressure force calculation in incompressible solvers philippose OpenFOAM Running, Solving & CFD 10 December 7, 2019 05:51
Some confusion about coupled solver for incompressible flow bearcat Main CFD Forum 0 February 14, 2010 21:40
flow simulation across a small fan jane luo Main CFD Forum 15 April 12, 2004 18:49
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 21:25.