Added HEPA amount to model and report

This commit is contained in:
gaazzopa 2020-11-10 17:08:07 +01:00
parent 1cc73d4fbc
commit 824ad5886b
2 changed files with 10 additions and 6 deletions

View file

@ -24,6 +24,7 @@ class FormData:
coffee_duration: int
event_type: str
floor_area: float
hepa_amount: float
hepa_option: bool
infected_people: int
lunch_option: bool
@ -91,6 +92,7 @@ class FormData:
coffee_duration=int(form_data['coffee_duration']),
event_type=form_data['event_type'],
floor_area=float(form_data['floor_area']),
hepa_amount=float(form_data['hepa_amount']),
hepa_option=(form_data['hepa_option'] == '1'),
infected_people=int(form_data['infected_people']),
lunch_finish=time_string_to_minutes(form_data['lunch_finish']),
@ -154,7 +156,7 @@ class FormData:
active=always_on, q_air_mech=self.air_supply)
if self.hepa_option:
hepa = models.HEPAFilter(active=always_on, q_air_mech=250.)
hepa = models.HEPAFilter(active=always_on, q_air_mech=self.hepa_amount)
return models.MultipleVentilation((ventilation,hepa))
else:
return ventilation
@ -282,6 +284,7 @@ def baseline_raw_form_data():
'coffee_duration': '10',
'event_type': 'recurrent_event',
'floor_area': '',
'hepa_amount': '250',
'hepa_option': '0',
'infected_finish': '18:00',
'infected_people': '1',

View file

@ -55,7 +55,11 @@
No </p></li>
{% endif %}
<li><p class="data_text">HEPA Filtration: {{ 'Yes' if form.hepa_option else 'No' }}</li>
<!--TODO: X type of filter with y flow rate (default model assumption) ? This was in the output doc..? -->
{% if form.hepa_option %}
<ul>
<li><p class="data_text">HEPA amount: {{ form.hepa_amount }}</p></li>
</ul>
{% endif %}
</ul>
<p class="data_title">Event data:</p>
@ -112,12 +116,9 @@
<p class="data_title">Mask wearing:</p>
<ul>
<li><p class="data_text">Masks worn at workstations?
<li><p class="data_text">Masks worn at workstations? {{ 'Yes' if form.mask_wearing == "continuous" else 'No' }} </p></li>
{% if form.mask_wearing == "continuous" %}
Yes </p></li>
<li><p class="data_text">Mask type: {{ form.mask_type }}</p></li>
{% else %}
No </p></li>
{% endif %}
</ul>