-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Understanding the chebyshev solver in poisson2ND.py #97
Comments
Hi |
Thanks for the reply and clarifying. I will certainly take some time to look at your matrix decomposition solver for the Legendre basis. I have a question concerning about the BC in 2D. So in 1D, as mentioned an your document, the inhomogeneous BC can be easily assigned by |
@jchan192 It is more complicated than that in 2D. Conceptually you use a basis with two additional basis functions in your variational form for a given dimension. But then in 2D you use a basis that is the tensor product of 1D bases. This makes it more complicated. Unfortunately, I have not explained this very well anywhere. Closest thing is the Rayleigh-Benard demo, where inhomogeneous boundary conditions are coupled with a periodic Fourier space. |
Hi,
I am learning the Chebyshev-Galerkin method in Shen95 for 2D, 3D Poisson Equation with nonhomogeneous Dirichlet BC. Your example
poisson1D.py
helps me a lot in understanding the method. But I am facing trouble in understandingpoisson2ND.py
, and hope that you can clarify something.In 1D, only the A matrix remains because alpha=0 for Poisson Eq. In both 2D and 3D cases, the B matrix is still there eventhough alpha=0. However, in your
poisson2ND.py
, you don't seem to have B matrix, but only used A by doingA = inner(v, -div(grad(u)))
Is it true that we don't need B matrix, or it is already considered in your code somewhere that I do not understand?la.solver2D
seems to use LU factorization to solve the 2D poisson problem. In 1D Poisson problem can be easily solved using backward sweep method due to the tridiagonal property of A.Is it not possible to use backward sweeping method any more for 2D and 3D Poisson Eq.?
Thanks
The text was updated successfully, but these errors were encountered: