| 1 |
|
| 2 |
Source code overview |
| 3 |
==================== |
| 4 |
|
| 5 |
Here is a brief and outdated description of various files making up the |
| 6 |
code: |
| 7 |
|
| 8 |
+-----------------------------------+-----------------------------------+ |
| 9 |
| Filename | Description | |
| 10 |
+===================================+===================================+ |
| 11 |
| | | |
| 12 |
+-----------------------------------+-----------------------------------+ |
| 13 |
| allocate.f90 | allocates memory for main arrays | |
| 14 |
+-----------------------------------+-----------------------------------+ |
| 15 |
| calc_quantities.f90 | calculates additional quantities | |
| 16 |
| | from particle data | |
| 17 |
+-----------------------------------+-----------------------------------+ |
| 18 |
| colours.f90 | colour schemes for rendering | |
| 19 |
+-----------------------------------+-----------------------------------+ |
| 20 |
| colourparts.f90 | colours particles | |
| 21 |
+-----------------------------------+-----------------------------------+ |
| 22 |
| defaults.f90 | writes/reads default options | |
| 23 |
| | to/from file | |
| 24 |
+-----------------------------------+-----------------------------------+ |
| 25 |
| exact.f90 | module handling exact solution | |
| 26 |
| | settings | |
| 27 |
+-----------------------------------+-----------------------------------+ |
| 28 |
| exact_densityprofiles.f90 | various :math:`N-`\ body density | |
| 29 |
| | profiles | |
| 30 |
+-----------------------------------+-----------------------------------+ |
| 31 |
| exact_fromfile.f90 | reads an exact solution tabulated | |
| 32 |
| | in a file | |
| 33 |
+-----------------------------------+-----------------------------------+ |
| 34 |
| exact_mhdshock.f90 | some tabulated solutions for mhd | |
| 35 |
| | shocks | |
| 36 |
+-----------------------------------+-----------------------------------+ |
| 37 |
| exact_polytrope.f90 | exact solution for a polytrope | |
| 38 |
+-----------------------------------+-----------------------------------+ |
| 39 |
| exact_rhoh.f90 | exact relation between density | |
| 40 |
| | and smoothing length | |
| 41 |
+-----------------------------------+-----------------------------------+ |
| 42 |
| exact_sedov.f90 | exact solution for sedov blast | |
| 43 |
| | wave | |
| 44 |
+-----------------------------------+-----------------------------------+ |
| 45 |
| exact_shock.f90 | exact solution for hydrodynamic | |
| 46 |
| | shocks | |
| 47 |
+-----------------------------------+-----------------------------------+ |
| 48 |
| exact_wave.f90 | exact solution for a propagating | |
| 49 |
| | sine wave | |
| 50 |
+-----------------------------------+-----------------------------------+ |
| 51 |
| exact_toystar.f90 | exact solution for the toy star | |
| 52 |
| | problem | |
| 53 |
+-----------------------------------+-----------------------------------+ |
| 54 |
| exact_toystar2D.f90 | exact solution for the 2D toy | |
| 55 |
| | star problem | |
| 56 |
+-----------------------------------+-----------------------------------+ |
| 57 |
| get_data.f90 | wrapper for main data read | |
| 58 |
+-----------------------------------+-----------------------------------+ |
| 59 |
| geometry.f90 | module handling different | |
| 60 |
| | coordinate systems | |
| 61 |
+-----------------------------------+-----------------------------------+ |
| 62 |
| globaldata.f90 | various modules containing | |
| 63 |
| | "global" variables | |
| 64 |
+-----------------------------------+-----------------------------------+ |
| 65 |
| interactive.f90 | drives interactive mode | |
| 66 |
+-----------------------------------+-----------------------------------+ |
| 67 |
| interpolate1D.f90 | interpolation of 1D SPH data to | |
| 68 |
| | grid using kernel | |
| 69 |
+-----------------------------------+-----------------------------------+ |
| 70 |
| interpolate2D.f90 | interpolation of 2D SPH data to | |
| 71 |
| | grid | |
| 72 |
+-----------------------------------+-----------------------------------+ |
| 73 |
| interpolate3D_xsec.f90 | 3D cross section interpolations | |
| 74 |
+-----------------------------------+-----------------------------------+ |
| 75 |
| interpolate3D_projection.f90 | 3D interpolation integrated | |
| 76 |
| | through domain | |
| 77 |
+-----------------------------------+-----------------------------------+ |
| 78 |
| legends.f90 | plots (time) legend on plot | |
| 79 |
+-----------------------------------+-----------------------------------+ |
| 80 |
| limits.f90 | sets initial plot limits and | |
| 81 |
| | writes to/reads from limits file | |
| 82 |
+-----------------------------------+-----------------------------------+ |
| 83 |
| menu.f90 | main menu | |
| 84 |
+-----------------------------------+-----------------------------------+ |
| 85 |
| options_data.f90 | sets options relating to current | |
| 86 |
| | data | |
| 87 |
+-----------------------------------+-----------------------------------+ |
| 88 |
| options_limits.f90 | sets options relating to plot | |
| 89 |
| | limits | |
| 90 |
+-----------------------------------+-----------------------------------+ |
| 91 |
| options_page.f90 | sets options relating to page | |
| 92 |
| | setup | |
| 93 |
+-----------------------------------+-----------------------------------+ |
| 94 |
| options_particleplots.f90 | sets options relating to particle | |
| 95 |
| | plots | |
| 96 |
+-----------------------------------+-----------------------------------+ |
| 97 |
| options_powerspec.f90 | sets options for power spectrum | |
| 98 |
| | plotting | |
| 99 |
+-----------------------------------+-----------------------------------+ |
| 100 |
| options_render.f90 | sets options for render plots | |
| 101 |
+-----------------------------------+-----------------------------------+ |
| 102 |
| options_vector.f90 | sets options for vector plots | |
| 103 |
+-----------------------------------+-----------------------------------+ |
| 104 |
| options_xsecrotate.f90 | sets options for cross sections | |
| 105 |
| | and rotation | |
| 106 |
+-----------------------------------+-----------------------------------+ |
| 107 |
| particleplot.f90 | subroutines for particle plotting | |
| 108 |
+-----------------------------------+-----------------------------------+ |
| 109 |
| plotstep.f90 | main “backbone” of the code which | |
| 110 |
| | drives plotting of a single | |
| 111 |
| | timestep | |
| 112 |
+-----------------------------------+-----------------------------------+ |
| 113 |
| read_data_dansph.f90 | reads data from my format of data | |
| 114 |
| | files | |
| 115 |
+-----------------------------------+-----------------------------------+ |
| 116 |
| read_data_mbate.f90 | reads data from Matthew Bate’s | |
| 117 |
| | format of data files | |
| 118 |
+-----------------------------------+-----------------------------------+ |
| 119 |
| read_data_xxx.f90 | reads data from … | |
| 120 |
+-----------------------------------+-----------------------------------+ |
| 121 |
| render.f90 | takes array of pixels and plots | |
| 122 |
| | render map/contours etc | |
| 123 |
+-----------------------------------+-----------------------------------+ |
| 124 |
| rotate.f90 | subroutines controlling rotation | |
| 125 |
| | of particles | |
| 126 |
+-----------------------------------+-----------------------------------+ |
| 127 |
| setpage.f90 | sets up the PGPLOT page (replaces | |
| 128 |
| | call to PGENV/PGLAB) | |
| 129 |
+-----------------------------------+-----------------------------------+ |
| 130 |
| splash.f90 | main program, handles startup/ | |
| 131 |
| | command line reading | |
| 132 |
+-----------------------------------+-----------------------------------+ |
| 133 |
| timestepping.f90 | controls stepping through | |
| 134 |
| | timesteps | |
| 135 |
+-----------------------------------+-----------------------------------+ |
| 136 |
| titles.f90 | reads a list of titles to be used | |
| 137 |
| | to label each timestep | |
| 138 |
+-----------------------------------+-----------------------------------+ |
| 139 |
| transform.f90 | applies various transformations | |
| 140 |
| | to data (log10, 1/x, etc) | |
| 141 |
+-----------------------------------+-----------------------------------+ |