model_functions.cpp File Reference

CPP API: model_functions.cpp File Reference
model_functions.cpp File Reference
Include dependency graph for model_functions.cpp:

Namespaces

 mio
 A collection of classes to simplify handling of matrix shapes in meta programming.
 
 mio::abm
 

Functions

void mio::abm::add_exposure_contribution (AirExposureRates &local_air_exposure, ContactExposureRates &local_contact_exposure, const Person &person, const Location &location, const Parameters &params, const TimePoint t, const TimeSpan dt)
 Add the contribution of a person to the local exposure rates. More...
 
void mio::abm::adjust_contact_rates (Location &location, size_t num_agegroups)
 Adjust ContactRates of location by MaximumContacts. More...
 
bool mio::abm::change_location (Person &person, const Location &destination, const TransportMode mode=TransportMode::Unknown, const std::vector< uint32_t > &cells={0})
 Change a persons location to another location. More...
 
void mio::abm::interact (PersonalRandomNumberGenerator &personal_rng, Person &person, const Location &location, const PopulationByAge &local_population_by_age, const AirExposureRates &local_air_exposure, const ContactExposureRates &local_contact_exposure, const TimePoint t, const TimeSpan dt, const Parameters &global_parameters)
 Let a Person interact with the population at its current Location, possibly getting infected. More...
 
void mio::abm::normalize_exposure_contribution (ContactExposureRates &local_contact_exposure, const PopulationByAge &local_population_by_age)
 Normalize contact exposure rate to average exposure per contact per time (from total exposure per time). More...
 
ScalarType mio::abm::total_exposure_by_air (const AirExposureRates &rates, const CellIndex cell_index, const VirusVariant virus, const Parameters &global_params)
 Compute the total virus exposure for aerosol transmission in a cell (unit: per day). More...
 
ScalarType mio::abm::total_exposure_by_contacts (const ContactExposureRates &rates, const CellIndex cell_index, const VirusVariant virus, const AgeGroup age_receiver, size_t age_receiver_group_size, const LocalInfectionParameters &params)
 Compute the total virus exposure for contact transmission in a cell (unit: per day). More...