Function used to sample the probability density function of a thermal plasma in the 3-dimensional velocity space.
This function returns , where is the temperature of the thermal electrons, and is the speed of the sampled electron.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=rp), | intent(in) | :: | Vth | Thermal velocity of the background electrons . |
||
real(kind=rp), | intent(in), | DIMENSION(3) | :: | V | Velocity of the sampled electron . |
Value of .
FUNCTION fth_3V(Vth,V)
!! @note Function used to sample the probability density function of a
!! thermal plasma in the 3-dimensional velocity space. @endnote
!! This function returns \(f_{T_e}(v) = \exp{\left( v^2/2v_{T_e}^2 \right)}\),
!! where \(v_{T_e} = \sqrt{T_e/m_e}\) is
!! the temperature of the thermal electrons, and \(v = |\mathbf{v}|\)
!! is the speed of the sampled electron.
REAL(rp), DIMENSION(3), INTENT(IN) :: V
!! Velocity of the sampled electron \(\mathbf{v}\).
REAL(rp), INTENT(IN) :: Vth
!! Thermal velocity of the background electrons \(v_{T_e}\).
REAL(rp) :: fth_3V
!! Value of \(f_{T_e}(v)\).
fth_3V = EXP(-0.5_rp*DOT_PRODUCT(V,V)/Vth**2.0_rp)
END FUNCTION fth_3V