MPI-AMRVAC 3.2
The MPI - Adaptive Mesh Refinement - Versatile Advection Code
Loading...
Searching...
No Matches
Functions/Subroutines | Variables
mod_opal_opacity Module Reference

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
 

Detailed Description

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.

Function/Subroutine Documentation

◆ init_opal_table()

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.

◆ set_opal_opacity()

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.

Here is the call graph for this function:

Variable Documentation

◆ kappa_vals

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.

◆ logr_list

double precision, dimension(irmin:irmax), public mod_opal_opacity::logr_list

Definition at line 22 of file mod_opal_opacity.t.

◆ logt_list

double precision, dimension(itmin:itmax), public mod_opal_opacity::logt_list

Definition at line 22 of file mod_opal_opacity.t.