ORB5  v4.9.4
collisions_mod Module Reference

Functions/Subroutines

subroutine, public init_collisions
 
subroutine, public collisions_disp
 Main routine for the multi-species collision operator. More...
 
real function glratio (isp, st, chit, ut, mut, psi0corr)
 
subroutine collisionless_to_collision_background (isp, ip)
 
subroutine collision_to_collisionless_background (isp, ip)
 
subroutine collisions_langevin_l (pic1_loc, pic2_loc, isp, ispback)
 Use the Langevin approach to compute the test particle part of the linear collision operator. More...
 
subroutine collisions_langevin_nl (pic1_loc, pic2_loc, isp, ispback)
 Use the Langevin approach to compute the non linear collision operator. More...
 
subroutine moment_correction (pic1_loc, pic2_loc, ispa, ispb)
 the weights are corrected after the collisions in order to conserve density and & ensure the right exchanges of momentum and energy inside each spatial bin More...
 
subroutine, public get_bin_momentum (isp, st, chit, phit, Nval, Vpval, Tval, qpval)
 get the fluid moments corresponding to the bin which contains the marker More...
 
subroutine initial_momentum_computation
 Compute and save the values of the three moments for each bin before the collision step. More...
 
subroutine delta_momentum_computation (isp, choice)
 Compute and save the evolution of the three moments for each bin during the collision step. More...
 
subroutine build_conservation_matrix (pic1_loc, pic2_loc, ispa, ispb)
 Build matrix that are used to ensure conservation inside each spatial bin. More...
 
subroutine alpha_computation (ispa, ispb)
 
subroutine momentum_evol_theo_l (ibin, ispa, ispb, deltaP, deltaE)
 
subroutine momentum_evol_theo_nl (ibin, ispa, ispb, deltaP, deltaE)
 
real function, public rosenbluth_h (x)
 
real function, public rosenbluth_k (x)
 
real function derf_dx (x)
 
subroutine get_m_l (ibin, ispa, ispb, v_loc, xi_loc, M1, M2)
 
subroutine get_m_nl (ibin, ispa, ispb, v_loc, xi_loc, M1, M2)
 
subroutine compute_nuab_bar (ibin, ispa, ispb, nu_ab_bar)
 
real function initial_momentum_function (isp, psi, moment_type)
 
integer function coll_ibin_to_radial_index (ibin)
 invert the radial index part of get_space_bin (ibin -> s_bin_index) More...
 
real function coll_radial_bin_pos (ix)
 get the real radial position of the i-th radial bin More...
 

Variables

real, dimension(:,:,:), allocatable initial_momentum
 
real, dimension(:,:,:), allocatable mat_cons_3d
 
real, dimension(:,:), allocatable delta_momentum_p
 
real, dimension(:,:), allocatable delta_momentum_w
 
real, dimension(:,:), allocatable alpha_coef_p
 
real, dimension(:,:), allocatable alpha_coef_w
 
real, dimension(:), allocatable, save, public rx
 
real, dimension(:), allocatable, save, public ry
 
real, dimension(:), allocatable, save, public rz
 
real, save sqrt_pi
 
real, save sqrt_2
 

Function/Subroutine Documentation

◆ alpha_computation()

subroutine collisions_mod::alpha_computation ( integer, intent(in)  ispa,
integer, intent(in)  ispb 
)
private
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ build_conservation_matrix()

subroutine collisions_mod::build_conservation_matrix ( real, dimension(:,:), intent(in)  pic1_loc,
real, dimension(:,:), intent(in)  pic2_loc,
integer, intent(in)  ispa,
integer, intent(in)  ispb 
)
private

Build matrix that are used to ensure conservation inside each spatial bin.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ coll_ibin_to_radial_index()

integer function collisions_mod::coll_ibin_to_radial_index ( integer, intent(in)  ibin)
private

invert the radial index part of get_space_bin (ibin -> s_bin_index)

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ coll_radial_bin_pos()

real function collisions_mod::coll_radial_bin_pos ( integer, intent(in)  ix)
private

get the real radial position of the i-th radial bin

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ collision_to_collisionless_background()

subroutine collisions_mod::collision_to_collisionless_background ( integer, intent(in)  isp,
integer, intent(in)  ip 
)
private
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ collisionless_to_collision_background()

subroutine collisions_mod::collisionless_to_collision_background ( integer, intent(in)  isp,
integer, intent(in)  ip 
)
private
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ collisions_disp()

subroutine, public collisions_mod::collisions_disp

Main routine for the multi-species collision operator.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ collisions_langevin_l()

subroutine collisions_mod::collisions_langevin_l ( real, dimension(:,:), intent(inout)  pic1_loc,
real, dimension(:,:), intent(inout)  pic2_loc,
integer, intent(in)  isp,
integer, intent(in)  ispback 
)
private

Use the Langevin approach to compute the test particle part of the linear collision operator.

Parameters
[in,out]pic1_locpic array of a certain species.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ collisions_langevin_nl()

