Microenvironment module¶
Python library to model the spread of infectious diseases within a microenvironment
-
class
Microenvironment.
Microenvironment
(simulation_params, environment_name, volume, air_exchange_rate, capacity=None)¶ Bases:
object
Class to implement a microenvironment as a simpy discreate event simulation
-
add_quanta_to_microenvironment
(quanta)¶ Callback from person class to add quanta to the microenvironment
Arguments: quanta The number of quanta to add to the microenvironment
-
get_active_users
()¶ Get the number of people in the microenvironment
- Returns
{integer} – Number of active people in the microenvironment
-
get_quanta_concentration
()¶ Callback from person class to get the quanta concentration
-
get_queue_length
()¶ Get the number of people waiting in the queue
- Returns
{integer} – Number of people waiting in the queue
-
initialise_periodic_reporting
()¶ Initialise periodic reporting
-
periodic_reporting_callback
()¶ Callback to collect data for periodic reporting
-
request_entry
()¶ Request entery into the microenvironment
- Returns
simpy resource – Simpy resource (with potential capacity constraint)
-
run
()¶ Calculate the new quanta concentration in the building
-