|
MPI-AMRVAC 3.2
The MPI - Adaptive Mesh Refinement - Versatile Advection Code
|
This module reads in Rosseland-mean opacities from OPAL tables. Table opacity values are given in base 10 logarithm and are a function of mass density (R) and temperature (T), which are also both given in base 10 logarithm. More...
Functions/Subroutines | |
| subroutine, public | init_opal_table (tabledir, set_custom_tabledir) |
| This subroutine is called when the FLD radiation module is initialised. The OPAL tables for different helium abundances are read and interpolated. | |
| subroutine, public | set_opal_opacity (rho, temp, kappa) |
| This subroutine calculates the opacity for a given temperature-density structure. Opacities are read from a table with given metalicity. | |
Variables | |
| double precision, dimension(itmin:itmax, irmin:irmax), public | kappa_vals |
| The opacity tables are read once and stored globally in Kappa_vals. | |
| double precision, dimension(irmin:irmax), public | logr_list |
| double precision, dimension(itmin:itmax), public | logt_list |
This module reads in Rosseland-mean opacities from OPAL tables. Table opacity values are given in base 10 logarithm and are a function of mass density (R) and temperature (T), which are also both given in base 10 logarithm.
| subroutine, public mod_opal_opacity::init_opal_table | ( | character(len=*), intent(in) | tabledir, |
| logical, intent(in), optional | set_custom_tabledir | ||
| ) |
This subroutine is called when the FLD radiation module is initialised. The OPAL tables for different helium abundances are read and interpolated.
Definition at line 31 of file mod_opal_opacity.t.
| subroutine, public mod_opal_opacity::set_opal_opacity | ( | double precision, intent(in) | rho, |
| double precision, intent(in) | temp, | ||
| double precision, intent(out) | kappa | ||
| ) |
This subroutine calculates the opacity for a given temperature-density structure. Opacities are read from a table with given metalicity.
Definition at line 53 of file mod_opal_opacity.t.

| double precision, dimension(itmin:itmax,irmin:irmax), public mod_opal_opacity::kappa_vals |
The opacity tables are read once and stored globally in Kappa_vals.
Definition at line 21 of file mod_opal_opacity.t.
| double precision, dimension(irmin:irmax), public mod_opal_opacity::logr_list |
Definition at line 22 of file mod_opal_opacity.t.
| double precision, dimension(itmin:itmax), public mod_opal_opacity::logt_list |
Definition at line 22 of file mod_opal_opacity.t.