I/O

#include "Spirit/IO.h"

TODO: give bool returns for these functions to indicate success?

Definition of file formats for vectorfields

IO_Fileformat_OVF_bin 0
IO_Fileformat_OVF_bin4 1
IO_Fileformat_OVF_bin8 2
IO_Fileformat_OVF_text 3
IO_Fileformat_OVF_csv 4
IO_Fileformat_VTK_hdf 90
IO_Fileformat_VTK_XML_bin 91
IO_Fileformat_VTK_XML_text 92

Other

int IO_System_From_Config(State *state, const char *file, int idx_image = -1, int idx_chain = -1)
void IO_Positions_Write(State *state, const char *file, int format = IO_Fileformat_OVF_bin, const char *comment = "-", int idx_image = -1, int idx_chain = -1)

Spin configurations

int IO_N_Images_In_File(State *state, const char *file, int idx_image = -1, int idx_chain = -1)
void IO_Image_Read(State *state, const char *file, int idx_image_infile = 0, int idx_image_inchain = -1, int idx_chain = -1)
void IO_Image_Write(State *state, const char *file, int format = IO_Fileformat_OVF_bin, const char *comment = "-", int idx_image = -1, int idx_chain = -1)
void IO_Image_Append(State *state, const char *file, int format = IO_Fileformat_OVF_bin, const char *comment = "-", int idx_image = -1, int idx_chain = -1)

Chains

void IO_Chain_Read(State *state, const char *file, int start_image_infile = 0, int end_image_infile = -1, int insert_idx = 0, int idx_chain = -1)
void IO_Chain_Write(State *state, const char *file, int format = IO_Fileformat_OVF_text, const char *comment = "-", int idx_chain = -1)
void IO_Chain_Append(State *state, const char *file, int format = IO_Fileformat_OVF_text, const char *comment = "-", int idx_chain = -1)

Neighbours

void IO_Image_Write_Neighbours_Exchange(State *state, const char *file, int idx_image = -1, int idx_chain = -1)
void IO_Image_Write_Neighbours_DMI(State *state, const char *file, int idx_image = -1, int idx_chain = -1)

Energies

void IO_Image_Write_Energy_per_Spin(State *state, const char *file, int format, int idx_image = -1, int idx_chain = -1)
void IO_Image_Write_Energy(State *state, const char *file, int idx_image = -1, int idx_chain = -1)
void IO_Chain_Write_Energies(State *state, const char *file, int idx_chain = -1)
void IO_Chain_Write_Energies_Interpolated(State *state, const char *file, int idx_chain = -1)

Eigenmodes

void IO_Eigenmodes_Read(State *state, const char *file, int idx_image_inchain = -1, int idx_chain = -1)
void IO_Eigenmodes_Write(State *state, const char *file, int format = IO_Fileformat_OVF_text, const char *comment = "-", int idx_image = -1, int idx_chain = -1)