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

Guiding center equations of motion with MHD activity. More...

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

Go to the source code of this file.

Functions

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

Detailed Description

Guiding center equations of motion with MHD activity.

Definition in file step_gceom_mhd.h.

Function Documentation

◆ step_gceom_mhd()

static DECLARE_TARGET_SIMD void step_gceom_mhd ( real * ydot,
real * y,
real mass,
real charge,
real * B_dB,
real * E,
real * mhd_dmhd )
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, chidot)
yinput coordinates in a 5-length array (r, phi, z, rhopar, mu)
massmass
chargecharge
B_dBmagnetic field and derivatives at the guiding center location
Eelectric field at the guiding center location
mhd_dmhdmhd perturbation information evaluated by mhd.c

Definition at line 28 of file step_gceom_mhd.h.