| | |
| | | #include "triangle.h" |
| | | #include "initial_distribution.h" |
| | | #include "energy.h" |
| | | #include "memory.h" |
| | | |
| | | ts_vesicle *initial_distribution_dipyramid(ts_uint nshell, ts_uint ncmax1, ts_uint ncmax2, ts_uint ncmax3, ts_double stepsize){ |
| | | ts_fprintf(stderr,"Starting initial_distribution on vesicle with %u shells!...\n",nshell); |
| | | ts_bool retval; |
| | | ts_uint no_vertices=5*nshell*nshell+2; |
| | | |
| | | |
| | | ts_memory mem; |
| | | mem.vertex_no=no_vertices; |
| | | mem.ncmax[0]=ncmax1; |
| | | mem.ncmax[1]=ncmax2; |
| | | mem.ncmax[2]=ncmax3; |
| | | |
| | | init_memory_block(&mem); |
| | | ts_vesicle *vesicle=init_vesicle(no_vertices,ncmax1,ncmax2,ncmax3,stepsize); |
| | | |
| | | //TODO: debugging only. Please remove ASAP! |
| | | vesicle->bending_rigidity=25.0; |
| | | |
| | | vesicle->nshell=nshell; |
| | | retval = vtx_set_global_values(vesicle); |
| | | retval = pentagonal_dipyramid_vertex_distribution(vesicle->vlist); |