DART-Ray
|
Contains the all the routines for I/O. More...
Functions/Subroutines | |
subroutine | make_dsetname_main_grid (dsetname, rank) |
This subroutine prepares the dsetname and rank for all the elements in grid_file(). More... | |
subroutine | print_3d_grid_file |
This subroutine prints the main grid in grid_file(). More... | |
subroutine | read_main_grid |
This subroutine reads the main grid from grid_file(). More... | |
subroutine | read_lambda_grid |
This subroutine reads the lambda grid from grid_file_lambda(). In this code version, only the stellar emission luminosity array dens_stars_arr() is uploaded. The dust density array dens_arr() is derived later by scaling the reference dens() array in the main grid. More... | |
subroutine | count_lines (id, num) |
Counts the lines of an input ASCII file. IMPORTANT: it works only if there are no blank lines at the end of files. Check that before using. More... | |
subroutine | read_dir_out |
Reads the lines-of-sight theta and phi angles from file_dir_out(). More... | |
subroutine | read_pos_obs |
This subroutine reads the internal observer positions from file_pos_obs(). More... | |
subroutine | read_p_src |
This subroutine reads the stellar point source positions inside the model from file_p_src(). More... | |
subroutine | make_csize_arr |
This subroutine prepares the arrays csize_arr(), carea_arr(), and cvol_arr(). It also sets modelsize() and pabs_max(). More... | |
subroutine | make_dims (dsetname, rank) |
This subroutine prepares dims() array for reading or writing HDF5 files. More... | |
subroutine | set_filenames |
This subroutine sets the output file names. It uses the labels specified in label_model_out() and label_wave_arr(). More... | |
subroutine | reset_filenames |
Changes i_obs() array filename for i_obs RT algorithm. More... | |
subroutine | allocate_filename_arr |
Allocates arrays containing the output filenames. More... | |
subroutine | deallocate_filename_arr |
Deallocates arrays containing the output filenames. More... | |
subroutine | write_file_info |
This subroutine prints the used RT parameters in file_info(). More... | |
subroutine | check_files |
This routine checks for output file existence. If any of the final output file exists, the program exists with an error message. If all of the intermediate files exist, the program restores them if restore_file_mpi() = .TRUE.. Then, the program stars directly from the direct light processing or the scattering iterations. Note that this is used only for the stellar emission RT. In the case of the dust emission RT, this is more complicated because of the dust heating iterations and it is not implemented for the moment. More... | |
subroutine | print_big_array (filename, dsetname, dims, rank) |
This subroutine is used to print the output files. More... | |
subroutine | add_info_big_array (filename, dsetname_add, dims_add, rank_add) |
Adds extra info to printed big array. This works only for one dimensional arrays. More... | |
subroutine | print_u_fest_arr |
Writes u_fest_arr() on files file_u_fest_part1_arr(). More... | |
subroutine | read_u_fest_arr |
Reads u_fest_arr from previously written files. More... | |
subroutine | print_ufield_arr |
Writes ufield_arr() on files file_ufield_part2_arr() and file_ufield_arr(). More... | |
subroutine | read_ufield_arr |
Reads ufield_arr from the previously written files. More... | |
subroutine | print_psel_av_arr |
Writes psel_av_arr() on file_psel_av_part2() and file_psel_av(). More... | |
subroutine | read_psel_av_arr |
Reads psel_av_arr() from previously written files. More... | |
subroutine | print_i_obs_arr |
Writes i_obs_arr() on file_i_obs_part2_arr() and file_i_obs_arr(). More... | |
subroutine | read_i_obs_arr |
Reads i_obs_arr() from previously written files. More... | |
subroutine | print_i_obs_in_arr |
Writes i_obs_in_arr() on file_i_obs_in_part2_arr() and file_i_obs_in_arr(). More... | |
subroutine | read_i_obs_in_arr |
Reads i_obs_in_arr() from previously written files. More... | |
subroutine | print_scaspe_arr |
Writes scaspe_arr() on file_scaspe_part2_arr(). More... | |
subroutine | read_scaspe_arr |
Reads scaspe_arr() from previously written files. More... | |
subroutine | print_scaspe_tot_arr |
Writes scaspe_tot_arr() on file_scaspe_tot_arr(). More... | |
subroutine | read_scaspe_tot_arr |
Reads scaspe_tot_arr() from previously written files. More... | |
subroutine | print_sed_arr_dir |
Writes sed_arr_dir() on file_sed_arr_dir(). More... | |
subroutine | print_sed_arr |
Writes sed_arr() on file_sed_arr(). More... | |
subroutine | print_map_arr_out (filename) |
Writes map_arr_out() on file_maps() and file_maps_part2(). More... | |
subroutine | print_map_in_arr_out (filename) |
Writes map_in_arr_out() on file_maps_in() and file_maps_in_part2(). More... | |
subroutine | make_output |
This routine decides whith output files to write depening on rt_type(). More... | |
subroutine | read_output |
This routine decides which arrays to read depending on the value of rt_type(). More... | |
subroutine | read_big_array (filename, dsetname, dims) |
This routine reads previously printed arrays. More... | |
subroutine | read_info_big_array (filename, dsetname_add, dims_add, rank_add) |
Reads additional info from output files. More... | |
subroutine | print_lum_lost |
Writes lost luminosity files file_lum_lost_part2() and file_lum_lost() More... | |
subroutine | read_lum_lost |
Reads lum_lost() from previously written files. More... | |
subroutine | read_lambda_list |
This routine reads file_lambda_list(). It has to be placed before check_input because the lambda grid files contain a label dependent on the wavelength. It assigns lnum_tot(), lnum_stars(), lnum_dust(). More... | |
subroutine | print_lambda_grid |
This routine prints the lambda grids in grid_file_lambda(). More... | |
subroutine | find_out_tot_ndir_scaspe |
This routines finds out the value of tot_ndir_scaspe needed in the i_obs algorithm (in this case this value differ from tot_ndir. This is so because in the i_obs algorithm you might want to use a different number of output directions compared to the one you used in the main RT run.). More... | |
subroutine | input_initialize |
This routine initialize all the input variables, so it is possible to check whether all required input has been provided in check_input(). More... | |
subroutine | check_input |
This routine checks that the required input has been provided and that the values are in the allowed range. It also checks that the file and directories actually exist. More... | |
subroutine | check_input_dust_model |
Checks that the input regarding the input dust model is correct. More... | |
subroutine | check_file_existence (dir, filename) |
This subroutine checks that the input file exists. More... | |
subroutine | check_dir_existence (dir, create_it) |
This subroutine checks that a directory exists. If the logical create_it is set to TRUE, it creates the directory in case it not exists. Otherwise it output an error and stop the program. More... | |
subroutine | set_chunk_size |
This subroutine sets the chuck size for the OPENMP loops in rt_loop(), rt_loop_2D(), rt_loop_i_obs() More... | |
subroutine | check_memory |
Checks that the RAM memory of the machine is sufficient to host the big scaspe() arrays required in DART-Ray. WARNING: It assumes that all MPI processes run on different cluster nodes. More... | |
subroutine | initialize_mpi |
Initialises MPI environment. More... | |
subroutine | terminate_mpi |
Exits the MPI environment. More... | |
subroutine | rt_mpi |
Handles all the collective MPI operations at the end of each RT step. More... | |
subroutine | reduce_u_fest_arr |
Reduces u_fest_arr() stored in all MPI processes. More... | |
subroutine | reduce_u_final_arr |
Reduces u_final_arr() stored in all MPI processes. More... | |
subroutine | reduce_dens_stars_arr |
Reduces dens_stars_arr() stored in all MPI processes. Used only in dust RT algorithms. More... | |
subroutine | reduce_tot_dust_em_sed |
Reduces tot_dust_em_sed() stored in all MPI processes. Used only in dust RT algorithms. More... | |
subroutine | reduce_scaspe_arr |
Reduces scaspe_arr() stored in all MPI processes. More... | |
subroutine | reduce_lum_lost |
Reduces lum_lost() stored in all MPI processes. More... | |
subroutine | reduce_psel_av_arr |
Reduces psel_av_arr() stored in all MPI processes. More... | |
subroutine | reduce_i_obs_arr |
Reduces i_obs_arr() stored in all MPI processes. NOT used for the moment. More... | |
subroutine | reduce_i_obs_in_arr |
Reduces i_obs_in_arr() stored in all MPI processes. NOT used for the moment. More... | |
subroutine | reduce_map_arr_out |
Reduces map_arr_out() stored in all MPI processes. More... | |
subroutine | reduce_map_in_arr_out |
Reduces map_in_arr_out() stored in all MPI processes. More... | |
subroutine | read_input_file |
Reads input file for RT calculation. The input file has follow the dartray command on the terminal prompt. More... | |
subroutine | read_nbody_sph_simulation |
Reads an Nbody-SPH simulation file ( file_nbody_sph()). More... | |
subroutine | read_stellar_library |
reads the input stellar library (see file_stellar_library()). More... | |
Variables | |
character(len=lcar) | dir_grid |
character(len=lcar) | dir_runs |
character(len=lcar) | grid_file |
character(len=lcar) | grid_info_file |
character(len=lcar) | label_model |
character(len=lcar) | label_model_out |
character(len=lcar) | label_model_out_i_obs |
character(len=lcar) | label_model_lambda_grid |
character(len=lcar) | label_wave |
character(len=lcar), dimension(:), allocatable | label_wave_arr |
character(len=lcar) | grid_file_lambda |
character(len=lcar), dimension(:), allocatable | grid_file_lambda_arr |
character(len=lcar) | file_dir_out |
character(len=lcar) | file_pos_obs |
character(len=lcar) | file_p_src |
character(len=lcar) | file_u_fest_part1 |
character(len=lcar), dimension(:), allocatable | file_u_fest_part1_arr |
character(len=lcar) | file_ufield_part2 |
character(len=lcar), dimension(:), allocatable | file_ufield_part2_arr |
character(len=lcar) | file_ufield |
character(len=lcar), dimension(:), allocatable | file_ufield_arr |
character(len=lcar) | file_info |
character(len=lcar) | file_scaspe_part2 |
character(len=lcar), dimension(:), allocatable | file_scaspe_part2_arr |
character(len=lcar) | file_i_obs |
character(len=lcar), dimension(:), allocatable | file_i_obs_arr |
character(len=lcar) | file_i_obs_part2 |
character(len=lcar), dimension(:), allocatable | file_i_obs_part2_arr |
character(len=lcar) | file_lum_lost |
character(len=lcar) | file_lum_lost_part2 |
character(len=lcar) | file_i_obs_in |
character(len=lcar), dimension(:), allocatable | file_i_obs_in_arr |
character(len=lcar) | file_i_obs_in_part2 |
character(len=lcar), dimension(:), allocatable | file_i_obs_in_part2_arr |
character(len=lcar) | file_scaspe_tot |
character(len=lcar), dimension(:), allocatable | file_scaspe_tot_arr |
character(len=lcar) | file_psel_av_part2 |
character(len=lcar) | file_psel_av |
character(len=lcar) | file_sed_arr_dir |
character(len=lcar) | file_sed_arr |
character(len=lcar) | file_sed_dust_part2 |
character(len=lcar) | file_sed_dust |
character(len=lcar) | file_maps_part2 |
character(len=lcar) | file_maps |
character(len=lcar) | file_maps_in_part2 |
character(len=lcar) | file_maps_in |
character(len=lcar) | file_gra_fa |
character(len=lcar) | file_sil_fa |
character(len=lcar) | file_pah_neu_fa |
character(len=lcar) | file_pah_ion_fa |
character(len=lcar) | file_q_gra |
character(len=lcar) | file_q_sil |
character(len=lcar) | file_q_pah_neu |
character(len=lcar) | file_q_pah_ion |
character(len=lcar) | file_calorimetry_gra |
character(len=lcar) | file_calorimetry_sil |
character(len=lcar) | file_param_src |
integer, parameter | narr_grid =9 |
integer(hsize_t), dimension(:), allocatable | dims |
logical | print_output_part1 |
logical | print_output_part2 |
logical | print_scaspe_part2 |
logical | print_sed |
logical | restore_file_mpi |
logical | file_restore |
logical | file_restore_part1 |
logical | input_av_opacities |
character(len=lcar) | file_av_opacities |
logical | no_dust_rt |
character(len=lcar) | file_nbody_sph |
character(len=lcar) | stellar_library |
character(len=lcar) | file_stellar_library |
logical | use_stellar_library |
character(len=lcar) | file_pcell |
Contains the all the routines for I/O.
subroutine io_routines::add_info_big_array | ( | character(len=lcar) | filename, |
character(len=lcar), dimension(0:) | dsetname_add, | ||
integer(hsize_t), dimension(0:) | dims_add, | ||
integer, dimension(0:) | rank_add | ||
) |
Adds extra info to printed big array. This works only for one dimensional arrays.
subroutine io_routines::allocate_filename_arr | ( | ) |
Allocates arrays containing the output filenames.
subroutine io_routines::check_dir_existence | ( | character(len=lcar) | dir, |
logical | create_it | ||
) |
This subroutine checks that a directory exists. If the logical create_it is set to TRUE, it creates the directory in case it not exists. Otherwise it output an error and stop the program.
dir | dir Input directory. |
create_it | create_it Logical equal to TRUE if non existent directory has to be created. |
file_tmp | Temporary file name used to store output linux commands. |
inum | Counter of lines in file_tmp. |
is | String index |
unit | file unit number |
subroutine io_routines::check_file_existence | ( | character(len=lcar) | dir, |
character(len=lcar) | filename | ||
) |
This subroutine checks that the input file exists.
filename | [in] filename Input filename |
dir | [in] dir Directory containing the input file |
file_exists | Logical equal to TRUE if the input file exists. |
subroutine io_routines::check_files | ( | ) |
This routine checks for output file existence. If any of the final output file exists, the program exists with an error message. If all of the intermediate files exist, the program restores them if restore_file_mpi() = .TRUE.. Then, the program stars directly from the direct light processing or the scattering iterations. Note that this is used only for the stellar emission RT. In the case of the dust emission RT, this is more complicated because of the dust heating iterations and it is not implemented for the moment.
subroutine io_routines::check_input | ( | ) |
This routine checks that the required input has been provided and that the values are in the allowed range. It also checks that the file and directories actually exist.
nproc_max | Number of CPUs on the machine where DART-Ray is running. Found through linux command getconf _NPROCESSORS_ONLN. |
inum | Counter used to check directory existence. |
file_exists | Logical variable used to check file existence. |
file_tmp | Temporary file to store output linux commands |
i | Do loop counter |
ierr | MPI error argument |
subroutine io_routines::check_input_dust_model | ( | ) |
Checks that the input regarding the input dust model is correct.
file_q_arr | Set of input Q opacity files |
subroutine io_routines::check_memory | ( | ) |
Checks that the RAM memory of the machine is sufficient to host the big scaspe() arrays required in DART-Ray. WARNING: It assumes that all MPI processes run on different cluster nodes.
file_tmp | Temporary file to store output linux commands |
subroutine io_routines::count_lines | ( | integer | id, |
integer | num | ||
) |
Counts the lines of an input ASCII file. IMPORTANT: it works only if there are no blank lines at the end of files. Check that before using.
[in] | id | File unit number |
[out] | num | Number of lines |
subroutine io_routines::deallocate_filename_arr | ( | ) |
Deallocates arrays containing the output filenames.
subroutine io_routines::find_out_tot_ndir_scaspe | ( | ) |
This routines finds out the value of tot_ndir_scaspe needed in the i_obs algorithm (in this case this value differ from tot_ndir. This is so because in the i_obs algorithm you might want to use a different number of output directions compared to the one you used in the main RT run.).
subroutine io_routines::initialize_mpi | ( | ) |
Initialises MPI environment.
subroutine io_routines::input_initialize | ( | ) |
This routine initialize all the input variables, so it is possible to check whether all required input has been provided in check_input().
subroutine io_routines::make_csize_arr | ( | ) |
This subroutine prepares the arrays csize_arr(), carea_arr(), and cvol_arr(). It also sets modelsize() and pabs_max().
subroutine io_routines::make_dims | ( | character (len=lcar) | dsetname, |
integer | rank | ||
) |
This subroutine prepares dims() array for reading or writing HDF5 files.
[in] | dsetname | Dsetname of the array in the HDF5 file |
[in] | rank | Rank of the array in the HDF5 file |
subroutine io_routines::make_dsetname_main_grid | ( | character(len=lcar), dimension(0:) | dsetname, |
integer, dimension(0:) | rank | ||
) |
This subroutine prepares the dsetname and rank for all the elements in grid_file().
subroutine io_routines::make_output | ( | ) |
This routine decides whith output files to write depening on rt_type().
subroutine io_routines::print_3d_grid_file | ( | ) |
This subroutine prints the main grid in grid_file().
subroutine io_routines::print_big_array | ( | character (len=lcar) | filename, |
character (len=lcar) | dsetname, | ||
integer(hsize_t), dimension(*) | dims, | ||
integer | rank | ||
) |
This subroutine is used to print the output files.
[in] | filename | File name |
[in] | dsetname | Dsetname of the array to be printed |
[in] | dims | Array or scalar with the array dimensions |
[in] | rank | Rank of the array to be written on the HDF5 file |
subroutine io_routines::print_i_obs_arr | ( | ) |
Writes i_obs_arr() on file_i_obs_part2_arr() and file_i_obs_arr().
subroutine io_routines::print_i_obs_in_arr | ( | ) |
Writes i_obs_in_arr() on file_i_obs_in_part2_arr() and file_i_obs_in_arr().
subroutine io_routines::print_lambda_grid | ( | ) |
This routine prints the lambda grids in grid_file_lambda().
subroutine io_routines::print_lum_lost | ( | ) |
Writes lost luminosity files file_lum_lost_part2() and file_lum_lost()
subroutine io_routines::print_map_arr_out | ( | character (len=lcar) | filename | ) |
Writes map_arr_out() on file_maps() and file_maps_part2().
subroutine io_routines::print_map_in_arr_out | ( | character (len=lcar) | filename | ) |
Writes map_in_arr_out() on file_maps_in() and file_maps_in_part2().
subroutine io_routines::print_psel_av_arr | ( | ) |
Writes psel_av_arr() on file_psel_av_part2() and file_psel_av().
subroutine io_routines::print_scaspe_arr | ( | ) |
Writes scaspe_arr() on file_scaspe_part2_arr().
subroutine io_routines::print_scaspe_tot_arr | ( | ) |
Writes scaspe_tot_arr() on file_scaspe_tot_arr().
subroutine io_routines::print_sed_arr | ( | ) |
Writes sed_arr() on file_sed_arr().
subroutine io_routines::print_sed_arr_dir | ( | ) |
Writes sed_arr_dir() on file_sed_arr_dir().
subroutine io_routines::print_u_fest_arr | ( | ) |
Writes u_fest_arr() on files file_u_fest_part1_arr().
subroutine io_routines::print_ufield_arr | ( | ) |
Writes ufield_arr() on files file_ufield_part2_arr() and file_ufield_arr().
subroutine io_routines::read_big_array | ( | character (len=lcar) | filename, |
character (len=lcar) | dsetname, | ||
integer(hsize_t), dimension(*) | dims | ||
) |
This routine reads previously printed arrays.
[in] | filename | Name of the file containing the arrays to be read |
[in] | dsetname | Dsetname of the array to be read |
[in] | dims | Array of scalar speficying the dimensions of the arrays to be read |
subroutine io_routines::read_dir_out | ( | ) |
Reads the lines-of-sight theta and phi angles from file_dir_out().
subroutine io_routines::read_i_obs_arr | ( | ) |
Reads i_obs_arr() from previously written files.
subroutine io_routines::read_i_obs_in_arr | ( | ) |
Reads i_obs_in_arr() from previously written files.
subroutine io_routines::read_info_big_array | ( | character (len=lcar) | filename, |
character (len=lcar), dimension(0:) | dsetname_add, | ||
integer(hsize_t), dimension(0:) | dims_add, | ||
integer, dimension(0:) | rank_add | ||
) |
Reads additional info from output files.
subroutine io_routines::read_input_file | ( | ) |
Reads input file for RT calculation. The input file has follow the dartray command on the terminal prompt.
subroutine io_routines::read_lambda_grid | ( | ) |
This subroutine reads the lambda grid from grid_file_lambda(). In this code version, only the stellar emission luminosity array dens_stars_arr() is uploaded. The dust density array dens_arr() is derived later by scaling the reference dens() array in the main grid.
subroutine io_routines::read_lambda_list | ( | ) |
This routine reads file_lambda_list(). It has to be placed before check_input because the lambda grid files contain a label dependent on the wavelength. It assigns lnum_tot(), lnum_stars(), lnum_dust().
subroutine io_routines::read_lum_lost | ( | ) |
Reads lum_lost() from previously written files.
subroutine io_routines::read_main_grid | ( | ) |
This subroutine reads the main grid from grid_file().
subroutine io_routines::read_nbody_sph_simulation | ( | ) |
Reads an Nbody-SPH simulation file ( file_nbody_sph()).
subroutine io_routines::read_output | ( | ) |
This routine decides which arrays to read depending on the value of rt_type().
subroutine io_routines::read_p_src | ( | ) |
This subroutine reads the stellar point source positions inside the model from file_p_src().
subroutine io_routines::read_pos_obs | ( | ) |
This subroutine reads the internal observer positions from file_pos_obs().
subroutine io_routines::read_psel_av_arr | ( | ) |
Reads psel_av_arr() from previously written files.
subroutine io_routines::read_scaspe_arr | ( | ) |
Reads scaspe_arr() from previously written files.
subroutine io_routines::read_scaspe_tot_arr | ( | ) |
Reads scaspe_tot_arr() from previously written files.
subroutine io_routines::read_stellar_library | ( | ) |
reads the input stellar library (see file_stellar_library()).
subroutine io_routines::read_u_fest_arr | ( | ) |
Reads u_fest_arr from previously written files.
subroutine io_routines::read_ufield_arr | ( | ) |
Reads ufield_arr from the previously written files.
subroutine io_routines::reduce_dens_stars_arr | ( | ) |
Reduces dens_stars_arr() stored in all MPI processes. Used only in dust RT algorithms.
subroutine io_routines::reduce_i_obs_arr | ( | ) |
Reduces i_obs_arr() stored in all MPI processes. NOT used for the moment.
subroutine io_routines::reduce_i_obs_in_arr | ( | ) |
Reduces i_obs_in_arr() stored in all MPI processes. NOT used for the moment.
subroutine io_routines::reduce_lum_lost | ( | ) |
subroutine io_routines::reduce_map_arr_out | ( | ) |
Reduces map_arr_out() stored in all MPI processes.
subroutine io_routines::reduce_map_in_arr_out | ( | ) |
Reduces map_in_arr_out() stored in all MPI processes.
subroutine io_routines::reduce_psel_av_arr | ( | ) |
subroutine io_routines::reduce_scaspe_arr | ( | ) |
Reduces scaspe_arr() stored in all MPI processes.
subroutine io_routines::reduce_tot_dust_em_sed | ( | ) |
Reduces tot_dust_em_sed() stored in all MPI processes. Used only in dust RT algorithms.
subroutine io_routines::reduce_u_fest_arr | ( | ) |
subroutine io_routines::reduce_u_final_arr | ( | ) |
subroutine io_routines::reset_filenames | ( | ) |
Changes i_obs() array filename for i_obs RT algorithm.
subroutine io_routines::rt_mpi | ( | ) |
Handles all the collective MPI operations at the end of each RT step.
subroutine io_routines::set_chunk_size | ( | ) |
This subroutine sets the chuck size for the OPENMP loops in rt_loop(), rt_loop_2D(), rt_loop_i_obs()
subroutine io_routines::set_filenames | ( | ) |
This subroutine sets the output file names. It uses the labels specified in label_model_out() and label_wave_arr().
subroutine io_routines::terminate_mpi | ( | ) |
Exits the MPI environment.
subroutine io_routines::write_file_info | ( | ) |
This subroutine prints the used RT parameters in file_info().
integer(hsize_t), dimension(:), allocatable io_routines::dims |
dims | Dimensions of the arrays to be read or printed. |
character(len=lcar) io_routines::dir_grid |
dir_grid | Directory where the grid files are located |
character(len=lcar) io_routines::dir_runs |
dir_runs | Directory for the output files. If it does not exist, it is created automatically in check_input(). |
character (len=lcar) io_routines::file_av_opacities |
character(len=lcar) io_routines::file_calorimetry_gra |
file_calorimetry_Gra | File containing the grain density, specific enthalpy and specific heat capacity for Graphite and PAH grains |
character(len=lcar) io_routines::file_calorimetry_sil |
file_calorimetry_Sil | File containing the grain density, specific enthalpy and specific heat capacity for Silicates grains |
character(len=lcar) io_routines::file_dir_out |
file_dir_out | File containing the angular directions and specifying the lines-of-sight of the far-away observers. The first line has to be a comment. The following lines have to be the list of (first column) and (second column) in radiants. Note that is defined as the angle between the line-of-sight and the Z-axis. is the line-of-sight position angle on the XY plane measured from the X-axis. |
character(len=lcar) io_routines::file_gra_fa |
file_gra_fa | File containing input grain size distribution for Graphite grains. To use input grain size distributions, set dust_model = 'user'. |
character(len=lcar) io_routines::file_i_obs |
file_i_obs | File containing i_obs() as calculated at the end of the scattered light iterations. |
character(len=lcar), dimension(:), allocatable io_routines::file_i_obs_arr |
file_i_obs_arr | File names of the output containing i_obs() as calculated at the end of the scattered light iterations for all wavelengths. |
character(len=lcar) io_routines::file_i_obs_in |
file_i_obs_in | File containing i_obs_in() as calculated at the end of the scattering iterations. |
character(len=lcar), dimension(:), allocatable io_routines::file_i_obs_in_arr |
file_i_obs_in_arr | File names of the output containing i_obs_in() as calculated at the end of the scattering iterations for all wavelengths. |
character(len=lcar) io_routines::file_i_obs_in_part2 |
file_i_obs_in_part2 | File containing i_obs_in() as calculated at the end of the direct light processing. |
character(len=lcar), dimension(:), allocatable io_routines::file_i_obs_in_part2_arr |
file_i_obs_in_part2_arr | File names of the output containing i_obs_in() as calculated at the end of the direct light processing for all wavelengths. |
character(len=lcar) io_routines::file_i_obs_part2 |
file_i_obs_part2 | File containing i_obs() as calculated at the end of the direct light processing. |
character(len=lcar), dimension(:), allocatable io_routines::file_i_obs_part2_arr |
file_i_obs_part2_arr | File names of the output containing i_obs() as calculated at the end of the direct light processing for all wavelengths. |
character(len=lcar) io_routines::file_info |
file_info | File where the input parameters of the RT calculation are stored. |
character(len=lcar) io_routines::file_lum_lost |
file_lum_lost | File containing the percentage of luminosity lost during the entire RT calculation at each wavelength (the sum of the luminosity of the rays blocked because of the energy condition ). |
character(len=lcar) io_routines::file_lum_lost_part2 |
file_lum_lost_part2 | File containing the percentage of luminosity lost during the direct light processing (the sum of the luminosity of the rays blocked because of the energy condition ). |
character(len=lcar) io_routines::file_maps |
file_maps | File containing the surface brightness maps for the direct+scattered light obtained by an observer located far away from the model. Units in MJy/sr. |
character(len=lcar) io_routines::file_maps_in |
file_maps_in | File containing the surface brightness maps for the direct+scattered light obtained by an observer located inside the model. Units in MJy/sr. |
character(len=lcar) io_routines::file_maps_in_part2 |
file_maps_in_part2 | File containing the surface brightness maps for the direct light obtained by an observer located inside the model. Units in MJy/sr. |
character(len=lcar) io_routines::file_maps_part2 |
file_maps_part2 | File containing the surface brightness maps for the direct light obtained by an observer located far away from the model. Units in MJy/sr. |
character (len=lcar) io_routines::file_nbody_sph |
file_nbody_sph | File name of the imported Nbody-SPH simulation. This file contains the following arrays: 'agestar': the age of the stellar particles in Gyr; 'fehgas': [Fe/H] ratio of the gas particles; 'fehstar': [Fe/H] ratio of the stellar particles; 'gascoord': 3D coordinates of the gas particles; 'gastemp': Gas particle temperature [K]; 'mgas': Gas particle mass in M(sun); 'mstar': Star particle mass in M(sun); 'ofegas': [O/Fe] ratio for the gas particles; 'starcoord': 3D coordinates of the stellar particles. This file can be created from a tipsy file using the python script tipsy2dartray.py. Note that the gas metallicity is inferred from the O abundance, the stellar metallicity from the Fe abundance. |
character(len=lcar) io_routines::file_p_src |
file_p_src | File containing the 3D coordinates for the point sources within the RT model The first line has to be a comment. The following lines contain the X, Y,Z coordinates for each point source. |
character(len=lcar) io_routines::file_pah_ion_fa |
file_pah_ion_fa | File containing input grain size distribution for ionized PAH molecules. To use input grain size distributions, set dust_model = 'user'. |
character(len=lcar) io_routines::file_pah_neu_fa |
file_pah_neu_fa | File containing input grain size distribution for neutral PAH molecules. To use input grain size distributions, set dust_model = 'user'. |
character(len=lcar) io_routines::file_param_src |
file_param_src | File containing the properties used to define the spectra of the point sources. It can be arbitrarily structured since it is read in the "user_routines" modules. |
character (len=lcar) io_routines::file_pcell |
file_pcell | File containing the pcell_star() and pcell_gas() arrays. |
character(len=lcar) io_routines::file_pos_obs |
file_pos_obs | File containing the 3D coordinates of the internal observers within the RT model. The first line has to be a comment. The following lines contain the X, Y,Z coordinates for each internal observer. |
character(len=lcar) io_routines::file_psel_av |
file_psel_av | File containing psel_av_arr() as derived at the end of the scattered light iterations. |
character(len=lcar) io_routines::file_psel_av_part2 |
file_psel_av_part2 | File containing psel_av_arr() as derived at the end of the direct light processing. |
character(len=lcar) io_routines::file_q_gra |
file_q_gra | File containing the opacity and anisotropy coefficients for Graphite grains. |
character(len=lcar) io_routines::file_q_pah_ion |
file_q_pah_ion | File containing the opacity and anisotropy coefficients for ionized PAH molecules. |
character(len=lcar) io_routines::file_q_pah_neu |
file_q_pah_neu | File containing the opacity and anisotropy coefficients for neutral PAH molecules. |
character(len=lcar) io_routines::file_q_sil |
file_q_sil | File containing the opacity and anisotropy coefficients for Silicates grains. |
logical io_routines::file_restore |
file_restore | Logical variable equal to TRUE when all part 2 output files exists (that is the files printed at the end of the direct light processing). In this case the code can read them and start directly from the scattering iterations. |
logical io_routines::file_restore_part1 |
file_restore_part1 | TRUE when part1 output file already exists and file_restore = .FALSE. In this case the code can read this file and start from the direct light processing. |
character(len=lcar) io_routines::file_scaspe_part2 |
file_scaspe_part2 | File containing scaspe() as calculated at the end of the direct light processing. It can be restored but, usually, it should not be printed because it can be very large. Set print_scaspe_part2 = .TRUE. if you want this file to be printed. |
character(len=lcar), dimension(:), allocatable io_routines::file_scaspe_part2_arr |
file_scaspe_part2_arr | File names of the output containing scaspe() as calculated at the end of the direct light processing for all wavelengths. It can be restored but, usually, it should not be printed because it can be very large. Set print_scaspe_part2 = .TRUE. if you want these files to be printed. |
character(len=lcar) io_routines::file_scaspe_tot |
file_scaspe_tot | File containing scaspe_tot(). |
character(len=lcar), dimension(:), allocatable io_routines::file_scaspe_tot_arr |
file_scaspe_tot_arr | File names of the output containing scaspe_tot() for all wavelengths. |
character(len=lcar) io_routines::file_sed_arr |
file_sed_arr | File containing emission SEDs, for each observer line of sight, obtained at the end of scattered light processing. |
character(len=lcar) io_routines::file_sed_arr_dir |
file_sed_arr_dir | File containing emission SEDs, for each observer line of sight, obtained at the end of direct light processing. |
character(len=lcar) io_routines::file_sed_dust |
file_sed_dust | File containing dust emission SEDs, for each observer line of sight, obtained at the end of scattered light processing. Note that for the dust emission an additional iteration procedure is necessary to find temperature convergence. |
character(len=lcar) io_routines::file_sed_dust_part2 |
file_sed_dust_part2 | File containing dust emission SEDs, for each observer line of sight, obtained at the end of direct light processing. Note that for the dust emission an additional iteration procedure is necessary to find temperature convergence. |
character(len=lcar) io_routines::file_sil_fa |
file_sil_fa | File containing input grain size distribution for Silicate grains. To use input grain size distributions, set dust_model = 'user'. |
character (len=lcar) io_routines::file_stellar_library |
file_stellar_library | Name of the HDF5 file containing the stellar library specified in stellar_library(). This is an input parameter only if stellar_library() = 'user'. This file contains three arrays: lambda_lib_arr (wavelength list in [um]), met_arr (metallicity), lum_to_mass_arr (stellar luminosity-to-mass ratio in erg/s/Hz/M(sun)). See e.g. STELLAR_LIBRARIES/starburst99/table_lum_mass_vs_age_met_starburst99.h5. |
character(len=lcar) io_routines::file_u_fest_part1 |
file_u_fest_part1 | File name of the output for part1. |
character(len=lcar), dimension(:), allocatable io_routines::file_u_fest_part1_arr |
file_u_fest_part1_arr | File names of the output for part1 for all wavelengths. |
character(len=lcar) io_routines::file_ufield |
file_ufield | File containing u_final() as calculated at the end of the scattered light processing. |
character(len=lcar), dimension(:), allocatable io_routines::file_ufield_arr |
file_ufield_arr | File names of the output containing u_final() as calculated at the end of the scattered light processing for all wavelengths. |
character(len=lcar) io_routines::file_ufield_part2 |
file_ufield_part2 | File containing u_final() as calculated at the end of the direct light processing. |
character(len=lcar), dimension(:), allocatable io_routines::file_ufield_part2_arr |
file_ufield_part2_arr | File names of the output containing u_final() as calculated at the end of the direct light processing for all wavelengths. |
character(len=lcar) io_routines::grid_file |
grid_file | Main grid file name |
character(len=lcar) io_routines::grid_file_lambda |
grid_file_lambda | Lambda grid file name |
character(len=lcar), dimension(:), allocatable io_routines::grid_file_lambda_arr |
grid_file_lambda_arr | Lambda grid file name for all wavelengths. |
character(len=lcar) io_routines::grid_info_file |
grid_info_file | Grid info file name |
logical io_routines::input_av_opacities |
character(len=lcar) io_routines::label_model |
label_model | Label model within grid_file() |
character(len=lcar) io_routines::label_model_lambda_grid |
label_model_lambda_grid | Label model within grid_file_lambda() |
character(len=lcar) io_routines::label_model_out |
label_model_out | Label contained in all the output file names. |
character(len=lcar) io_routines::label_model_out_i_obs |
label_model_out_i_obs | Label contained in all the output file names for the i_obs and i_obs_dust RT algorithm. If not provided, it is set automatically to label_model_out(). |
character(len=lcar) io_routines::label_wave |
label_wave | Wavelength label for a single wavelength. |
character(len=lcar), dimension(:), allocatable io_routines::label_wave_arr |
label_wave_arr | Wavelength labels for all wavelengths. |
integer, parameter io_routines::narr_grid =9 |
narr_grid | Number of arrays in the main grid file grid_file(). |
logical io_routines::no_dust_rt |
no_dust_rt | TRUE if no dust emission RT has to be performed. |
logical io_routines::print_output_part1 |
print_output_part1 | Equal to TRUE if array u_fest() has to be printed at the end of precalculation phase (output file file_u_fest_part1()). |
logical io_routines::print_output_part2 |
print_output_part2 | Equal to TRUE if the output of part2 has to be written on disk (output files: file_ufield_part2(), file_i_obs_part2(), file_i_obs_in_part2()). This should be done if one needs the u_final(), i_obs() and i_obs_in() arrays due only to the direct light. Note that the scaspe() array is not printed by default. To print that as well at the end of the direct light processing, you need to set print_scaspe_part2() = .TRUE. If you print all the part 2 output, including the scaspe() array, you will be able later to restart the calculation from the scattering iterations. |
logical io_routines::print_scaspe_part2 |
print_scaspe_part2 | Equal to TRUE if scaspe() array has to be written on disk at the end of the direct light processing. This is not included by default in print_output_part2() because the scaspe() arrays can take a LOT of disk space. If you want to be able to restart the calculation from the scattering iterations, the scaspe() |
logical io_routines::print_sed |
print_sed | TRUE if file_sed() has to be printed. |
logical io_routines::restore_file_mpi |
restore_file_mpi | TRUE if previously written files have to be restored during runs with more than one MPI process. In case only one MPI process is present, choice is requested in the terminal. |
character (len=lcar) io_routines::stellar_library |
stellar_library | Name of the stellar library that has to be used to convert mass into luminosity. Choices are: 'starburst99' (standard starburst99 Single age stellar population SED, Kroupa IMF), 'maraston05_kr_rhb' (Maraston et al.2005 SSP SEDs, Kroupa IMF, red horizontal branch), 'user' (user provided table, see file_stellar_library(). |
logical io_routines::use_stellar_library |
use_stellar_library | TRUE if stellar library has to be loaded. |