ASCOT5
Loading...
Searching...
No Matches
diag_orb.h
Go to the documentation of this file.
1
7#ifndef DIAG_ORB_H
8#define DIAG_ORB_H
9
10#include <stdio.h>
11#include "../particle.h"
12
13#define DIAG_ORB_POINCARE 0
14#define DIAG_ORB_INTERVAL 1
15#define DIAG_ORB_MAXPOINCARES 30
17#define DIAG_ORB_FOFIELDS 16
18#define DIAG_ORB_GCFIELDS 16
19#define DIAG_ORB_MLFIELDS 11
20#define DIAG_ORB_HYBRIDFIELDS 19
22#define DIAG_ORB_FO 1
23#define DIAG_ORB_GC 2
24#define DIAG_ORB_ML 3
26DECLARE_TARGET_SIMD_UNIFORM(ang0)
28DECLARE_TARGET_SIMD_UNIFORM(r0)
30
81
83
85
88
91
94
95#endif
double real
Definition ascot5.h:85
long integer
Definition ascot5.h:84
real diag_orb_check_radial_crossing(real fr, real ir, real r0)
Check if marker has crossed given rho.
Definition diag_orb.c:764
void diag_orb_update_fo(diag_orb_data *data, particle_simd_fo *p_f, particle_simd_fo *p_i)
Collects orbit diagnostics when marker represents a particle.
Definition diag_orb.c:133
real diag_orb_check_plane_crossing(real fang, real iang, real ang0)
Check if marker has crossed a plane.
Definition diag_orb.c:730
#define DIAG_ORB_MAXPOINCARES
Definition diag_orb.h:15
void diag_orb_update_ml(diag_orb_data *data, particle_simd_ml *p_f, particle_simd_ml *p_i)
Collects orbit diagnostics when marker represents a field line.
Definition diag_orb.c:546
void diag_orb_update_gc(diag_orb_data *data, particle_simd_gc *p_f, particle_simd_gc *p_i)
Collects orbit diagnostics when marker represents a guiding center.
Definition diag_orb.c:339
void diag_orb_free(diag_orb_data *data)
Free allocated resources.
Definition diag_orb.c:119
void diag_orb_init(diag_orb_data *data)
Initializes orbit diagnostics data.
Definition diag_orb.c:26
Header file for particle.c.
Orbit diagnostics data struct.
Definition diag_orb.h:42
real * mileage
Definition diag_orb.h:44
real * ppar
Definition diag_orb.h:51
real * simmode
Definition diag_orb.h:61
real * B_r
Definition diag_orb.h:58
int ntoroidalplots
Definition diag_orb.h:73
real * pncrdi
Definition diag_orb.h:63
real writeInterval
Definition diag_orb.h:72
real * zeta
Definition diag_orb.h:53
real * p_phi
Definition diag_orb.h:49
real * theta
Definition diag_orb.h:57
real * rho
Definition diag_orb.h:56
real * pncrid
Definition diag_orb.h:62
real * weight
Definition diag_orb.h:54
real * mrk_recorded
Definition diag_orb.h:66
real * B_z
Definition diag_orb.h:60
real * phi
Definition diag_orb.h:46
integer * mrk_pnt
Definition diag_orb.h:65
int nradialplots
Definition diag_orb.h:75
real * mu
Definition diag_orb.h:52
real * p_z
Definition diag_orb.h:50
int record_mode
Definition diag_orb.h:76
real * charge
Definition diag_orb.h:55
real * id
Definition diag_orb.h:43
real * p_r
Definition diag_orb.h:48
int npoloidalplots
Definition diag_orb.h:74
real * B_phi
Definition diag_orb.h:59
Struct representing NSIMD particle markers.
Definition particle.h:210
Struct representing NSIMD guiding center markers.
Definition particle.h:275
Struct representing NSIMD field line markers.
Definition particle.h:342