5.1 Introduction to Monte Carlo Exercise
Next: 5.2 Locating the Code
Up: 5 Monte Carlo Code-Exercise
Previous: 5 Monte Carlo Code-Exercise
Here, we examine a two-dimensional particle-tracing code which is a fully
vectorized Cray implementation.
We supply a FORTRAN code with ``bleeps''-i.e., lines either wholly or
partially incomplete, including periods in place of some FORTRAN instructions.
The student is asked to supply the FORTRAN code in place of the ``bleeps.''
For the sake of simplicity, the code is constructed according to the following
- Emission is perfectly diffuse, i.e., Lambertian.
- Surfaces are perfectly absorbing, i.e., upon impact the particle is
absorbed-there is no need to deal with either reflection or transmission.
- The code is written to describe the radiative transfer in a polygon, of
NSURF equal length sides.
Here, we shall simulate a square, thus NSURF = 4.