CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   Pressure poisson equations linear system understanding (https://www.cfd-online.com/Forums/main/184554-pressure-poisson-equations-linear-system-understanding.html)

AnasVFX March 5, 2017 16:30

Pressure poisson equations linear system understanding
 
Hey, i am still a beginner and i understood the pressure poisson equation and how to derive it but i don't understand how we will put this in a matrix linear system and why is it sparse? I can't imagine what is in the matrix so please if anyone can make a basic figure of some rows and columns to clarify things for me :D
Is each row the equation for each fluid cell if we r talking about mac grid solving?

Thanks :)

FMDenaro March 5, 2017 17:15

Quote:

Originally Posted by AnasVFX (Post 639524)
Hey, i am still a beginner and i understood the pressure poisson equation and how to derive it but i don't understand how we will put this in a matrix linear system and why is it sparse? I can't imagine what is in the matrix so please if anyone can make a basic figure of some rows and columns to clarify things for me :D
Is each row the equation for each fluid cell if we r talking about mac grid solving?

Thanks :)


I suggest to start learning from a 1D example. You need to introduce the discretization of the second order derivative, for example using the second order accurate FD formula on structured grid. Each node has a discrete equation that involves surrounding nodes, this way you can see the tridiagonal structure of the matrix. Starting from that, you would go to 2D (matrix with 5 diagonals) and 3D (matrix with 7 diagonals) cases. Of course, if you use formulas of greater accuracy or if you work on unstructured grids, the numbers of entries in the matrix will change.
I also suggest to read basic textbooks

AnasVFX March 6, 2017 03:19

Can you give me sources for what you say

FMDenaro March 6, 2017 03:42

search on cfd-online, you will find some lists of CFD books

AnasVFX March 6, 2017 03:53

Quote:

Originally Posted by FMDenaro (Post 639574)
search on cfd-online, you will find some lists of CFD books

I am a beginner and i use solvers only for computer graphics so i can't dig a lot into cfd deep books. If you have something specific on the pressure projection linear system could you give me it? My problem is simple i just want to see the matrix before my eye with some elements in it even two or three rows.

AnasVFX March 6, 2017 04:00

Those equations are what i mean

https://drive.google.com/file/d/0B8x...w?usp=drivesdk

arjun March 6, 2017 04:02

Quote:

Originally Posted by AnasVFX (Post 639581)
I am a beginner and i use solvers only for computer graphics so i can't dig a lot into cfd deep books. If you have something specific on the pressure projection linear system could you give me it? My problem is simple i just want to see the matrix before my eye with some elements in it even two or three rows.


Your problem is only simple for people who already understand it. I do not think anyone has that much time to sit down and create a doc for you to understand.

Milovan Peric's book in starting chapter (3rd i guess) has that for you where he talks about matrix.

This book
https://books.google.co.in/books/abo...ir_esc=y&hl=en

has simple worked examples of 1 d and 2d that you can learn from.

FMDenaro March 6, 2017 04:18

give your email, I have already some pages I have written fro my students, I cannot attach here due to the large dimension of the pdf

AnasVFX March 6, 2017 07:43

mnasa36@gmail.com

FMDenaro March 6, 2017 10:59

Quote:

Originally Posted by AnasVFX (Post 639609)


ok, just sent


All times are GMT -4. The time now is 02:08.