ASCOT5
|
Header file for mhd_nonstat.c. More...
#include "../ascot5.h"
#include "../offload.h"
#include "../error.h"
#include "../boozer.h"
#include "../spline/interp.h"
#include "../B_field.h"
Go to the source code of this file.
Data Structures | |
struct | mhd_nonstat_data |
MHD parameters. More... | |
Functions | |
int | mhd_nonstat_init (mhd_nonstat_data *data, int nmode, int nrho, int ntime, real rhomin, real rhomax, real tmin, real tmax, int *moden, int *modem, real *amplitude_nm, real *omega_nm, real *phase_nm, real *alpha, real *phi) |
Load MHD data. | |
void | mhd_nonstat_free (mhd_nonstat_data *data) |
Free allocated resources. | |
void | mhd_nonstat_offload (mhd_nonstat_data *data) |
Offload data to the accelerator. | |
a5err | mhd_nonstat_eval (real mhd_dmhd[10], real r, real phi, real z, real t, int includemode, boozer_data *boozerdata, mhd_nonstat_data *mhddata, B_field_data *Bdata) |
Evaluate the needed quantities from MHD mode for orbit following. | |
DECLARE_TARGET_SIMD_UNIFORM (boozerdata, mhddata, Bdata, pertonly, includemode) a5err mhd_nonstat_perturbations(real pert_field[7] | |
Variables | |
real | r |
real real | phi |
real real real | z |
real real real real | t |
real real real real int | pertonly |
real real real real int int | includemode |
real real real real int int boozer_data * | boozerdata |
real real real real int int boozer_data mhd_nonstat_data * | mhddata |
real real real real int int boozer_data mhd_nonstat_data B_field_data * | Bdata |
Header file for mhd_nonstat.c.
Definition in file mhd_nonstat.h.
int mhd_nonstat_init | ( | mhd_nonstat_data * | data, |
int | nmode, | ||
int | nrho, | ||
int | ntime, | ||
real | rhomin, | ||
real | rhomax, | ||
real | tmin, | ||
real | tmax, | ||
int * | moden, | ||
int * | modem, | ||
real * | amplitude_nm, | ||
real * | omega_nm, | ||
real * | phase_nm, | ||
real * | alpha, | ||
real * | phi ) |
Load MHD data.
offload_data | pointer to data struct |
Definition at line 23 of file mhd_nonstat.c.
void mhd_nonstat_free | ( | mhd_nonstat_data * | data | ) |
Free allocated resources.
data | pointer to the data struct |
Definition at line 86 of file mhd_nonstat.c.
void mhd_nonstat_offload | ( | mhd_nonstat_data * | data | ) |
Offload data to the accelerator.
data | pointer to the data struct |
Definition at line 103 of file mhd_nonstat.c.
a5err mhd_nonstat_eval | ( | real | mhd_dmhd[10], |
real | r, | ||
real | phi, | ||
real | z, | ||
real | t, | ||
int | includemode, | ||
boozer_data * | boozerdata, | ||
mhd_nonstat_data * | mhddata, | ||
B_field_data * | Bdata ) |
Evaluate the needed quantities from MHD mode for orbit following.
The quantities to be evaluated are alpha, phi, grad alpha, grad phi, partial t alpha, partial t phi
The values are stored in the given array as:
mhd_dmhd | |
r | R coordinate [m] |
phi | phi coordinate [rad] |
z | z coordinate [m] |
t | time coordinate [s] |
includemode | mode number to include or MHD_INCLUDE_ALL |
boozerdata | pointer to boozer data |
mhddata | pointer to mhd data |
Bdata | pointer to magnetic field data |
Definition at line 137 of file mhd_nonstat.c.
real r |
Definition at line 50 of file mhd_nonstat.h.
Definition at line 50 of file mhd_nonstat.h.
Definition at line 50 of file mhd_nonstat.h.
real real real real int int boozer_data* boozerdata |
Definition at line 52 of file mhd_nonstat.h.
real real real real int int boozer_data mhd_nonstat_data* mhddata |
Definition at line 53 of file mhd_nonstat.h.
real real real real int int boozer_data mhd_nonstat_data B_field_data* Bdata |
Definition at line 53 of file mhd_nonstat.h.