Trisurf Monte Carlo simulator
Samo Penic
2018-05-15 2d6875103844f7ff25c36ff0134506fc0aaaaa39
Fix in energy calculation formula
1 files modified
2 ■■■ changed files
src/energy.c 2 ●●● patch | view | raw | blame | history
src/energy.c
@@ -240,5 +240,5 @@
}
void stretchenergy(ts_vesicle *vesicle, ts_triangle *triangle){
    triangle->energy=vesicle->tape->xkA0/vesicle->tlist->n*pow((triangle->area/vesicle->tlist->a0-1),2);
    triangle->energy=vesicle->tape->xkA0/vesicle->tlist->n/2*pow((triangle->area/vesicle->tlist->a0-1),2);
}