3#include "../afivo/src/cpp_macros.h"
22 type(af_t),
intent(inout) :: tree
23 real(dp),
intent(in) :: dt
25 call af_loop_box_arg(tree, add_heating_box, [dt], .true.)
28 subroutine add_heating_box(box, dt_vec)
29 type(box_t),
intent(inout) :: box
30 real(dp),
intent(in) :: dt_vec(:)
32 real(dp) :: j_dot_e, ehd_force(ndim)
33 real(dp) :: e_vt_release, tmp, eff_fast, eff_slow
34 real(dp) :: e_vector(dtimes(1:box%n_cell), ndim)
41 j_dot_e = j_dot_e + 0.5_dp * (&
44 j_dot_e = j_dot_e + 0.5_dp * (&
48 j_dot_e = j_dot_e + 0.5_dp * (&
62 eff_slow * tmp - e_vt_release
64 eff_fast * tmp + e_vt_release
82 end subroutine add_heating_box
86 type(af_t),
intent(inout) :: tree
88 call af_loop_box(tree, update_gas_density, .true.)
89 call af_gc_tree(tree, [i_gas_dens])
92 subroutine update_gas_density(box)
93 type(box_t),
intent(inout) :: box
95 real(dp) :: inv_weight
98 inv_weight = 1/gas_molecular_weight
100 box%cc(dtimes(1:nc), i_gas_dens) = &
101 box%cc(dtimes(1:nc), gas_vars(i_rho)) * inv_weight
102 end subroutine update_gas_density
Module for handling chemical reactions.
integer, dimension(:), allocatable, public, protected charged_species_itree
List with indices of charged species.
integer, dimension(:), allocatable, public, protected charged_species_charge
List with charges of charged species.
Module for the coupling between the gas dynamics and the fluid model.
subroutine, public coupling_add_fluid_source(tree, dt)
Add source terms form the fluid model to the Euler equations.
subroutine, public coupling_update_gas_density(tree)
Update gas number density in the fluid model.
Module to compute electric fields.
real(dp) function, dimension(dtimes(1:box%n_cell), ndim), public field_get_e_vector(box)
Module that stores parameters related to the gas.
integer, dimension(ndim), parameter, public i_mom
real(dp), public, protected gas_heating_efficiency
integer, dimension(n_vars_euler), public, protected gas_vars
real(dp), public, protected gas_fraction_slow_heating
integer, parameter, public i_e
integer, public, protected i_vibration_energy
real(dp), public, protected gas_vt_time
Vibration-Translation relaxation time (s)
real(dp), public, protected gas_ehd_factor
This module contains several pre-defined variables like:
integer, public, protected flux_elec
Index of electron flux.
integer, public, protected electric_fld
Index of electric field vector.
Module that contains physical and numerical constants.
real(dp), parameter uc_elem_charge
real(dp), parameter uc_elec_charge