krook_collisions
moment_kinetics.krook_collisions
— Modulemoment_kinetics.krook_collisions.electron_krook_collisions!
— MethodAdd Krook collision operator for electrons
Note that this function operates on a single point in r
, so pdf_out
, pdf_in
, dens_in
, upar_in
, upar_ion_in
, and vth_in
should have no r-dimension.
moment_kinetics.krook_collisions.get_collision_frequency_ee
— Methodget_collision_frequency_ee(collisions, n, vthe)
Calculate the electron-electron collision frequency, depending on the settings/parameters in collisions
, for the given density n
and electron thermal speed vthe
.
n
and vthe
may be scalars or arrays, but should have shapes that can be broadcasted together.
moment_kinetics.krook_collisions.get_collision_frequency_ei
— Methodget_collision_frequency_ei(collisions, n, vthe)
Calculate the electron-electron collision frequency, depending on the settings/parameters in collisions
, for the given density n
and electron thermal speed vthe
.
n
and vthe
may be scalars or arrays, but should have shapes that can be broadcasted together.
moment_kinetics.krook_collisions.get_collision_frequency_ii
— Methodget_collision_frequency_ii(collisions, n, vth)
Calculate the ion-ion collision frequency, depending on the settings/parameters in collisions
, for the given density n
and thermal speed vth
.
n
and vth
may be scalars or arrays, but should have shapes that can be broadcasted together.
moment_kinetics.krook_collisions.krook_collisions!
— MethodAdd collision operator
Currently Krook collisions
moment_kinetics.krook_collisions.setup_krook_collisions_input
— MethodFunction for reading Krook collision operator input parameters. Structure the namelist as follows.
[krookcollisions] usekrook = true nuii0 = 1.0 frequency_option = "manual"