Peaceman-Rachford for 2-D Convection

This page allows you to download all files you need to compile and link a Peaceman-Rachford ADI program for the two-dimensional convection equation in a rectangle.

Procedure:

First obtain all above files by selecting them from the list below, and saving them (typically using 'Save as' from the 'File' menu.) Under Unix, the command 'make' will then compile the source code and produce the executable file called 'adipr'. Make sure no errors occur during compilation, of course. Change the parameters by editing the 'ini.in' and 'out.in' files


Files:

  1. adipr.f: Main program.
  2. ini.f: Initializes the program variables.
  3. ini.in: Input file for subroutine ini.
  4. ic.f: Sets the initial condition.
  5. bcx.f: Left boundary condition.
  6. bcy.f: Bottom boundary condition.
  7. bcxa.f: An artificial right boundary condition.
  8. bcya.f: An artificial top boundary condition.
  9. out.f: Performs output.
  10. out.in: Input file for subroutine out.
  11. exa.f: An exact solution of the convection equation.
  12. f.f: A function used by solution exa.
  13. tridia.f Solves tridiagonal equations.
  14. tribc.f Solves the implicit equations.
  15. satis2.f Used by subroutine tribc.
  16. makefile A Unix makefile.

Return to my home page.
Comments: dommelen@eng.famu.fsu.edu