From 620ba72765eda244ca3f3806b8ad709929e74b3c Mon Sep 17 00:00:00 2001
From: Samo Penic <samo.penic@gmail.com>
Date: Thu, 21 Jun 2018 10:50:23 +0000
Subject: [PATCH] Isak's proposal for stretching energy calculation,  take 1

---
 src/energy.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/energy.c b/src/energy.c
index 1dae415..e9db3a4 100644
--- a/src/energy.c
+++ b/src/energy.c
@@ -242,3 +242,8 @@
 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