Matlab code for solving 2D Laplace pde

12 visualizaciones (últimos 30 días)
Kornelija Paulauskaite
Kornelija Paulauskaite el 24 de Nov. de 2017
Respondida: Vishwanatha S el 13 de Dic. de 2021
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.

Respuestas (2)

Precise Simulation
Precise Simulation el 24 de Nov. de 2017
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 el 13 de Dic. de 2021
Gauss Seidel iteration

Community Treasure Hunt

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

Start Hunting!

Translated by