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

Poisson equation: non-symmetric matrix with non-uniform spacing?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 25, 2012, 04:22
Default Poisson equation: non-symmetric matrix with non-uniform spacing?
  #1
New Member
 
Daniel Weber
Join Date: Nov 2009
Posts: 4
Rep Power: 17
megaweber is on a distinguished road
Hello,

I'm trying solve a poisson equation with finite differences. According to "Computational Methods for Fluid Dynamics" the finite difference approximation of the laplace operator in the 1D poisson equation is

p_i+1 (x-i - x_i-1) + p_i-1(x_i+1 - x_i) - p_i (x_i+1 - x_i) / [ 1/2 * (x_i+1 - x_i-1) * (x_i+1 - x_i ) * ( x_i - x_i-1) ]

If the grid spacing is uniform the matrix is symmetric, but not for non-uniform grid spacing. With non-uniformity the requirements is that the distance between each pair of odd and even unknowns (x_i - x_i+2, x_i+1 - x_i+3) must be equal. I could artificially move the unknows a bit, but generally that limits the transformation function of the grid. I would like to use a CG method, so is there anything I can do modify the scheme. (or maybe use finite volumes?)

How is the pressure correction done in Finite Volume methods? Are the matrices as well non-symmetric? Any hint or a pointer to literature would be very helpful!

Thank you!
Daniel
megaweber is offline   Reply With Quote

Old   July 25, 2012, 04:54
Default
  #2
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 megaweber View Post
Hello,

I'm trying solve a poisson equation with finite differences. According to "Computational Methods for Fluid Dynamics" the finite difference approximation of the laplace operator in the 1D poisson equation is

p_i+1 (x-i - x_i-1) + p_i-1(x_i+1 - x_i) - p_i (x_i+1 - x_i) / [ 1/2 * (x_i+1 - x_i-1) * (x_i+1 - x_i ) * ( x_i - x_i-1) ]

If the grid spacing is uniform the matrix is symmetric, but not for non-uniform grid spacing. With non-uniformity the requirements is that the distance between each pair of odd and even unknowns (x_i - x_i+2, x_i+1 - x_i+3) must be equal. I could artificially move the unknows a bit, but generally that limits the transformation function of the grid. I would like to use a CG method, so is there anything I can do modify the scheme. (or maybe use finite volumes?)

How is the pressure correction done in Finite Volume methods? Are the matrices as well non-symmetric? Any hint or a pointer to literature would be very helpful!

Thank you!
Daniel

Yes, on non-uniform grids the matrix is symmetric in its shape but not in the entry values
FMDenaro is offline   Reply With Quote

Old   July 25, 2012, 09:21
Default
  #3
Member
 
G. S.
Join Date: Nov 2010
Posts: 54
Rep Power: 15
gerardosrez is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
Yes, on non-uniform grids the matrix is symmetric in its shape but not in the entry values
Hi FMDenaro, can you be more specific when you say symmetric in its shape but not in the entry values? I´m not an expert in this matter and now I´m having a trouble using BICGstab with ILU preconditioning (MATLAB BICGstab and ILU functions). The ILU drops ill conditioned preconditioners according to BICGstab warning, also the ILU function shows a warning about getting pivots with zero value. This is for an inlet outlet problem using CVFEM on triangular grid (the code works fine on lid driven cavity flow).

Best regards...
gerardosrez is offline   Reply With Quote

Old   July 26, 2012, 04:03
Default
  #4
Senior Member
 
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,286
Rep Power: 34
arjun will become famous soon enougharjun will become famous soon enough
Poisson operator should give you symmetric matrix ie
Aij = Aji

It is true in case of non uniform meshes too.
arjun is offline   Reply With Quote

Old   July 26, 2012, 04:10
Default
  #5
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 arjun View Post
Poisson operator should give you symmetric matrix ie
Aij = Aji

It is true in case of non uniform meshes too.

I dont think so ... consider for example a 1D example in [0, L] with a stretched grid near L.
Symmetry remains in the pattern, not in values
FMDenaro is offline   Reply With Quote

Old   July 26, 2012, 06:52
Default
  #6
Senior Member
 
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,286
Rep Power: 34
arjun will become famous soon enougharjun will become famous soon enough
Quote:
Originally Posted by FMDenaro View Post
I dont think so ... consider for example a 1D example in [0, L] with a stretched grid near L.
Symmetry remains in the pattern, not in values
checked and Agreed. it seems in FD it does comes out to be unsymm system.
arjun is offline   Reply With Quote

Old   July 26, 2012, 12:16
Default
  #7
New Member
 
Daniel Weber
Join Date: Nov 2009
Posts: 4
Rep Power: 17
megaweber is on a distinguished road
Hi,

thanks for the answers. Yes, I meant non-symmetric in the values.

But I'm still curios if there are as well non-symmetric matrices(in the values) when I use a finite volume discretization for the pressure correction. Does anybody have i hint?

best regards,
Daniel
megaweber 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
Free jet simulation msarkar OpenFOAM Running, Solving & CFD 39 May 11, 2021 14:21
[Commercial meshers] fluentMeshToFoam multidomain mesh conversion problem Attesz OpenFOAM Meshing & Mesh Conversion 12 May 2, 2013 11:52
buoyantSimpleFoam divergence TomS OpenFOAM Running, Solving & CFD 0 November 24, 2011 15:16
Neumann Boundary Condition for Poisson Equation solution in Polar Coordinates prapanj Main CFD Forum 2 July 30, 2011 20:07
Problem with Poisson equation with Neumann BC Jeff67 Main CFD Forum 0 March 27, 2011 12:23


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