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
33
34int hdf5_interface_read_input(sim_data* sim, int input_active,
35 input_particle** p, int* n_markers);
36
37int hdf5_interface_init_results(sim_data* sim, char* qid, char* run);
38
39int hdf5_interface_write_state(char* fn, char* state, integer n,
41
43
44void hdf5_generate_qid(char* qid);
45#endif
Main header file for ASCOT5.
long integer
Definition ascot5.h:84
int hdf5_interface_write_diagnostics(sim_data *sim)
Write diagnostics to HDF5 output.
int hdf5_interface_write_state(char *fn, char *state, integer n, particle_state *p)
Write marker state to HDF5 output.
input_group
Enum to represent different input groups for HDF5 file reading.
@ hdf5_input_marker
@ hdf5_input_plasma
@ hdf5_input_options
@ hdf5_input_wall
@ hdf5_input_neutral
@ hdf5_input_bfield
@ hdf5_input_efield
@ hdf5_input_boozer
@ hdf5_input_mhd
@ hdf5_input_nbi
@ hdf5_input_asigma
int hdf5_interface_init_results(sim_data *sim, char *qid, char *run)
Initialize run group.
int hdf5_interface_read_input(sim_data *sim, int input_active, input_particle **p, int *n_markers)
Read and initialize input data.
void hdf5_generate_qid(char *qid)
Generate an identification number for a run.
Header file for particle.c.
Header file for simulate.c.
Wrapper for marker structs.
Definition particle.h:186
General representation of a marker.
Definition particle.h:40
Simulation data struct.
Definition simulate.h:57