preparationSh seems to work ok -- but it was not debugged. calculateYlmi does not work
| | |
| | | #include "sh.h" |
| | | #include "vesicle.h" |
| | | #include "initial_distribution.h" |
| | | #include <math.h> |
| | | |
| | | int main(){ |
| | | ts_vesicle *vesicle=initial_distribution_dipyramid(4,60,60,60,0.15); |
| | |
| | | fprintf(stderr,"co(%d,%d)=%e\n",i,j,vesicle->sphHarmonics->co[i][j]); |
| | | } |
| | | } |
| | | |
| | | ts_double r0; |
| | | vesicle_volume(vesicle); |
| | | fprintf(stderr,"Volume=%e\n",vesicle->volume); |
| | | r0=getR0(vesicle); |
| | | fprintf(stderr,"r0=%e\n",r0); |
| | | preparationSh(vesicle,r0); |
| | | calculateYlmi(vesicle); |
| | | |
| | | sph_free(vesicle->sphHarmonics); |
| | | //vesicle_free(vesicle); |
| | | vesicle_free(vesicle); |
| | | return 0; |
| | | } |
| | |
| | | } |
| | | |
| | | |
| | | /** @brief: Precomputes coefficients that are required for spherical harmonics computations. |
| | | |
| | | */ |
| | | ts_bool precomputeShCoeff(ts_spharm *sph){ |
| | | ts_int i,j,al,am; |
| | | ts_double **co=sph->co; |
| | |
| | | ts_bool precomputeShCoeff(ts_spharm *sph); |
| | | ts_spharm *sph_init(ts_vertex_list *vlist, ts_uint l); |
| | | ts_bool sph_free(ts_spharm *sph); |
| | | |
| | | ts_double getR0(ts_vesicle *vesicle); |
| | | ts_bool preparationSh(ts_vesicle *vesicle, ts_double r0); |
| | | ts_bool calculateYlmi(ts_vesicle *vesicle); |
| | | #endif |
| | |
| | | ts_vesicle *init_vesicle(ts_uint N, ts_uint ncmax1, ts_uint ncmax2, ts_uint ncmax3, ts_double stepsize); |
| | | ts_bool vesicle_translate(ts_vesicle *vesicle,ts_double x, ts_double y, ts_double z); |
| | | ts_bool vesicle_free(ts_vesicle *vesicle); |
| | | |
| | | ts_bool vesicle_volume(ts_vesicle *vesicle); |
| | | |
| | | #endif |