ASCOT5
Loading...
Searching...
No Matches
diag
diag_transcoef.h
Go to the documentation of this file.
1
7
#ifndef DIAG_TRANSCOEF_H
8
#define DIAG_TRANSCOEF_H
9
10
#include "
../ascot5.h
"
11
#include "
../particle.h
"
12
16
typedef
struct
diag_transcoef_link
{
17
real
rho
;
18
real
time
;
19
int
pitchsign
;
20
struct
diag_transcoef_link
*
prevlink
;
21
}
diag_transcoef_link
;
22
26
typedef
struct
{
27
integer
Nmrk
;
28
int
Navg
;
30
int
recordrho
;
31
real
interval
;
32
diag_transcoef_link
**
datapoints
;
34
int
*
id
;
35
real
*
Kcoef
;
36
real
*
Dcoef
;
39
}
diag_transcoef_data
;
40
41
void
diag_transcoef_init
(
diag_transcoef_data
* data);
42
void
diag_transcoef_free
(
diag_transcoef_data
* data);
43
void
diag_transcoef_update_fo
(
diag_transcoef_data
* data,
44
particle_simd_fo
* p_f,
particle_simd_fo
* p_i);
45
void
diag_transcoef_update_gc
(
diag_transcoef_data
* data,
46
particle_simd_gc
* p_f,
particle_simd_gc
* p_i);
47
void
diag_transcoef_update_ml
(
diag_transcoef_data
* data,
48
particle_simd_ml
* p_f,
particle_simd_ml
* p_i);
49
#endif
ascot5.h
Main header file for ASCOT5.
real
double real
Definition
ascot5.h:85
integer
long integer
Definition
ascot5.h:84
diag_transcoef_update_ml
void diag_transcoef_update_ml(diag_transcoef_data *data, particle_simd_ml *p_f, particle_simd_ml *p_i)
Collect transport diagnostics for ml simulation.
Definition
diag_transcoef.c:128
diag_transcoef_init
void diag_transcoef_init(diag_transcoef_data *data)
Initializes transport coefficient diagnostics data.
Definition
diag_transcoef.c:30
diag_transcoef_update_gc
void diag_transcoef_update_gc(diag_transcoef_data *data, particle_simd_gc *p_f, particle_simd_gc *p_i)
Collect transport diagnostics for gc simulation.
Definition
diag_transcoef.c:96
diag_transcoef_update_fo
void diag_transcoef_update_fo(diag_transcoef_data *data, particle_simd_fo *p_f, particle_simd_fo *p_i)
Collect transport diagnostics for fo simulation.
Definition
diag_transcoef.c:63
diag_transcoef_free
void diag_transcoef_free(diag_transcoef_data *data)
Free allocated resources.
Definition
diag_transcoef.c:47
diag_transcoef_link
struct diag_transcoef_link diag_transcoef_link
Simple linked list link for storing data points.
particle.h
Header file for particle.c.
diag_transcoef_data
Transport coefficient diagnostics offload data struct.
Definition
diag_transcoef.h:26
diag_transcoef_data::id
int * id
Definition
diag_transcoef.h:34
diag_transcoef_data::Navg
int Navg
Definition
diag_transcoef.h:28
diag_transcoef_data::Nmrk
integer Nmrk
Definition
diag_transcoef.h:27
diag_transcoef_data::recordrho
int recordrho
Definition
diag_transcoef.h:30
diag_transcoef_data::Dcoef
real * Dcoef
Definition
diag_transcoef.h:36
diag_transcoef_data::interval
real interval
Definition
diag_transcoef.h:31
diag_transcoef_data::datapoints
diag_transcoef_link ** datapoints
Definition
diag_transcoef.h:32
diag_transcoef_data::Kcoef
real * Kcoef
Definition
diag_transcoef.h:35
diag_transcoef_link
Simple linked list link for storing data points.
Definition
diag_transcoef.h:16
diag_transcoef_link::rho
real rho
Definition
diag_transcoef.h:17
diag_transcoef_link::prevlink
struct diag_transcoef_link * prevlink
Definition
diag_transcoef.h:20
diag_transcoef_link::pitchsign
int pitchsign
Definition
diag_transcoef.h:19
diag_transcoef_link::time
real time
Definition
diag_transcoef.h:18
particle_simd_fo
Struct representing NSIMD particle markers.
Definition
particle.h:210
particle_simd_gc
Struct representing NSIMD guiding center markers.
Definition
particle.h:275
particle_simd_ml
Struct representing NSIMD field line markers.
Definition
particle.h:342
Generated on Tue Dec 3 2024 11:57:29 for ASCOT5 by
1.11.0