ASCOT5
Loading...
Searching...
No Matches
Data Structures | Typedefs | Functions
diag_transcoef.h File Reference

Header file for diag_transcoef.c. More...

#include "../ascot5.h"
#include "../particle.h"

Go to the source code of this file.

Data Structures

struct  diag_transcoef_link
 Simple linked list link for storing data points. More...
 
struct  diag_transcoef_offload_data
 Transport coefficient diagnostics offload data struct. More...
 
struct  diag_transcoef_data
 Transport coefficient diagnostics offload data struct. More...
 

Typedefs

typedef struct diag_transcoef_link diag_transcoef_link
 Simple linked list link for storing data points.
 

Functions

void diag_transcoef_init (diag_transcoef_data *data, diag_transcoef_offload_data *offload_data, real *offload_array)
 Initializes orbit diagnostics offload data.
 
void diag_transcoef_free (diag_transcoef_data *data)
 Free transport coefficient data on target.
 
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.
 
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.
 
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.
 

Detailed Description

Header file for diag_transcoef.c.

Contains definitions for transport coefficient data structures.

Definition in file diag_transcoef.h.

Function Documentation

◆ diag_transcoef_init()

void diag_transcoef_init ( diag_transcoef_data * data,
diag_transcoef_offload_data * offload_data,
real * offload_array )

Initializes orbit diagnostics offload data.

Parameters
datatransport coefficient diagnostics data struct
offload_datatransport coefficient diagnostics offload data struct
offload_arrayoffload data array

Definition at line 32 of file diag_transcoef.c.

◆ diag_transcoef_free()

void diag_transcoef_free ( diag_transcoef_data * data)

Free transport coefficient data on target.

Parameters
datatransport coefficient diagnostics data struct

Definition at line 56 of file diag_transcoef.c.

◆ 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.

Parameters
datatransport diagnostics data struct
p_fpointer to SIMD struct storing marker states at the end of current time-step
p_ipointer to SIMD struct storing marker states at the beginning of current time-step

Definition at line 69 of file diag_transcoef.c.

◆ 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.

Parameters
datatransport diagnostics data struct
p_fpointer to SIMD struct storing marker states at the end of current time-step
p_ipointer to SIMD struct storing marker states at the beginning of current time-step

Definition at line 102 of file diag_transcoef.c.

◆ 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.

Parameters
datatransport diagnostics data struct
p_fpointer to SIMD struct storing marker states at the end of current time-step
p_ipointer to SIMD struct storing marker states at the beginning of current time-step

Definition at line 134 of file diag_transcoef.c.