From 5e08f27fac51e8f7261cd4484ab8878befac8fe1 Mon Sep 17 00:00:00 2001
From: Samo Penic <samo.penic@gmail.com>
Date: Fri, 08 Mar 2019 20:08:54 +0000
Subject: [PATCH] Constant area plugin done

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

diff --git a/src/energy.c b/src/energy.c
index 4d27995..1dae415 100644
--- a/src/energy.c
+++ b/src/energy.c
@@ -238,3 +238,7 @@
 	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);
+}

--
Gitblit v1.9.3