Modules List
Here is a list of all documented modules with brief descriptions:
| calclos_mod | This module calculates quantities along a line of sight. The module should be initialized using init_linesofsight(). Next read in each snapshot file and call calc_linesofsight(). After all the files have been read in the results must be normalized by calling normalize_linesofsight(). If one also wishes to calculate the optical depth with velocity distortions and thermal broadening then also call convolve_linesofsight() |
| gadget_io_mod | An attempt to practice object oriented Fortran 90 and to make some useful tools for reading Gadget snapshots. I have chosen to add overhead to the number of reads done (ie sometimes sections of a file need to be read multiple times to get the required data) in exchange for preserving memory and ease of coding and use. Note that my particle arrays go from 1-6 and not 0-5 |
| myf90 | My fortran 90 module |
| periodic_mod | Module that contains several functions for working with periodic data |
| projectsph_mod | This module projects a 3D SPH distribution down to a plane. Whatever scalar quantity is passed for each particle is smoothed onto a grid using the kernel. Mass is the prototype |
| simpsons_mod | This module implements Simpson's integration rule |
| splinekern_mod | This module contains functions for the spline kernels discussed in Daniel Price's thesis. I have included 1D, 2D, and 3D versions. The difference is simply the volume element which is dq for 1D, 2 pi q dq for 2D and 4 pi q^2 dq for 3D. It also contains a special function called s_kernel1D_fixed_x. This is a function of y and returns the kernel value as a function of y. The fixed value of x must be set by calling set_fixed_x |
| testkern | This program tests the spline kernels in splinekern.f90 to make sure they have the proper normalizations |
| testproject | This program shows how to use the projectsph_mod |
| testspectra | This program shows how to use the calclos_mod |