ASCOT5
Toggle main menu visibility
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
16
typedef
struct
{
17
real
psi_min
;
18
real
psi_max
;
19
real
*
rs
;
21
real
*
zs
;
23
int
nrzs
;
24
interp2D_data
nu_psitheta
;
26
interp2D_data
theta_psithetageom
;
27
}
boozer_data
;
28
29
int
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);
32
void
boozer_free
(
boozer_data
* data);
33
void
boozer_offload
(
boozer_data
* data);
34
GPU_DECLARE_TARGET_SIMD_UNIFORM(Bdata, boozerdata)
35
a5err
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
B_field.h
Header file for B_field.c.
ascot5.h
Main header file for ASCOT5.
real
double real
Definition
ascot5.h:85
boozer_offload
void boozer_offload(boozer_data *data)
Offload data to the accelerator.
Definition
boozer.c:91
boozer_free
void boozer_free(boozer_data *data)
Free allocated resources.
Definition
boozer.c:79
boozer_init
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
boozer_eval_psithetazeta
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.h
Error module for ASCOT5.
a5err
unsigned long int a5err
Simulation error flag.
Definition
error.h:17
interp.h
Spline interpolation library.
B_field_data
Magnetic field simulation data.
Definition
B_field.h:41
boozer_data
Data for mapping between the cylindrical and Boozer coordinates.
Definition
boozer.h:16
boozer_data::nrzs
int nrzs
Definition
boozer.h:23
boozer_data::theta_psithetageom
interp2D_data theta_psithetageom
Definition
boozer.h:26
boozer_data::psi_max
real psi_max
Definition
boozer.h:18
boozer_data::nu_psitheta
interp2D_data nu_psitheta
Definition
boozer.h:24
boozer_data::psi_min
real psi_min
Definition
boozer.h:17
boozer_data::rs
real * rs
Definition
boozer.h:19
boozer_data::zs
real * zs
Definition
boozer.h:21
interp2D_data
Bicubic interpolation struct.
Definition
interp.h:68
Generated on
for ASCOT5 by
1.18.0