CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   Poisson equation: non-symmetric matrix with non-uniform spacing? (https://www.cfd-online.com/Forums/main/105197-poisson-equation-non-symmetric-matrix-non-uniform-spacing.html)

megaweber July 25, 2012 03:22

Poisson equation: non-symmetric matrix with non-uniform spacing?
 
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

FMDenaro July 25, 2012 03:54

Quote:

Originally Posted by megaweber (Post 373388)
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

gerardosrez July 25, 2012 08:21

Quote:

Originally Posted by FMDenaro (Post 373399)
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...

arjun July 26, 2012 03:03

Poisson operator should give you symmetric matrix ie
Aij = Aji

It is true in case of non uniform meshes too.

FMDenaro July 26, 2012 03:10

Quote:

Originally Posted by arjun (Post 373626)
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

arjun July 26, 2012 05:52

Quote:

Originally Posted by FMDenaro (Post 373628)
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.

megaweber July 26, 2012 11:16

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


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