ASCOT5
Toggle main menu visibility
Loading...
Searching...
No Matches
rfof.h
Go to the documentation of this file.
1
6
#include <stdlib.h>
7
#include "
ascot5.h
"
8
9
#ifndef RFOF_H
10
#define RFOF_H
11
19
typedef
struct
rfof_marker
{
20
void
*
p
[
NSIMD
];
21
void
*
history_array
[
NSIMD
];
23
void
*
diag_array
[
NSIMD
];
25
int
nrow
[
NSIMD
];
26
int
ncol
[
NSIMD
];
27
28
}
rfof_marker
;
29
35
typedef
struct
{
36
void
*
rfof_input_params
;
38
void
*
rfglobal
;
39
}
rfof_data
;
40
41
void
rfof_init(
rfof_data
* rfof);
42
43
void
rfof_free(
rfof_data
* rfof);
44
45
void
rfof_set_marker_manually(
46
rfof_marker
* rfof_mrk,
int
*
id
,
real
* weight,
real
*
R
,
real
* phi,
real
* z,
47
real
* psi,
real
* charge,
real
* mass,
real
* Ekin,
real
* vnorm,
real
* mu,
48
real
* Pphi,
real
* vpar,
real
* vperp,
real
* gyrof,
real
* vdriftRho,
49
real
* acceleration,
int
* is_accelerated,
int
* is_already_allocated);
50
51
void
rfof_set_up(
rfof_marker
* rfof_mrk,
rfof_data
*
rfof_data
);
52
53
void
rfof_tear_down(
rfof_marker
* rfof_mrk);
54
55
void
rfof_clear_history(
rfof_marker
* rfof_mrk,
int
imrk);
56
57
void
rfof_resonance_check_and_kick_gc(
58
particle_simd_gc
* p,
real
* hin,
real
* hout_rfof,
rfof_marker
* rfof_mrk,
59
rfof_data
*
rfof_data
,
B_field_data
* Bdata);
60
61
void
rfof_eval_rf_wave(
62
real
* e_plus_real,
real
* e_minus_real,
real
* e_plus_imag,
63
real
* e_minus_imag,
real
R
,
real
z,
rfof_data
* rfof);
64
void
rfof_eval_resonance_function(
65
real
* omega_res,
int
* nharm,
rfof_marker
* rfof_mrk,
rfof_data
* rfof);
66
#endif
ascot5.h
Main header file for ASCOT5.
real
double real
Definition
ascot5.h:85
NSIMD
#define NSIMD
Number of particles simulated simultaneously in a particle group operations.
Definition
ascot5.h:91
R
@ R
Definition
hist.h:18
B_field_data
Magnetic field simulation data.
Definition
B_field.h:41
particle_simd_gc
Struct representing NSIMD guiding center markers.
Definition
particle.h:275
rfof_data
RFOF simulation input data.
Definition
rfof.h:35
rfof_data::rfof_input_params
void * rfof_input_params
Definition
rfof.h:36
rfof_data::rfglobal
void * rfglobal
Definition
rfof.h:38
rfof_marker
Reusable struct for storing marker specific data during the simulation loop.
Definition
rfof.h:19
rfof_marker::diag_array
void * diag_array[NSIMD]
Definition
rfof.h:23
rfof_marker::p
void * p[NSIMD]
Definition
rfof.h:20
rfof_marker::history_array
void * history_array[NSIMD]
Definition
rfof.h:21
rfof_marker::nrow
int nrow[NSIMD]
Definition
rfof.h:25
rfof_marker::ncol
int ncol[NSIMD]
Definition
rfof.h:26
Generated on
for ASCOT5 by
1.18.0