ASCOT5
Loading...
Searching...
No Matches
boozer.h
Go to the documentation of this file.
1
5#ifndef BOOZER_H
6#define BOOZER_H
7
8#include "ascot5.h"
9#include "error.h"
10#include "B_field.h"
11#include "spline/interp.h"
12
28
29int boozer_init(boozer_data* data, int npsi, real psi_min, real psi_max,
30 int ntheta, int nthetag, real* nu, real* theta,
31 int nrzs, real* rs, real* zs);
32void boozer_free(boozer_data* data);
33void boozer_offload(boozer_data* data);
34DECLARE_TARGET_SIMD_UNIFORM(Bdata, boozerdata)
35a5err boozer_eval_psithetazeta(real psithetazeta[12], int* isinside, real r,
36 real phi, real z, B_field_data* Bdata,
37 boozer_data* boozerdata);
38
39
40#endif
Header file for B_field.c.
Main header file for ASCOT5.
double real
Definition ascot5.h:85
void boozer_offload(boozer_data *data)
Offload data to the accelerator.
Definition boozer.c:91
void boozer_free(boozer_data *data)
Free allocated resources.
Definition boozer.c:79
int boozer_init(boozer_data *data, int npsi, real psi_min, real psi_max, int ntheta, int nthetag, real *nu, real *theta, int nrzs, real *rs, real *zs)
Initialize boozer coordinate transformation.
Definition boozer.c:38
a5err boozer_eval_psithetazeta(real psithetazeta[12], int *isinside, real r, real phi, real z, B_field_data *Bdata, boozer_data *boozerdata)
Evaluate Boozer coordinates and partial derivatives.
Definition boozer.c:124
Error module for ASCOT5.
unsigned long int a5err
Simulation error flag.
Definition error.h:17
Spline interpolation library.
Magnetic field simulation data.
Definition B_field.h:41
Data for mapping between the cylindrical and Boozer coordinates.
Definition boozer.h:16
int nrzs
Definition boozer.h:23
interp2D_data theta_psithetageom
Definition boozer.h:26
real psi_max
Definition boozer.h:18
interp2D_data nu_psitheta
Definition boozer.h:24
real psi_min
Definition boozer.h:17
real * rs
Definition boozer.h:19
real * zs
Definition boozer.h:21
Bicubic interpolation struct.
Definition interp.h:68