subroutine collisions_mod::collisions_langevin_nl ( real, dimension(:,:), intent(inout)  pic1_loc,
real, dimension(:,:), intent(inout)  pic2_loc,
integer, intent(in)  isp,
integer, intent(in)  ispback 
)
private

Use the Langevin approach to compute the non linear collision operator.

Parameters
[in,out]pic1_locpic array of a certain species.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ compute_nuab_bar()

subroutine collisions_mod::compute_nuab_bar ( integer, intent(in)  ibin,
integer, intent(in)  ispa,
integer, intent(in)  ispb,
real, intent(out)  nu_ab_bar 
)
private
+ Here is the caller graph for this function:

◆ delta_momentum_computation()

subroutine collisions_mod::delta_momentum_computation ( integer, intent(in)  isp,
integer, intent(in)  choice 
)
private

Compute and save the evolution of the three moments for each bin during the collision step.

+ Here is the caller graph for this function:

◆ derf_dx()

real function collisions_mod::derf_dx ( real  x)
private
+ Here is the caller graph for this function:

◆ get_bin_momentum()

subroutine, public collisions_mod::get_bin_momentum ( integer, intent(in)  isp,
real, intent(in)  st,
real, intent(in)  chit,
real, intent(in)  phit,
real, intent(out)  Nval,
real, intent(out)  Vpval,
real, intent(out)  Tval,
real, intent(out)  qpval 
)

get the fluid moments corresponding to the bin which contains the marker

+ Here is the caller graph for this function:

◆ get_m_l()

subroutine collisions_mod::get_m_l ( integer, intent(in)  ibin,
integer, intent(in)  ispa,
integer, intent(in)  ispb,
real, intent(in)  v_loc,
real, intent(in)  xi_loc,
real, intent(out)  M1,
real, intent(out)  M2 
)
private
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ get_m_nl()

subroutine collisions_mod::get_m_nl ( integer, intent(in)  ibin,
integer, intent(in)  ispa,
integer, intent(in)  ispb,
real, intent(in)  v_loc,
real, intent(in)  xi_loc,
real, intent(out)  M1,
real, intent(out)  M2 
)
private
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ glratio()

real function collisions_mod::glratio ( integer, intent(in)  isp,
real, intent(in)  st,
real, intent(in)  chit,
real, intent(in)  ut,
real, intent(in)  mut,
real, intent(in)  psi0corr 
)
private
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ init_collisions()

subroutine, public collisions_mod::init_collisions
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initial_momentum_computation()

subroutine collisions_mod::initial_momentum_computation
private

Compute and save the values of the three moments for each bin before the collision step.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initial_momentum_function()

real function collisions_mod::initial_momentum_function ( integer, intent(in)  isp,
real, intent(in)  psi,
integer, intent(in)  moment_type 
)
private
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ moment_correction()

subroutine collisions_mod::moment_correction ( real, dimension(:,:), intent(inout)  pic1_loc,
real, dimension(:,:), intent(inout)  pic2_loc,
integer, intent(in)  ispa,
integer, intent(in)  ispb 
)
private

the weights are corrected after the collisions in order to conserve density and & ensure the right exchanges of momentum and energy inside each spatial bin

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ momentum_evol_theo_l()

subroutine collisions_mod::momentum_evol_theo_l ( integer, intent(in)  ibin,
integer, intent(in)  ispa,
integer, intent(in)  ispb,
real, intent(out)  deltaP,
real, intent(out)  deltaE 
)
private
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ momentum_evol_theo_nl()

subroutine collisions_mod::momentum_evol_theo_nl ( integer, intent(in)  ibin,
integer, intent(in)  ispa,
integer, intent(in)  ispb,
real, intent(out)  deltaP,
real, intent(out)  deltaE 
)
private
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ rosenbluth_h()

real function, public collisions_mod::rosenbluth_h ( real  x)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ rosenbluth_k()

real function, public collisions_mod::rosenbluth_k ( real  x)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ alpha_coef_p

real, dimension(:,:), allocatable collisions_mod::alpha_coef_p
private

◆ alpha_coef_w

real, dimension(:,:), allocatable collisions_mod::alpha_coef_w
private

◆ delta_momentum_p

real, dimension(:,:), allocatable collisions_mod::delta_momentum_p
private

◆ delta_momentum_w

real, dimension(:,:), allocatable collisions_mod::delta_momentum_w
private

◆ initial_momentum

real, dimension(:,:,:), allocatable collisions_mod::initial_momentum
private

◆ mat_cons_3d

real, dimension(:,:,:), allocatable collisions_mod::mat_cons_3d
private

◆ rx

real, dimension(:), allocatable, save, public collisions_mod::rx

◆ ry

real, dimension(:), allocatable, save, public collisions_mod::ry

◆ rz

real, dimension(:), allocatable, save, public collisions_mod::rz

◆ sqrt_2

real, save collisions_mod::sqrt_2
private

◆ sqrt_pi

real, save collisions_mod::sqrt_pi
private