From 8b1571dcf15ded5ca9a211ca04b9bf854b27b053 Mon Sep 17 00:00:00 2001 From: Nicolas Mounet Date: Mon, 3 May 2021 15:01:42 +0200 Subject: [PATCH] Exposing concentration_limit in ConcentrationModel --- cara/models.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cara/models.py b/cara/models.py index c232c23c..d37cb0a1 100644 --- a/cara/models.py +++ b/cara/models.py @@ -644,6 +644,13 @@ class ConcentrationModel: return k + self.virus.decay_constant + self.ventilation.air_exchange( self.room, self.next_state_change(time)) + @cached() + def concentration_limit(self, time: float) -> _VectorisedFloat: + V = self.room.volume + IVRR = self.infectious_virus_removal_rate(time) + + return (self.infected.emission_rate(self.next_state_change(time))) / (IVRR * V) + @cached() def state_change_times(self): """