Next: Special Hints Up: Fields and Matrices Previous: Discussion of fourier.f

# Assignment-2

• This second and last Assignment for this course is the second and last Take-Home Exam.
• The Assignment is based around the spectral method based diffusion program we have been discussing in the last 5 lectures.
• Deliver the following:
1.
Modify the program, whose sources you will find in
/usr/lpp/pessl/example/hpf

on the SP, or in
/afs/ovpit.indiana.edu/common/www/htdocs/gustav/diffusion

on the AFS, to produce an HDF animation of T(x,y,t) on a grid.
2.
Use the modified program to produce separate animations for various models of initial temperature distribution and diffusion coefficient. Generate 4 such animations and save them on clearly marked files, e.g., movie-4-3.hdf, which means temperature model 4, and diffusion model 3''.
3.
Provide an explanation on the accompanying README file how to run the program and which HDF files correspond to which models.
4.
On the same README file provide a thorough explanation and discussion of the following
(a)
subroutine factor_nodes in file fourier.f
(b)
function minpower2 in file fourier.f
(c)
the following code fragment from subroutine get_diffusion_matrix:
    pn_fac = 0
CALL factor_nodes(pn_fac)
factor1 = 3**pn_fac(2) * 5**pn_fac(3) * 7**pn_fac(4) * 11**pn_fac(5)
factor2 = (4*(dif_nx+1) + factor1 -1)/factor1
nx = minpower2( factor2,idum) * factor1
factor2 = (4*(dif_ny+1) + factor1 -1)/factor1
ny = minpower2( factor2,idum) * factor1

(d)
the following code fragment from subroutine expand_temp_profile:
    nx = minpower2( 2*(dif_nx+1), idum)
ny = minpower2( 2*(dif_ny+1), idum)

5.
Your assignment should be delivered by placing a copy of the whole directory with all program files (that should include Makefile too), HDF files, and the README file in your AFS directory in a subdirectory called Assignment_2.
• You should feel free to ask me for technical advice on any issues related to the assignment at any time.
• You must ensure that you also have other copies of your assignment on at least two other systems, e.g., you can keep one copy on the Ships Cluster, and another copy on the SP. The SP, in particular, is managed quite diligently and your files on the SP should be backed up regularly.
• The closing date for the submission of the Assignment is Friday, 18th of December 1998, 5PM.

Next: Special Hints Up: Fields and Matrices Previous: Discussion of fourier.f
Zdzislaw Meglicki
2001-02-26