ASCOT5
|
Module for reading plasma input from HDF5 file. More...
#include <stdio.h>
#include <stdlib.h>
#include <hdf5.h>
#include <hdf5_hl.h>
#include "../ascot5.h"
#include "../plasma.h"
#include "../plasma/plasma_1D.h"
#include "../plasma/plasma_1Dt.h"
#include "../plasma/plasma_1DS.h"
#include "../consts.h"
#include "hdf5_helpers.h"
#include "hdf5_plasma.h"
Go to the source code of this file.
Macros | |
#define | PLSPATH |
#define | PLSPATH "/plasma/plasma_1D_XXXXXXXXXX/" |
#define | PLSPATH "/plasma/plasma_1Dt_XXXXXXXXXX/" |
#define | PLSPATH "/plasma/plasma_1DS_XXXXXXXXXX/" |
Functions | |
int | hdf5_plasma_read_1D (hid_t f, plasma_1D_data *data, char *qid) |
Read 1D plasma data from HDF5 file. | |
int | hdf5_plasma_read_1Dt (hid_t f, plasma_1Dt_data *data, char *qid) |
Read 1Dt plasma data from HDF5 file. | |
int | hdf5_plasma_read_1DS (hid_t f, plasma_1DS_data *data, char *qid) |
Load plasma data from HDF5 file and prepare parameters. | |
int | hdf5_plasma_init (hid_t f, plasma_data *data, char *qid) |
Read plasma data from HDF5 file. | |
Module for reading plasma input from HDF5 file.
Plasma data must be read by calling hdf5_plasma_init_offload() contained in this module. This module contains reading routines for all plasma data types.
Definition in file hdf5_plasma.c.
#define PLSPATH |
Macro that is used to store paths to data groups
Definition at line 22 of file hdf5_plasma.c.
#define PLSPATH "/plasma/plasma_1D_XXXXXXXXXX/" |
Macro that is used to store paths to data groups
Definition at line 22 of file hdf5_plasma.c.
#define PLSPATH "/plasma/plasma_1Dt_XXXXXXXXXX/" |
Macro that is used to store paths to data groups
Definition at line 22 of file hdf5_plasma.c.
#define PLSPATH "/plasma/plasma_1DS_XXXXXXXXXX/" |
Macro that is used to store paths to data groups
Definition at line 22 of file hdf5_plasma.c.
int hdf5_plasma_read_1D | ( | hid_t | f, |
plasma_1D_data * | data, | ||
char * | qid ) |
Read 1D plasma data from HDF5 file.
f | HDF5 file from which data is read |
data | pointer to the data |
qid | QID of the data |
Definition at line 69 of file hdf5_plasma.c.
int hdf5_plasma_read_1Dt | ( | hid_t | f, |
plasma_1Dt_data * | data, | ||
char * | qid ) |
Read 1Dt plasma data from HDF5 file.
f | HDF5 file from which data is read |
data | pointer to the data |
qid | QID of the data |
Definition at line 145 of file hdf5_plasma.c.
int hdf5_plasma_read_1DS | ( | hid_t | f, |
plasma_1DS_data * | data, | ||
char * | qid ) |
Load plasma data from HDF5 file and prepare parameters.
f | hdf5 file identifier |
data | pointer to the data struct |
qid | QID of the data |
Definition at line 230 of file hdf5_plasma.c.
int hdf5_plasma_init | ( | hid_t | f, |
plasma_data * | data, | ||
char * | qid ) |
Read plasma data from HDF5 file.
f | HDF5 file from which data is read |
data | pointer to the data |
qid | QID of the data |
Definition at line 36 of file hdf5_plasma.c.