6#include "ddc_alias_inline_functions.hpp"
7#include "ddc_aliases.hpp"
8#include "paraconfpp.hpp"
9#include "species_info.hpp"
16 using IdxR = Idx<GridR>;
17 using IdxRangeR = IdxRange<GridR>;
31 double m_nustar0_rpeak;
35 std::int8_t m_collisions_interspecies;
40 double const m_q_rpeak;
62 double const rpeak = m_rpeak;
63 double const q_rpeak = m_q_rpeak;
64 double const R0 = m_R0;
65 double const nustar0_rpeak = m_nustar0_rpeak;
69 double const eps_rpeak = rpeak / R0;
70 double const coeff_AD_rpeak
71 = std::sqrt(2.) * eps_rpeak * std::sqrt(eps_rpeak) * nustar0_rpeak / (q_rpeak * R0);
76 ddc::parallel_for_each(
77 Kokkos::DefaultExecutionSpace(),
79 KOKKOS_LAMBDA(Idx<GridR> idx_r) {
coeff_AD(idx_r) = coeff_AD_rpeak; });
96 double const nustar0_rpeak,
102 , m_nustar0_rpeak(nustar0_rpeak)
104 , m_coeff_AD(idxrange_r)
118 return m_collisions_interspecies;
128 return get_const_field(m_coeff_AD);
Class to collect information to initialize the collision operator.
Definition collisioninfo_radial.hpp:14
DConstField< IdxRangeR > DConstFieldR
Type alias for a field defined on a grid of radial values.
Definition collisioninfo_radial.hpp:25
DField< IdxRangeR > DFieldR
Type alias for a field defined on a grid of radial values.
Definition collisioninfo_radial.hpp:23
DConstFieldR coeff_AD() const
A method for accessing coeff_AD (the radial profile of AD coeff) variable of the class.
Definition collisioninfo_radial.hpp:126
void compute_coeff_AD(IdxRangeR idxrange_r)
Computation of the radial profile of AD.
Definition collisioninfo_radial.hpp:60
DFieldMem< IdxRangeR > DFieldMemR
Type alias for a field memory block on a grid of radial values.
Definition collisioninfo_radial.hpp:21
DConstFieldR radial_chunk_type
radial_chunk_type used to treat the 0D case for radial profile
Definition collisioninfo_radial.hpp:27
std::int8_t collisions_interspecies() const
A method for accessing the collisions_interspecies member variable of the class.
Definition collisioninfo_radial.hpp:116
CollisionInfoRadial(double const rpeak, double const q_rpeak, double const R0, double const nustar0_rpeak, std::int8_t const collisions_interspecies, IdxRangeR idxrange_r)
The constructor for the CollisionInfoRadial class.
Definition collisioninfo_radial.hpp:92