| commit | author | age | ||
| 7f6076 | 1 | /* vim: set ts=4 sts=4 sw=4 noet : */ |
| 8a6614 | 2 | #include "io.h" |
| SP | 3 | |
| 4 | ||
| d7639a | 5 | /** @brief initial bond length */ |
| fab2ad | 6 | #define DEF_A0 1.2 |
| d7639a | 7 | |
| SP | 8 | /** @brief Creates initial distribution of vertices |
| 9 | * | |
| 10 | * @param *vlist is the pointer to vertex list | |
| 11 | * @param N is the number of vertices to be initialized | |
| 12 | * @returns TS_SUCCESS on success, TS_FAIL otherwise. If allocation fails, the execution is terminated, reporting error code to the underlying operating system. | |
| 13 | */ | |
| 7958e9 | 14 | ts_vesicle *initial_distribution_dipyramid(ts_uint nshell, ts_uint ncmax1, ts_uint ncmax2, ts_uint ncmax3, ts_double stepsize); |
| d7639a | 15 | |
| 1ab449 | 16 | ts_vesicle *create_vesicle_from_tape(ts_tape *tape); |
| 698ae1 | 17 | ts_bool set_vesicle_values_from_tape(ts_vesicle *vesicle); |
| def8b5 | 18 | |
| SP | 19 | ts_bool initial_population_with_c0(ts_vesicle *vesicle, ts_tape *tape); |
| d7639a | 20 | /** Sets the initial position of the vertexes to dipyramid |
| SP | 21 | * |
| 22 | * @param *vlist is a pointer to list of vertices | |
| 23 | * @returns TS_SUCCESS on success, TS_FAIL otherwise | |
| 24 | */ | |
| 300618 | 25 | ts_bool add_vertices_with_c0(ts_vesicle *vesicle, ts_int n, ts_double c0, ts_double w); |
| SP | 26 | |
| d7639a | 27 | ts_bool pentagonal_dipyramid_vertex_distribution(ts_vertex_list *vlist); |
| SP | 28 | |
| 29 | /** Finds the neighbouring vertices and add them to a list of each vertex | |
| 30 | * | |
| 31 | * @param *vlist is a pointer to a ts_vertex_list | |
| 32 | * @returns TS_SUCCESS if successful, TS_FAIL otherwise | |
| 33 | */ | |
| 34 | ts_bool init_vertex_neighbours(ts_vertex_list *vlist); | |
| 7958e9 | 35 | //ts_bool init_vertex_neighbours(ts_vertex_list *vlist); |
| d7639a | 36 | |
| SP | 37 | /** interior sites and their neighbours in circ. order + the triangles they are holding together */ |
| b01cc1 | 38 | ts_vertex_list *init_sort_neighbours(ts_bond_list *blist,ts_vertex_list *vlist); |
| 7958e9 | 39 | ts_bool init_vesicle_bonds(ts_vesicle *vesicle); |
| d7639a | 40 | ts_bool init_triangles(ts_vesicle *vesicle); |
| SP | 41 | ts_bool init_triangle_neighbours(ts_vesicle *vesicle); |
| 42 | ts_bool init_common_vertex_triangle_neighbours(ts_vesicle *vesicle); | |
| 43 | ts_bool init_normal_vectors(ts_triangle_list *tlist); | |
| 44 | ||