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
25
41
43 real** offload_array);
45 real** offload_array);
46
47void boozer_init(boozer_data* boozerdata, boozer_offload_data* offload_data,
48 real* offload_array);
49
50DECLARE_TARGET_SIMD_UNIFORM(Bdata, boozerdata)
51a5err boozer_eval_psithetazeta(real psithetazeta[12], int* isinside, real r,
52 real phi, real z, B_field_data* Bdata,
53 boozer_data* boozerdata);
54
55
56#endif
Header file for B_field.c.
Main header file for ASCOT5.
double real
Definition ascot5.h:85
void boozer_free_offload(boozer_offload_data *offload_data, real **offload_array)
Free offload array.
Definition boozer.c:154
int boozer_init_offload(boozer_offload_data *offload_data, real **offload_array)
Load Boozer data and prepare parameters for offload.
Definition boozer.c:37
void boozer_init(boozer_data *boozerdata, boozer_offload_data *offload_data, real *offload_array)
Initialize boozer data struct on target.
Definition boozer.c:108
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:188
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:63
Boozer parameters on the target.
Definition boozer.h:29
int nrzs
Definition boozer.h:36
interp2D_data theta_psithetageom
Definition boozer.h:39
real psi_max
Definition boozer.h:31
interp2D_data nu_psitheta
Definition boozer.h:37
real psi_min
Definition boozer.h:30
real * rs
Definition boozer.h:32
real * zs
Definition boozer.h:34
offload data for maps between boozer and cylindrical coordinates
Definition boozer.h:16
int offload_array_length
Definition boozer.h:23
Bicubic interpolation struct.
Definition interp.h:68