From 94d01104d01c2347a1a2f03b7142ec7bd75f6dd9 Mon Sep 17 00:00:00 2001 From: Nicolas Mounet Date: Tue, 4 May 2021 06:43:27 +0200 Subject: [PATCH] Using concentration_limit method in concentration (ConcentrationModel) --- cara/models.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cara/models.py b/cara/models.py index 8323a165..8d0386bf 100644 --- a/cara/models.py +++ b/cara/models.py @@ -694,14 +694,13 @@ class ConcentrationModel: if time == 0: return 0.0 IVRR = self.infectious_virus_removal_rate(time) - V = self.room.volume t_last_state_change = self.last_state_change(time) concentration_at_last_state_change = self.concentration(t_last_state_change) delta_time = time - t_last_state_change fac = np.exp(-IVRR * delta_time) - concentration_limit = (self.infected.emission_rate(time)) / (IVRR * V) + concentration_limit = self.concentration_limit(time) return concentration_limit * (1 - fac) + concentration_at_last_state_change * fac