ASCOT5
|
Euler-Maruyama integrator for collision operator in GC picture. More...
#include <math.h>
#include "../../ascot5.h"
#include "../../consts.h"
#include "../../physlib.h"
#include "../../error.h"
#include "../../particle.h"
#include "../../B_field.h"
#include "../../plasma.h"
#include "../../random.h"
#include "mccc_coefs.h"
#include "mccc.h"
Go to the source code of this file.
Functions | |
void | mccc_gc_euler (particle_simd_gc *p, real *h, B_field_data *Bdata, plasma_data *pdata, mccc_data *mdata, real *rnd) |
Integrate collisions for one time-step. | |
Euler-Maruyama integrator for collision operator in GC picture.
Definition in file mccc_gc_euler.c.
void mccc_gc_euler | ( | particle_simd_gc * | p, |
real * | h, | ||
B_field_data * | Bdata, | ||
plasma_data * | pdata, | ||
mccc_data * | mdata, | ||
real * | rnd ) |
Integrate collisions for one time-step.
p | gc struct |
h | time-steps for NSIMD markers |
Bdata | pointer to magnetic field |
pdata | pointer to plasma data |
mdata | pointer to collision data struct |
rnd | array of normally distributed random numbers used to resolve collisions. Values for marker i are rnd[i*NSIMD + j] |
Definition at line 29 of file mccc_gc_euler.c.