| | |
| | | vesicle->plist->pointer->plugin->function->vm_energy_before_prepare(vesicle, vtx); |
| | | vesicle->plist->pointer=vesicle->plist->pointer->next; |
| | | } |
| | | /* End of vm_energy_before_prepare() */ |
| | | |
| | | if(vesicle->tape->constareaswitch==2){ |
| | | for(i=0;i<vtx->tristar_no;i++) darea-=vtx->tristar[i]->area; |
| | | |
| | | } |
| | | //stretching energy 1 of 3 |
| | | if(vesicle->tape->stretchswitch==1){ |
| | | for(i=0;i<vtx->tristar_no;i++) dstretchenergy-=vtx->tristar[i]->energy; |
| | | } |
| | | delta_energy=0; |
| | | |
| | | |
| | | // vesicle_volume(vesicle); |
| | | // fprintf(stderr,"Volume in the beginning=%1.16e\n", vesicle->volume); |
| | | |
| | | //update the normals of triangles that share bead i. |
| | | //update the normals of triangles that share bead i. |
| | | for(i=0;i<vtx->tristar_no;i++) triangle_normal_vector(vtx->tristar[i]); |
| | | oenergy=vtx->energy; |
| | | energy_vertex(vtx); |