ASCOT5
Loading...
Searching...
No Matches
Functions
mccc_fo_euler.c File Reference

Euler-Maruyama integrator for collision operator in FO picture. More...

#include <math.h>
#include "../../ascot5.h"
#include "../../consts.h"
#include "../../error.h"
#include "../../physlib.h"
#include "../../particle.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_fo_euler (particle_simd_fo *p, real *h, plasma_data *pdata, mccc_data *mdata, real *rnd)
 Integrate collisions for one time-step.
 

Detailed Description

Euler-Maruyama integrator for collision operator in FO picture.

Definition in file mccc_fo_euler.c.

Function Documentation

◆ mccc_fo_euler()

void mccc_fo_euler ( particle_simd_fo * p,
real * h,
plasma_data * pdata,
mccc_data * mdata,
real * rnd )

Integrate collisions for one time-step.

Parameters
pfo struct
htime-steps for NSIMD markers
pdatapointer to plasma data
mdatapointer collision data struct
rndarray of normally distributed random numbers used to resolve collisions. Values for marker i are rnd[i*NSIMD + j]

Definition at line 27 of file mccc_fo_euler.c.