ASCOT5
Loading...
Searching...
No Matches
hdf5_interface.h
Go to the documentation of this file.
1
5
#ifndef HDF5_INTERFACE_H5
6
#define HDF5_INTERFACE_H5
7
8
#include <hdf5.h>
9
10
#include "
ascot5.h
"
11
#include "
simulate.h
"
12
#include "
particle.h
"
13
20
enum
input_group
{
21
hdf5_input_options
= 0x1,
22
hdf5_input_bfield
= 0x2,
23
hdf5_input_efield
= 0x4,
24
hdf5_input_plasma
= 0x8,
25
hdf5_input_neutral
= 0x10,
26
hdf5_input_wall
= 0x20,
27
hdf5_input_marker
= 0x40,
28
hdf5_input_boozer
= 0x80,
29
hdf5_input_mhd
= 0x100,
30
hdf5_input_asigma
= 0x200,
31
hdf5_input_nbi
= 0x400
32
};
33
34
int
hdf5_interface_read_input
(
sim_data
* sim,
int
input_active,
35
input_particle
** p,
int
* n_markers);
36
37
int
hdf5_interface_init_results
(
sim_data
* sim,
char
* qid,
char
* run);
38
39
int
hdf5_interface_write_state
(
char
* fn,
char
* state,
integer
n,
40
particle_state
* p);
41
42
int
hdf5_interface_write_diagnostics
(
sim_data
* sim);
43
44
void
hdf5_generate_qid
(
char
* qid);
45
#endif
ascot5.h
Main header file for ASCOT5.
integer
long integer
Definition
ascot5.h:84
hdf5_interface_write_diagnostics
int hdf5_interface_write_diagnostics(sim_data *sim)
Write diagnostics to HDF5 output.
Definition
hdf5_interface.c:544
hdf5_interface_write_state
int hdf5_interface_write_state(char *fn, char *state, integer n, particle_state *p)
Write marker state to HDF5 output.
Definition
hdf5_interface.c:485
input_group
input_group
Enum to represent different input groups for HDF5 file reading.
Definition
hdf5_interface.h:20
hdf5_input_marker
@ hdf5_input_marker
Definition
hdf5_interface.h:27
hdf5_input_plasma
@ hdf5_input_plasma
Definition
hdf5_interface.h:24
hdf5_input_options
@ hdf5_input_options
Definition
hdf5_interface.h:21
hdf5_input_wall
@ hdf5_input_wall
Definition
hdf5_interface.h:26
hdf5_input_neutral
@ hdf5_input_neutral
Definition
hdf5_interface.h:25
hdf5_input_bfield
@ hdf5_input_bfield
Definition
hdf5_interface.h:22
hdf5_input_efield
@ hdf5_input_efield
Definition
hdf5_interface.h:23
hdf5_input_boozer
@ hdf5_input_boozer
Definition
hdf5_interface.h:28
hdf5_input_mhd
@ hdf5_input_mhd
Definition
hdf5_interface.h:29
hdf5_input_nbi
@ hdf5_input_nbi
Definition
hdf5_interface.h:31
hdf5_input_asigma
@ hdf5_input_asigma
Definition
hdf5_interface.h:30
hdf5_interface_init_results
int hdf5_interface_init_results(sim_data *sim, char *qid, char *run)
Initialize run group.
Definition
hdf5_interface.c:342
hdf5_interface_read_input
int hdf5_interface_read_input(sim_data *sim, int input_active, input_particle **p, int *n_markers)
Read and initialize input data.
Definition
hdf5_interface.c:52
hdf5_generate_qid
void hdf5_generate_qid(char *qid)
Generate an identification number for a run.
Definition
hdf5_interface.c:682
particle.h
Header file for particle.c.
simulate.h
Header file for simulate.c.
input_particle
Wrapper for marker structs.
Definition
particle.h:186
particle_state
General representation of a marker.
Definition
particle.h:40
sim_data
Simulation data struct.
Definition
simulate.h:57
Generated on Tue Dec 3 2024 11:57:29 for ASCOT5 by
1.11.0