ASCOT5
Loading...
Searching...
No Matches
gctransform.h
Go to the documentation of this file.
1
5#ifndef GCTRANSFORM_H
6#define GCTRANSFORM_H
7
8#include "ascot5.h"
9
10
11void gctransform_setorder(int order);
12
13DECLARE_TARGET_SIMD
15 real mass, real charge, real* B_dB,
16 real r, real phi, real z, real pr, real pphi, real pz,
17 real* R, real* Phi, real* Z, real* ppar, real* mu, real* zeta);
18
19DECLARE_TARGET_SIMD
21 real mass, real charge, real* B_dB,
22 real R, real Phi, real Z, real ppar, real mu, real zeta,
23 real* r, real* phi, real* z, real* pparprt, real* muprt, real* zetaprt);
24
25DECLARE_TARGET_SIMD
26void gctransform_pparmuzeta2prpphipz(real mass, real charge, real* B_dB,
27 real phi, real ppar, real mu, real zeta,
28 real* pr, real* pphi, real* pz);
29
30#endif
Main header file for ASCOT5.
double real
Definition ascot5.h:85
DECLARE_TARGET_SIMD void gctransform_particle2guidingcenter(real mass, real charge, real *B_dB, real r, real phi, real z, real pr, real pphi, real pz, real *R, real *Phi, real *Z, real *ppar, real *mu, real *zeta)
Transform particle to guiding center phase space.
Definition gctransform.c:90
DECLARE_TARGET_SIMD void gctransform_pparmuzeta2prpphipz(real mass, real charge, real *B_dB, real phi, real ppar, real mu, real zeta, real *pr, real *pphi, real *pz)
Transform particle ppar, mu, and zeta to momentum vector.
DECLARE_TARGET_SIMD void gctransform_guidingcenter2particle(real mass, real charge, real *B_dB, real R, real Phi, real Z, real ppar, real mu, real zeta, real *r, real *phi, real *z, real *pparprt, real *muprt, real *zetaprt)
Transform guiding center to particle phase space.
void gctransform_setorder(int order)
Set the order of the transformation.
Definition gctransform.c:62