MPI-AMRVAC  3.0
The MPI - Adaptive Mesh Refinement - Versatile Advection Code
Modules | Functions/Subroutines | Variables
mod_cak_opacity.t File Reference

Go to the source code of this file.

Modules

module  mod_cak_opacity
 

Functions/Subroutines

subroutine, public mod_cak_opacity::init_cak (tablename)
 This routine is called when the fld radiation module is initialised. Here, the tables for different He Abndcs are read and interpolated. More...
 
subroutine, public mod_cak_opacity::set_cak_opacity (rho, temp, gradv, alpha_output, Qbar_output, Q0_output, kappa_e_output)
 This subroutine calculates the opacity for a given temperature-density structure. The opacities are read from a table that has the initialised metalicity. More...
 
subroutine mod_cak_opacity::read_table (D, T, K, filename)
 This routine reads out values and arguments from a table. More...
 
subroutine mod_cak_opacity::get_val_comb (K1_vals, K2_vals, K3_vals, K4_vals, Log_D_list, Log_T_list, D, T, K1, K2, K3, K4)
 This subroutine looks in the table for the four couples (T,R) More...
 
subroutine mod_cak_opacity::get_low_up_index (x, x_list, imin, imax, low_i, up_i)
 this subroutine finds the indexes in R and T arrays of the two values surrounding the input R and T More...
 
subroutine mod_cak_opacity::interpolate_krt (low_r, up_r, low_t, up_t, Log_D_list, Log_T_list, Kappa_vals, D, T, k_interp)
 This subroutine does a bilinear interpolation in the R,T-plane. More...
 
subroutine mod_cak_opacity::interpolate1d (x1, x2, x, y1, y2, y)
 Interpolation in one dimension. More...
 

Variables

integer, parameter mod_cak_opacity::dmin = 2
 min and max indices for R,T-range in opacity table More...
 
integer, parameter mod_cak_opacity::dmax = 21
 
integer, parameter mod_cak_opacity::tmin = 2
 
integer, parameter mod_cak_opacity::tmax = 21
 
double precision, dimension(dmin:dmax, tmin:tmax), public mod_cak_opacity::alpha_vals
 The opacity tables are read once and stored globally in Kappa_vals. More...
 
double precision, dimension(dmin:dmax, tmin:tmax), public mod_cak_opacity::qbar_vals
 
double precision, dimension(dmin:dmax, tmin:tmax), public mod_cak_opacity::q0_vals
 
double precision, dimension(dmin:dmax, tmin:tmax), public mod_cak_opacity::kappa_e_vals
 
double precision, dimension(dmin:dmax), public mod_cak_opacity::log_d_list
 
double precision, dimension(tmin:tmax), public mod_cak_opacity::log_t_list
 
character(255), public mod_cak_opacity::amrvac_dir
 
character(255), public mod_cak_opacity::fileplace