|
ASCOT5
|
Header file for mhd.c. More...
#include "ascot5.h"#include "error.h"#include "B_field.h"#include "boozer.h"#include "mhd/mhd_stat.h"#include "mhd/mhd_nonstat.h"Go to the source code of this file.
Data Structures | |
| struct | mhd_data |
| MHD simulation data. More... | |
Macros | |
| #define | MHD_INCLUDE_ALL -1 |
| includemode parameter to include all modes (default) | |
Typedefs | |
| typedef enum mhd_type | mhd_type |
| MHD input types. | |
Enumerations | |
| enum | mhd_type { mhd_type_stat , mhd_type_nonstat } |
| MHD input types. More... | |
Functions | |
| void | mhd_free (mhd_data *data) |
| Free allocated resources. | |
| void | mhd_offload (mhd_data *data) |
| Offload data to the accelerator. | |
| a5err | mhd_eval (real mhd_dmhd[10], real r, real phi, real z, real t, int includemode, boozer_data *boozerdata, mhd_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_perturbations(real pert_field[7] | |
| int | mhd_get_n_modes (mhd_data *mhddata) |
| Return number of modes. | |
| const int * | mhd_get_nmode (mhd_data *mhddata) |
| Return mode toroidal numbers. | |
| const int * | mhd_get_mmode (mhd_data *mhddata) |
| Return mode poloidal numbers. | |
| const real * | mhd_get_amplitude (mhd_data *mhddata) |
| Return mode amplitudes. | |
| const real * | mhd_get_frequency (mhd_data *mhddata) |
| Return mode frequencies. | |
| const real * | mhd_get_phase (mhd_data *mhddata) |
| Return mode phases. | |
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_data * | mhddata |
| real real real real int int boozer_data mhd_data B_field_data * | Bdata |
Header file for mhd.c.
Contains a list declaring all mhd_types, and declaration of mhd_offload_data and mhd_data structs.
Definition in file mhd.h.
| #define MHD_INCLUDE_ALL -1 |
| enum mhd_type |
| void mhd_free | ( | mhd_data * | data | ) |
| void mhd_offload | ( | mhd_data * | data | ) |
| a5err mhd_eval | ( | real | mhd_dmhd[10], |
| real | r, | ||
| real | phi, | ||
| real | z, | ||
| real | t, | ||
| int | includemode, | ||
| boozer_data * | boozerdata, | ||
| mhd_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 be included or MHD_INCLUDE_ALL |
| boozerdata | pointer to boozer data |
| mhddata | pointer to mhd data |
| Bdata | pointer to magnetic field data |
| int mhd_get_n_modes | ( | mhd_data * | mhddata | ) |
| const int * mhd_get_nmode | ( | mhd_data * | mhddata | ) |
| const int * mhd_get_mmode | ( | mhd_data * | mhddata | ) |
| real real real real int int boozer_data mhd_data B_field_data* Bdata |