Trisurf Monte Carlo simulator
Samo Penic
2013-11-30 bc4e1ee61725fdf7ec81a9583b7fa545f847e07b
commit | author | age
d7639a 1 #ifndef _IO_H
SP 2 #define _IO_H
3
4 /** @brief Prints the position of vertices for the whole list
5  *  
6  *  The function is meant more or less as a debug tool, but can be used in production
7  *  environment aswell.
8  *  the output is in form of idx: x y z
9  *      @param *vlist is a structure holding information on vertex list.
10  *    @returns TS_SUCCESS on successful execution, TS_FAIL otherwise.
11 */
12
13 ts_bool print_vertex_list(ts_vertex_list *vlist);
14
15 /** @brief Prints the neighbours of all the vertices
16  *  
17  *  The function is meant more or less as a debug tool, but can be used in production
18  *  environment aswell.
19  *  the output is in form of idx(number of neighbours): (x1,y1,z1) (x2,y2,z2) ...
20  *      @param *vlist is a structure holding information on vertex list.
21  *    @returns TS_SUCCESS on successful execution, TS_FAIL otherwise.
22 */
23 ts_bool print_vertex_neighbours(ts_vertex_list *vlist);
24
25
26 /** @brief Function outputs the vetex list file to comply to old fortran format
27  *  
28  *      @param *vlist is a list of vertices
29  *      @param *filename is a name of the output file to be created (note that if the file already
30  *  exists it will be overwritten.
31  */
32 ts_bool write_vertex_fcompat_file(ts_vertex_list *vlist,ts_char *filename);
33 ts_bool fprint_vertex_list(FILE *fh,ts_vertex_list *vlist);
34 ts_bool fprint_tristar(FILE *fh, ts_vesicle *vesicle);
35 ts_bool fprint_triangle_list(FILE *fh, ts_vesicle *vesicle);
36 ts_bool fprint_vertex_data(FILE *fh,ts_vertex_list *vlist);
37 ts_bool fprint_bonds(FILE *fh,ts_vesicle *vesicle);
38 ts_bool write_dout_fcompat_file(ts_vesicle *vesicle, ts_char *filename);
39 ts_bool read_tape_fcompat_file(ts_vesicle *vesicle, ts_char *filename);
40
41
42 /** @brief Outputs file in vtk format, compatible with paraview.
43  *
44  *    @param *vlist is a list of vertices
45  *    @param *filename is a name of the output file. If exists, it will be overwritten
46  *    @param *text is a description line (max. 255 characters) to be included in the file
47  */
48 ts_bool write_vertex_vtk_file(ts_vesicle *vesicle,ts_char *filename, ts_char *text);
a6b1b5 49 ts_bool write_vertex_xml_file(ts_vesicle *vesicle, ts_uint timestepno);
SP 50 ts_bool write_master_xml_file(ts_char *filename);
d7a113 51 ts_vesicle *parsetape(ts_uint *mcsweeps, ts_uint *inititer, ts_uint *iterations);
d7639a 52
SP 53 #endif