|
[Sponsors] |
September 19, 2017, 15:49 |
Convergence of Gauss Seidel Iterative Method
|
#1 |
New Member
Karan Anand
Join Date: May 2017
Posts: 4
Rep Power: 9 |
Hello everyone,
I am developing a code in FORTRAN to solve 2d steady state heat conduction equation(Laplace equation) problem using Gauss Seidel iterative method. Right now I am running the solution upto 1000 iterations and getting a solution. However, I want the solution to stop iterating as soon as it converges. I am using a three dimensional array to store the values of temparature. The main code snippet for gauss seidel iterations is given below.(k: iterations, i: x nodes, j: y nodes): Code:
DO K = 2, 1000 DO I = 2, 39 DO J = 2, 19 T(K, I, J) = 0.25*(T(K, I-1, J) + T(K-1, I+1, J) + T(K, I, J-1) + T(K-1, I, J+1)) END DO END DO END DO |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
bounded Gauss upwind Scheme | deepinheart | OpenFOAM Running, Solving & CFD | 1 | February 23, 2015 05:57 |
BC for turbulent internal flow | yhoarau | OpenFOAM Running, Solving & CFD | 3 | January 22, 2015 08:02 |
2D isothermal cylinder not converging | UPengineer | OpenFOAM Running, Solving & CFD | 7 | March 13, 2014 05:17 |
convergence of QUICK scheme - simpleFoam | Luis Batista | OpenFOAM Running, Solving & CFD | 10 | May 11, 2013 17:35 |
convergence acceleration by preconditioning method | Atit Koonsrisuk | Main CFD Forum | 4 | June 5, 2000 06:21 |