| esm.MRD.input.environ {heR.Simulation} | R Documentation |
Function to prepare the environmental input for the "Multi-Room Dwelling" exposure simulation model (ESM)
esm.MRD.input.environ(instances, inputs, index.inputs = NULL,
char.inputs = NULL, times, timeres,
breaks = TRUE, options = NULL,
silent = FALSE)
instances |
a list containing data and index components for the currently-simulated house and occupants, see below for details |
inputs |
a list containing raw data inputs for the simulation, see below for details |
index.inputs |
a list containing components with demographic and other information corresponding to the data components of instances, see below for details |
char.inputs |
currently unused |
times |
a vector of times, giving the breaks and time domain for the final exposure calculation |
timeres |
the time resolution of the final exposure calculation |
breaks |
logical, whether to use exposure time series or bulk times spent in activities and locations, currently limited to TRUE |
options |
a list of option values for the simulation, see esm for more information |
silent |
logical, whether to suppress warnings or not |
This function prepares the ``environment'' for a multi-room dwelling
simulation, which consists of house and occupant characteristics that
impact exposure. It takes as input an instances list containing
current data and index components for the house occupants, and returns
the updated instances list. The inputs list argument
contains the raw data input for the simulation. The expected components
are as follows:
EN$SCENEN$LOCEN$SLEEPEN$SMKLOCLOC, where smoking is allowed to occur in the home. If not given, the smoking rooms are determined from the SCEN specification.
The expected components in instances are data,
containing simulated data values for the current house and occupants, and
index, containing demographic and other information corresponding
to each piece of data. The data component should have the following
sub-components:
tact objecttact object
The index component of instances should contain components
for each occupant as follows:
AGE, ROOMS, and FLOORS for the receptor-person.AGE, ROOMS, and FLOORS for the source-person.
This function calls sim.house to simulate the house layout and
sim.volume to simulate the house volume.
The function recodes the occupant time-activities in terms of the
actual rooms that exist in the house, first determining the ``potential''
rooms that can be visited by applying the location codes specified in
inputs$LOC. Garages, basements, laundries,
and bathooms rooms (so-called ``supplementary'' rooms) are added onto
the base house configuration that consists of main rooms and hallways.
Main rooms are one, or one or more multi-use combinations, of the following room types:
where AUX rooms are interpreted as spare bedrooms, offices, extra dens, or other types of general living areas.
The 18 binary scenario variables are as follows, where each description corresponds to the ``on'', or ``1'', condition, and ``0'' conditions mean the opposite, or as otherwise specified. A ``2'' signifies that the value of the variable will be randomly sampled to take on either a ``1'' or ``2'' value. Note that more 1's roughly equate to more pollution potentially getting to a receptor in different parts of the house other than where emissions are immediately occurring.
The SCEN specification uniquely determines the time-dependent
types of physical connection between rooms, the outdoors, and the
HVAC system. These connections are determined by the
sim.connections function, the output of which is fed directly into the sim.flows function, which simulates the time-dependent
air flows between each pair of zones.
This function is not meant to be called directly, but called through
the esm.MRD.input function, which is, in turn, intended to
be called by the esm function.
This function returns a list of instances with components:
data |
the updated list of simulated values for the current house and occupants |
index |
the list of demographic and other information corresponding to each compondent of data |
This function is intended to be of general use for simulating exposure in residences, although it and the other MRD functions are currently limited to consideration of tobacco smoke exposure from in-home cigarette smoking.
Neil Klepeis
Other input functions for the multi-room dwelling simulation model are
esm.MRD.input.source; esm.MRD.input.receptor;
and esm.MRD.input.conc.
Other functions used in the multi-room dwelling exposure simulation
model are esm.MRD.expos and esm.MRD.output.
Distribution specifications are made using the distrib
function.
The root function for executing an exposure simulation
model is esm.