add project2

This commit is contained in:
2025-11-10 20:23:08 -05:00
parent bd5715388b
commit dd4675235d
17 changed files with 730 additions and 1 deletions

View File

@@ -0,0 +1,40 @@
--- Solving for n = 16 (System size: 256 x 256) ---
Starting iterative solvers...
Running Jacobi...
Running Gauss-Seidel...
Running SOR...
Running Steepest Descent...
Running Conjugate Gradient...
--- Iteration Counts ---
Jacobi : 1268 iterations (converged)
Gauss-Seidel : 635 iterations (converged)
SOR : 71 iterations (converged)
Steepest Descent : 1247 iterations (converged)
Conjugate Gradient : 31 iterations (converged)
Convergence plot saved to 'problem2_convergence_n16.png'
Generating 3D surface plots of the solutions...
3D surface comparison plot saved to 'problem2_3d_solutions_n16.png'
--- Solving for n = 32 (System size: 1024 x 1024) ---
Starting iterative solvers...
Running Jacobi...
Running Gauss-Seidel...
Running SOR...
Running Steepest Descent...
Running Conjugate Gradient...
--- Iteration Counts ---
Jacobi : 4792 iterations (converged)
Gauss-Seidel : 2397 iterations (converged)
SOR : 138 iterations (converged)
Steepest Descent : 4807 iterations (converged)
Conjugate Gradient : 66 iterations (converged)
Convergence plot saved to 'problem2_convergence_n32.png'
Generating 3D surface plots of the solutions...
3D surface comparison plot saved to 'problem2_3d_solutions_n32.png'