| sim.connections {heR.Simulation} | R Documentation |
Simulate time-dependent "connections" between rooms of a house, between rooms and the outdoors, and between rooms and a central system, using binary scenario specifications for room-specific door, window, central air, exhaust, and recirculation configurations.
sim.connections(house, ntimes = 1, ...)
house |
a "house" object as returned by the sim.house function |
ntimes |
the number of different consecutive time periods over which connections will be simulated, defaulting to just a single time period |
... |
a named list of one or more vectors containing binary scenario specifications (i.e., consisting of 1's and 0's), specifying on/off conditions for internal (int), external (ext), central mechanical ventilation (mech), local exhaust ventilation (exh), and local recirculation (rec) connection types. Each vector must be equal in length to the total number of rooms in the house. For any specification that is not given, default values corresponding to "no connection" will be assigned. |
The binary scenario specifications are vectors for each type of connection
and are specified as a key-value pairs under the ... argument. For
example, for a 5-room house where all windows are closed,
all interior doors are open, and all other connections are off, the
scenario specifications would be as follows:
| Internal Doors | int | c(1,1,1,1,1) |
| External Windows | ext | c(0,0,0,0,0) |
| Mechanical Ventilation | mech | c(0,0,0,0,0) |
| Exhaust Ventilation | exh | c(0,0,0,0,0) |
| Recirculation | rec | c(0,0,0,0,0) |
To turn ``on'' connections, such as opening windows or allowing central air into a room, one would enter 1's into the appropriate vector elements. In general, external switches correspond to whether windows are open or closed, internal switches correspond to whether the hallway door for the room is open, or whether a ventilation or recirculation fan is operative for that room or not. See below for the particular rules for interpreting ``on'' values for rooms that don't have a direct connection to a hallway or have only a single air return or supply.
This function considers a wide range of possible room types, including the
following, which are the basic types generated by the sim.house
function:
These basic types of rooms can also be combined into multi-use rooms, including:
The ``main'' rooms are defined as separate or multi-use rooms containing KIT, DIN, LIV, AUX, and BED. The ``supplementary'' rooms are defined as HALL, BATH, LAUN, BASE, and GAR. There can be multiple instances of AUX, HALL, and BATH.
We assign connections for room types in a general way, not assuming the rooms are pre-organized in any order except by floor.
The possible types (or ``levels'') of connection are:
The following are rules for assigning connections between different types of rooms:
house and specified the appropriate
scenario for each non-hall room in the order that they appear
on each floor.
The following are rules for connecting rooms to the central air system and the outdoors:
The binary scenario specifications apply to all rooms in the house. They designate connections to hallways for non-hall rooms, connection to an attached room for non-hall rooms not attached to hallways, and connection to upper halls/rooms on adjacent floors for halls/single-room-floors. The specification for halls and single-room-floors applies to connection to the next higher floor. The specification for the highest floor is ignored (maybe the attic?). We do not allow for rooms to be both attached to a hallway and another room unless there are two adjacent single-room floors. All rooms can have external connections, even halls, and ventilation connections.
A "connections" list object with the following components:
int |
internal connection list with matrix components for each room's connection with the other rooms (rows) at a series of times (columns) |
ext |
external connection matrix for room connections (rows) with the outdoors at a series of times (columns) |
mech |
connection matrix of each room to the mechanical ventilation system (rows) at a series of times (columns) |
exh |
exhaust ventilation matrix for each room's extra connectionto the outdoors (rows) at a series of times (columns) |
rec |
matrix of recirculation connections of each room with itself (rows) at a series of times (columns) |
These component matrices are intended to be used as direct input into
the sim.flows function, which simulates
house air flows at different times.
Neil Klepeis
This function takes input in the form of a "house" object
produced by the sim.house function.
The connection types generated by this function for different house-related
zones are intended to be used as direct input into the sim.flows
function.