Using concentration_limit method in concentration (ConcentrationModel)
This commit is contained in:
parent
68893f905f
commit
94d01104d0
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue