- #1

Aun Muhammad

- 14

- 0

Hey everyone.

I've attached a code I have written in FORTRAN implementing the SOR Method for a 2 D Laplace Equation.

Subroutines have been created, grid has been created and initial and BC's applied appropriately.

While computing the error of each iteration, I am unable to achieve the desired graph. In the graphs I obtained, the error after a few iterations, instantly dives to a very low value and remains there. However, the graph must display a lowest value of error for an 'optimum value' of omega.

I'll be grateful if somebody with FORTRAN experience could look into this and kindly point out where the error is being made. I've tried it a hundred times now and can't find where the error lies. Thanks.

I've attached a code I have written in FORTRAN implementing the SOR Method for a 2 D Laplace Equation.

Subroutines have been created, grid has been created and initial and BC's applied appropriately.

While computing the error of each iteration, I am unable to achieve the desired graph. In the graphs I obtained, the error after a few iterations, instantly dives to a very low value and remains there. However, the graph must display a lowest value of error for an 'optimum value' of omega.

I'll be grateful if somebody with FORTRAN experience could look into this and kindly point out where the error is being made. I've tried it a hundred times now and can't find where the error lies. Thanks.