From e984829db39b2778e4f66c34524329ad09749c45 Mon Sep 17 00:00:00 2001 From: Samo Penic <samo.penic@gmail.com> Date: Mon, 11 Jul 2016 19:29:21 +0000 Subject: [PATCH] Added possibility of internal pegs. It can break the system however --- src/poly.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/poly.c b/src/poly.c index 3c93d0c..252b1c6 100644 --- a/src/poly.c +++ b/src/poly.c @@ -83,6 +83,7 @@ if (vlist!=NULL){ /* Make straight grafted poylmers normal to membrane (polymer brush). Dist. between poly vertices put to 1*/ + ts_int intpoly=vesicle->tape->internal_poly; for (i=0;i<poly_list->n;i++){ xnorm=0.0; @@ -94,6 +95,9 @@ znorm-=poly_list->poly[i]->grafted_vtx->tristar[j]->znorm; } normlength=sqrt(xnorm*xnorm+ynorm*ynorm+znorm*znorm); + if(intpoly && i%2){ + normlength=-normlength; + } xnorm=xnorm/normlength; ynorm=ynorm/normlength; znorm=znorm/normlength; -- Gitblit v1.9.3