From efdec659b3db59fe31c184f30ca9e0ab7f19fa93 Mon Sep 17 00:00:00 2001
From: Lars Hubatsch <hubatsch@pks.mpg.de>
Date: Wed, 14 Oct 2020 14:38:25 +0200
Subject: [PATCH] Offset now relative to phi tot inside.

---
 @Ternary_model/solve_tern_frap.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/@Ternary_model/solve_tern_frap.m b/@Ternary_model/solve_tern_frap.m
index 0eb7c58..7f026bb 100644
--- a/@Ternary_model/solve_tern_frap.m
+++ b/@Ternary_model/solve_tern_frap.m
@@ -18,7 +18,7 @@ function u = flory_ic(x, a, b, u0, e, ic, x0, ic_c)
 if strcmp(ic, 'FRAP')
     % FRAP initial condition
     if x < -a
-        u = ic_c;
+        u = ic_c*Ternary_model.phi_tot(x, a, b, e, u0, 0); % normalize
     else
         % Concentration outside, away from droplet
         u = u0-e;
-- 
GitLab