Trisurf Monte Carlo simulator
Samo Penic
2012-06-07 f0d504db66bfb3a1d618fd207f05f15d48a2e32c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include "general.h"
#include "sh.h"
#include "vesicle.h"
#include "initial_distribution.h"
 
int main(){
ts_vesicle *vesicle=initial_distribution_dipyramid(4,60,60,60,0.15);
//parsetape(vesicle,&i);
 
//these four must come from parsetype!
vesicle->dmax=1.67*1.67;
vesicle->stepsize=0.15;
vesicle->clist->max_occupancy=8;
vesicle->bending_rigidity=25.0;
fprintf(stderr,"xk=%f\n",vesicle->bending_rigidity);
 
vesicle->sphHarmonics=sph_init(vesicle->vlist, 10);
int i,j;
for(i=1;i<=vesicle->sphHarmonics->l;i++){
    for(j=1;j<=2*i+1;j++){
    fprintf(stderr,"co(%d,%d)=%e\n",i,j,vesicle->sphHarmonics->co[i][j]);
    }
}
 
 
sph_free(vesicle->sphHarmonics);
//vesicle_free(vesicle);
return 0;
}