72 real** offload_array);
74 real** offload_array);
79DECLARE_TARGET_SIMD_UNIFORM(asigmadata)
81 real* sigma,
int z_1,
int a_1,
int z_2,
int a_2,
real E_coll_per_amu,
83DECLARE_TARGET_SIMD_UNIFORM(asigmadata)
85 real* sigmav,
int z_1,
int a_1,
real m_1,
int z_2,
int a_2,
88DECLARE_TARGET_SIMD_UNIFORM(asigmadata)
90 real* ratecoeff,
int z_1,
int a_1,
real E,
real mass,
int nspec,
91 const int* znum,
const int* anum,
real T_0,
real* n_0,
93DECLARE_TARGET_SIMD_UNIFORM(asigmadata)
95 real* ratecoeff,
int z_1,
int a_1,
real E,
real mass,
int nion,
96 const int* znum,
const int* anum,
real T_e,
real* n_i,
Main header file for ASCOT5.
void asigma_extrapolate(int extrapolate)
Toggle extrapolation when evaluating cross sections.
a5err asigma_eval_bms(real *ratecoeff, int z_1, int a_1, real E, real mass, int nion, const int *znum, const int *anum, real T_e, real *n_i, asigma_data *asigmadata)
Evaluate beam stopping rate coefficient.
void asigma_free_offload(asigma_offload_data *offload_data, real **offload_array)
Free offload array and reset parameters.
int asigma_init(asigma_data *asigma_data, asigma_offload_data *offload_data, real *offload_array)
Initializes atomic reaction data struct on target.
a5err asigma_eval_sigmav(real *sigmav, int z_1, int a_1, real m_1, int z_2, int a_2, real E, real T_e, real T_0, real n_i, asigma_reac_type reac_type, asigma_data *asigmadata)
Evaluate atomic reaction rate coefficient.
a5err asigma_eval_sigma(real *sigma, int z_1, int a_1, int z_2, int a_2, real E_coll_per_amu, asigma_reac_type reac_type, asigma_data *asigmadata)
Evaluate atomic reaction cross-section.
a5err asigma_eval_cx(real *ratecoeff, int z_1, int a_1, real E, real mass, int nspec, const int *znum, const int *anum, real T_0, real *n_0, asigma_data *asigmadata)
Evaluate charge exchange rate coefficient.
asigma_reac_type
Reaction types for atomic reaction data.
asigma_type
Atomic reaction data types.
int asigma_init_offload(asigma_offload_data *offload_data, real **offload_array)
Load atomic reaction data and prepare parameters.
Header file for asigma_loc.c.
unsigned long int a5err
Simulation error flag.
Atomic reaction simulation data.
asigma_loc_data asigma_loc
Local-files atomic reaction simulation data.
Local-files atomic reaction offload data.
Atomic reaction offload data.
asigma_loc_offload_data asigma_loc