From 6da644f98434d3eac8b4e19981754f6030a315a5 Mon Sep 17 00:00:00 2001 From: Samo Penic <samo.penic@gmail.com> Date: Wed, 27 Jun 2018 12:05:32 +0000 Subject: [PATCH] Resolving the issues with restoring vesicles from vtu and fixing the volume. Dump to vtu has been repaired. --- src/energy.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/src/energy.c b/src/energy.c index 4d27995..d72ffcc 100644 --- a/src/energy.c +++ b/src/energy.c @@ -238,3 +238,12 @@ return vesicle->tape->F*ddp; } + +void stretchenergy(ts_vesicle *vesicle, ts_triangle *triangle){ + triangle->energy=vesicle->tape->xkA0/2.0*pow((triangle->area/vesicle->tlist->a0-1.0),2); +} + +ts_double stretchenergy2(ts_double current_area,ts_double tensionless_area){ + return pow((current_area-tensionless_area),2)/tensionless_area; + +} -- Gitblit v1.9.3