From 45c708286ecd53ef5db3c76f4d0eb1e1379d628d Mon Sep 17 00:00:00 2001 From: Samo Penic <samo.penic@fe.uni-lj.si> Date: Tue, 07 Jun 2016 17:29:19 +0000 Subject: [PATCH] Added spontaneous curv. --- src/timestep.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/timestep.c b/src/timestep.c index 9f40e1c..6972015 100644 --- a/src/timestep.c +++ b/src/timestep.c @@ -60,7 +60,11 @@ /* RANDOM SEED SET BY CURRENT TIME */ epochtime=get_epoch(); srand48(epochtime); - +/*Nir Gov: randomly add spontaneous curvature for some vertices */ + for(i=0;i<200;i++){ + int b=rand() % vesicle->vlist->n; + vesicle->vlist->vtx[b]->c=-0.1; + } centermass(vesicle); cell_occupation(vesicle); vesicle_volume(vesicle); //needed for constant volume at this moment -- Gitblit v1.9.3