ASCOT5
Loading...
Searching...
No Matches
Functions
step_gceom.h File Reference

Guiding center equations of motion. More...

#include <math.h>
#include "../../ascot5.h"
#include "../../physlib.h"

Go to the source code of this file.

Functions

static DECLARE_TARGET_SIMD void step_gceom (real *ydot, real *y, real mass, real charge, real *B_dB, real *E)
 Calculate guiding center equations of motion for a single particle.
 

Detailed Description

Guiding center equations of motion.

Definition in file step_gceom.h.

Function Documentation

◆ step_gceom()

static DECLARE_TARGET_SIMD void step_gceom ( real * ydot,
real * y,
real mass,
real charge,
real * B_dB,
real * E )
inlinestatic

Calculate guiding center equations of motion for a single particle.

Parameters
ydotoutput right hand side of the equations of motion in a 6-length array (rdot, phidot, zdot, ppardot, mudot, zetadot)
yinput coordinates in a 6-length array (r, phi, z, vpar, mu, zeta)
massmass [kg]
chargecharge [C]
B_dBmagnetic field and derivatives at the guiding center location
Eelectric field at the guiding center location

Definition at line 26 of file step_gceom.h.