MPI-AMRVAC  2.2
The MPI - Adaptive Mesh Refinement - Versatile Advection Code
Data Types | Modules | Functions/Subroutines | Variables
mod_thermal_conduction.t File Reference

Go to the source code of this file.

Modules

module  mod_thermal_conduction
 Thermal conduction for HD and MHD Adaptation of mod_thermal_conduction for the mod_supertimestepping In order to use it set use_mhd_tc=1 (for the mhd impl) or 2 (for the hd impl) in mhd_list (for the mhd module both hd and mhd impl can be used) or use_new_hd_tc in hd_list parameters to true (for the hd module, hd implementation has to be used) The TC is set by calling one tc_init_hd_for_total_energy and tc_init_mhd_for_total_energy might The second argument: ixArray has to be [rho_,e_,mag(1)] for mhd (Be aware that the other components of the mag field are assumed consecutive) and [rho_,e_] for hd additionally when internal energy equation is solved, an additional element of this array is eaux_: the index of the internal energy variable.
 

Functions/Subroutines

subroutine tc_params_read_mhd (files)
 Read tc module parameters from par file: MHD case. More...
 
subroutine, public mod_thermal_conduction::tc_init_mhd_for_total_energy (phys_gamma, ixArray, mhd_get_temperature_from_etot, mhd_get_temperature_from_eint)
 Initialize the module this adds the term in the STS methods linked lists when the total energy equation is used Params: gamma ixArray : an array with the indices of the variables mhd_get_temperature_from_etot, mhd_get_temperature_from_eint subroutines which calculates temperature mhd_ei_to_e, mhd_e_to_ei subroutines which calculates e_tot from e_int and e_int from e_tot. More...
 
subroutine, public mod_thermal_conduction::tc_init_mhd_for_internal_energy (phys_gamma, ixArray, mhd_get_temperature_from_eint)
 Initialize tc module: MHD case this adds the term in the STS methods linked lists when the internal energy equation is used Params: gamma ixArray : an array with the indices of the variables mhd_get_temperature_from_eint subroutines which calculates temperature. More...
 
subroutine mod_thermal_conduction::tc_init_hd_params (phys_gamma, ixArray)
 
subroutine tc_params_read_hd (files)
 Read tc parameters from par file: HD case. More...
 
subroutine, public mod_thermal_conduction::tc_init_hd_for_total_energy (phys_gamma, ixArray, hd_get_temperature_from_etot, hd_get_temperature_from_eint)
 Initialize the module for the HD this adds the term in the STS methods linked lists when the total energy equation is used Params: gamma ixArray : an array with the indices of the variables mhd_get_temperature_from_etot, mhd_get_temperature_from_eint subroutines which calculates temperature mhd_ei_to_e, mhd_e_to_ei subroutines which calculates e_tot from e_int and e_int from e_tot. More...
 
subroutine, public mod_thermal_conduction::tc_init_hd_for_internal_energy (phys_gamma, ixArray, hd_get_temperature_from_eint)
 Initialize the module this adds the term in the STS methods linked lists when the internal energy equation is used Params: gamma ixArray : an array with the indices of the variables mhd_get_temperature_from_eint subroutines which calculates temperature. More...
 
double precision function mod_thermal_conduction::get_tc_dt_mhd (w, ixIL, ixOL, dxD, x)
 Get the explicut timestep for the TC (mhd implementation) More...
 
subroutine mod_thermal_conduction::sts_set_source_tc_mhd (ixIL, ixOL, w, x, wres, fix_conserve_at_step, my_dt, igrid, nflux)
 anisotropic thermal conduction with slope limited symmetric scheme Sharma 2007 Journal of Computational Physics 227, 123 More...
 
double precision function, dimension(ixi^s) mod_thermal_conduction::slope_limiter (f, ixIL, ixOL, idims, pm)
 
subroutine mod_thermal_conduction::gradientc (q, ixIL, ixOL, idir, gradq)
 Calculate gradient of a scalar q at cell interfaces in direction idir. More...
 
double precision function mod_thermal_conduction::get_tc_dt_hd (w, ixIL, ixOL, dxD, x)
 
subroutine mod_thermal_conduction::sts_set_source_tc_hd (ixIL, ixOL, w, x, wres, fix_conserve_at_step, my_dt, igrid, nflux)
 
subroutine mod_thermal_conduction::handle_small_e (w, x, ixIL, ixOL, step)
 

Variables

double precision, public mod_thermal_conduction::tc_k_para
 Coefficient of thermal conductivity (parallel to magnetic field) More...
 
double precision, public mod_thermal_conduction::tc_k_perp
 Coefficient of thermal conductivity perpendicular to magnetic field. More...
 
logical, public mod_thermal_conduction::tc_perpendicular =.false.
 Calculate thermal conduction perpendicular to magnetic field (.true.) or not (.false.) More...
 
procedure(get_temperature_subr), pointer mod_thermal_conduction::get_temperature_from_eint => null()
 

Function/Subroutine Documentation

◆ tc_params_read_hd()

subroutine tc_init_hd_params::tc_params_read_hd ( character(len=*), dimension(:), intent(in)  files)

Read tc parameters from par file: HD case.

Definition at line 248 of file mod_thermal_conduction.t.

◆ tc_params_read_mhd()

subroutine tc_init_mhd_params::tc_params_read_mhd ( character(len=*), dimension(:), intent(in)  files)

Read tc module parameters from par file: MHD case.

Definition at line 130 of file mod_thermal_conduction.t.