afivo-streamer 1.1
1D/2D/3D streamer simulations with AMR
Loading...
Searching...
No Matches
Functions/Subroutines | Variables
m_gas Module Reference

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
 

Detailed Description

Module that stores parameters related to the gas.

Function/Subroutine Documentation

◆ gas_forward_euler()

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.

Parameters
[in]dtTime step
[in]dt_stiffTime step for stiff terms (IMEX)
[in,out]dt_limComputed time step limit
[in]timeCurrent time
[in]s_derivState to compute derivatives from
[in]n_prevNumber of previous states
[in]s_prevPrevious states
[in]w_prevWeights of previous states
[in]s_outOutput state
[in]i_stepStep of the integrator
[in]n_stepsTotal number of steps

Definition at line 202 of file m_gas.f90.

◆ gas_index()

elemental integer function, public m_gas::gas_index ( character(len=*), intent(in) name)

Find index of a gas component, return -1 if not found.

Definition at line 284 of file m_gas.f90.

Here is the call graph for this function:

◆ gas_initialize()

subroutine, public m_gas::gas_initialize ( type(af_t), intent(inout) tree,
type(cfg_t), intent(inout) cfg )

Initialize this module.

Todo
compute gas molecular weight from gas composition

Definition at line 100 of file m_gas.f90.

Variable Documentation

◆ gas_components

character(len=comp_len), dimension(:), allocatable, public, protected m_gas::gas_components

Definition at line 30 of file m_gas.f90.

◆ gas_constant_density

logical, public, protected m_gas::gas_constant_density = .true.

Whether the gas has a constant density.

Definition at line 12 of file m_gas.f90.

◆ gas_densities

real(dp), dimension(:), allocatable, public, protected m_gas::gas_densities

Definition at line 27 of file m_gas.f90.

◆ gas_dynamics

logical, public, protected m_gas::gas_dynamics = .false.

Whether the gas dynamics are simulated.

Definition at line 15 of file m_gas.f90.

◆ gas_ehd_factor

real(dp), public, protected m_gas::gas_ehd_factor = 1.0_dp

Definition at line 60 of file m_gas.f90.

◆ gas_euler_gamma

real(dp), public, protected m_gas::gas_euler_gamma = 1.4_dp

Definition at line 63 of file m_gas.f90.

◆ gas_fluxes

integer, dimension(n_vars_euler), public, protected m_gas::gas_fluxes = -1

Definition at line 74 of file m_gas.f90.

◆ gas_fraction_slow_heating

real(dp), public, protected m_gas::gas_fraction_slow_heating = 0.0_dp

Definition at line 57 of file m_gas.f90.

◆ gas_fractions

real(dp), dimension(:), allocatable, public, protected m_gas::gas_fractions

Definition at line 24 of file m_gas.f90.

◆ gas_heating_efficiency

real(dp), public, protected m_gas::gas_heating_efficiency = 1.0_dp

Definition at line 54 of file m_gas.f90.

◆ gas_inverse_number_density

real(dp), public, protected m_gas::gas_inverse_number_density

Definition at line 36 of file m_gas.f90.

◆ gas_molecular_weight

real(dp), public, protected m_gas::gas_molecular_weight = 28.8_dp * UC_atomic_mass

Definition at line 48 of file m_gas.f90.

◆ gas_number_density

real(dp), public, protected m_gas::gas_number_density

Definition at line 33 of file m_gas.f90.

◆ gas_pressure

real(dp), public, protected m_gas::gas_pressure = 1.0_dp

Definition at line 18 of file m_gas.f90.

◆ gas_prim_vars

integer, dimension(n_vars_euler+1), public, protected m_gas::gas_prim_vars = -1

Definition at line 71 of file m_gas.f90.

◆ gas_temperature

real(dp), public, protected m_gas::gas_temperature = 300.0_dp

Definition at line 21 of file m_gas.f90.

◆ gas_var_names

character(len=name_len), dimension(n_vars_euler), public, protected m_gas::gas_var_names

Definition at line 80 of file m_gas.f90.

◆ gas_vars

integer, dimension(n_vars_euler), public, protected m_gas::gas_vars = -1

Definition at line 69 of file m_gas.f90.

◆ gas_vt_time

real(dp), public, protected m_gas::gas_vt_time = 20e-6_dp

Vibration-Translation relaxation time (s)

Definition at line 51 of file m_gas.f90.

◆ i_e

integer, parameter, public m_gas::i_e = i_mom(NDIM) + 1

Definition at line 91 of file m_gas.f90.

◆ i_gas_dens

integer, public, protected m_gas::i_gas_dens = -1

Definition at line 45 of file m_gas.f90.

◆ i_mom

integer, dimension(ndim), parameter, public m_gas::i_mom = [2]

Definition at line 85 of file m_gas.f90.

◆ i_rho

integer, parameter, public m_gas::i_rho = 1

Definition at line 83 of file m_gas.f90.

◆ i_vibration_energy

integer, public, protected m_gas::i_vibration_energy = -1

Definition at line 77 of file m_gas.f90.

◆ n_vars_euler

integer, parameter, public m_gas::n_vars_euler = 2+NDIM

Definition at line 66 of file m_gas.f90.

◆ si_to_townsend

real(dp), parameter, public m_gas::si_to_townsend = 1e21_dp

Definition at line 39 of file m_gas.f90.

◆ townsend_to_si

real(dp), parameter, public m_gas::townsend_to_si = 1e-21_dp

Definition at line 42 of file m_gas.f90.