Matlab code for solving 2D Laplace pde

I already discretized pde by central difference method, but not sure how to create a code for iterative methods such as Jacobi and Gauss Seidel.

답변 (2개)

Precise Simulation
Precise Simulation 2017년 11월 24일

0 개 추천

Sparse linear solvers are already available in Matlab, the backslash operator per default uses the Umfpack direct solver
y = A\x;
help \
for iterative solvers you can for example use gmres or bicg
help gmres
help bicg
Vishwanatha S
Vishwanatha S 2021년 12월 13일

0 개 추천

Gauss Seidel iteration

질문:

2017년 11월 24일

답변:

2021년 12월 13일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by