afivo-streamer 1.1
1D/2D/3D streamer simulations with AMR
|
Module that stores parameters related to the gas. More...
Functions/Subroutines | |
subroutine, public | gas_initialize (tree, cfg) |
Initialize this module. | |
subroutine, public | gas_forward_euler (tree, dt, dt_stiff, dt_lim, time, s_deriv, n_prev, s_prev, w_prev, s_out, i_step, n_steps) |
A forward-Euler method for the Euler equations. | |
elemental integer function, public | gas_index (name) |
Find index of a gas component, return -1 if not found. | |
Variables | |
logical, public, protected | gas_constant_density = .true. |
Whether the gas has a constant density. | |
logical, public, protected | gas_dynamics = .false. |
Whether the gas dynamics are simulated. | |
real(dp), public, protected | gas_pressure = 1.0_dp |
real(dp), public, protected | gas_temperature = 300.0_dp |
real(dp), dimension(:), allocatable, public, protected | gas_fractions |
real(dp), dimension(:), allocatable, public, protected | gas_densities |
character(len=comp_len), dimension(:), allocatable, public, protected | gas_components |
real(dp), public, protected | gas_number_density |
real(dp), public, protected | gas_inverse_number_density |
real(dp), parameter, public | si_to_townsend = 1e21_dp |
real(dp), parameter, public | townsend_to_si = 1e-21_dp |
integer, public, protected | i_gas_dens = -1 |
real(dp), public, protected | gas_molecular_weight = 28.8_dp * UC_atomic_mass |
real(dp), public, protected | gas_vt_time = 20e-6_dp |
Vibration-Translation relaxation time (s) | |
real(dp), public, protected | gas_heating_efficiency = 1.0_dp |
real(dp), public, protected | gas_fraction_slow_heating = 0.0_dp |
real(dp), public, protected | gas_ehd_factor = 1.0_dp |
real(dp), public, protected | gas_euler_gamma = 1.4_dp |
integer, parameter, public | n_vars_euler = 2+NDIM |
integer, dimension(n_vars_euler), public, protected | gas_vars = -1 |
integer, dimension(n_vars_euler+1), public, protected | gas_prim_vars = -1 |
integer, dimension(n_vars_euler), public, protected | gas_fluxes = -1 |
integer, public, protected | i_vibration_energy = -1 |
character(len=name_len), dimension(n_vars_euler), public, protected | gas_var_names |
integer, parameter, public | i_rho = 1 |
integer, dimension(ndim), parameter, public | i_mom = [2] |
integer, parameter, public | i_e = i_mom(NDIM) + 1 |
Module that stores parameters related to the gas.
subroutine, public m_gas::gas_forward_euler | ( | type(af_t), intent(inout) | tree, |
real(dp), intent(in) | dt, | ||
real(dp), intent(in) | dt_stiff, | ||
real(dp), intent(inout) | dt_lim, | ||
real(dp), intent(in) | time, | ||
integer, intent(in) | s_deriv, | ||
integer, intent(in) | n_prev, | ||
integer, dimension(n_prev), intent(in) | s_prev, | ||
real(dp), dimension(n_prev), intent(in) | w_prev, | ||
integer, intent(in) | s_out, | ||
integer, intent(in) | i_step, | ||
integer, intent(in) | n_steps ) |
A forward-Euler method for the Euler equations.
[in] | dt | Time step |
[in] | dt_stiff | Time step for stiff terms (IMEX) |
[in,out] | dt_lim | Computed time step limit |
[in] | time | Current time |
[in] | s_deriv | State to compute derivatives from |
[in] | n_prev | Number of previous states |
[in] | s_prev | Previous states |
[in] | w_prev | Weights of previous states |
[in] | s_out | Output state |
[in] | i_step | Step of the integrator |
[in] | n_steps | Total number of steps |
elemental integer function, public m_gas::gas_index | ( | character(len=*), intent(in) | name | ) |
subroutine, public m_gas::gas_initialize | ( | type(af_t), intent(inout) | tree, |
type(cfg_t), intent(inout) | cfg ) |
character(len=comp_len), dimension(:), allocatable, public, protected m_gas::gas_components |
logical, public, protected m_gas::gas_constant_density = .true. |
real(dp), dimension(:), allocatable, public, protected m_gas::gas_densities |
logical, public, protected m_gas::gas_dynamics = .false. |
real(dp), public, protected m_gas::gas_euler_gamma = 1.4_dp |
integer, dimension(n_vars_euler), public, protected m_gas::gas_fluxes = -1 |
real(dp), public, protected m_gas::gas_fraction_slow_heating = 0.0_dp |
real(dp), dimension(:), allocatable, public, protected m_gas::gas_fractions |
real(dp), public, protected m_gas::gas_heating_efficiency = 1.0_dp |
real(dp), public, protected m_gas::gas_inverse_number_density |
real(dp), public, protected m_gas::gas_molecular_weight = 28.8_dp * UC_atomic_mass |
integer, dimension(n_vars_euler+1), public, protected m_gas::gas_prim_vars = -1 |
real(dp), public, protected m_gas::gas_temperature = 300.0_dp |
character(len=name_len), dimension(n_vars_euler), public, protected m_gas::gas_var_names |
integer, dimension(n_vars_euler), public, protected m_gas::gas_vars = -1 |
real(dp), public, protected m_gas::gas_vt_time = 20e-6_dp |
integer, dimension(ndim), parameter, public m_gas::i_mom = [2] |
real(dp), parameter, public m_gas::si_to_townsend = 1e21_dp |