| Folder name | Contents |
| bin | Scripts used in setting up esp-r and managing simulations. The script esp-r-dir will create the initial folders for the esp-r executables, databases and exemplar models. |
| cetc | Source code providing additional BASESIMP coefficient sets. Contributed by NRCan, Ottawa |
| climate | Climate sets distributed with esp-r. Mostly IWEC files downloaded and converted from USDoE simulation tools directory. Also holds climatelist file which holds the location and documentation on climate files used by esp-r. |
| databases | ASCII versions of the databases distributed with esp-r. The Install script converts these into binary databases as required. |
| defaults | Holds the file default which contains a list of the default models and databases which will be offered to the user. |
| env | Holds examples of `dot` files which can be placed in users home folders to define environment variables, configure window managers and provide a background image. |
| esruaco | Code related to accoustic calculations Source code (aco.F) . |
| esrub2e | Code supporting direct links between building energy management systems and the esp-r simulator. Source code (b2e.F) |
| esrubld | Core code of the building simulator (solvers and subsystems) |
| esrubps | The integrated simulator (uses code from esrubld, esrumfs, esruplt etc.) Source code (bps.F) |
| esruc2e | Code supporting the calculation of wind pressures on specific portions of a building facade based on the CPCALC method. |
| esrucfg | Code of the surface topology checking module. Source code (cfg.F) |
| esruclm | Code of the climate display and analysis module. Source code (clm.F) |
| esrucnv | Code of the model conversion modules (various combinations of esp-r, dxf, thf, tsbi3) as well as vector image conversions (xfig, viewer) Source code (ecnv.F) |
| esrucom | Common code imported by other modules (everything from I/O facilties for simulation model files (source files: model configuration casual gain controls zone construction files zone controls zone geometry zone operations ) and databases (source files: materials constructions optics ) command line parsing and psychrometrics . |
| esructl | Code realted to global control functions. |
| esrudfs | Code supporting CFD calculations. Source code (dfs.F) |
| esrue2r | Code of the visual assessment tool (wrapper around Radiance). Source code (e2r.F) |
| esrueco | Code supporting life cycle cost and environmental impact assessments. Source code (eco.F) |
| esrugrd | Code of the 2-3D conduction gridding module. Source code (grd.F) |
| esruish | Code of the shading and insolation calculation module. Source code (ish.F) |
| esrumfs | Code supporting calculation of mass flow networks. Source code of the stand-alone solver (mfs.F) |
| esrumld | Code supporting micotoxin growth calculations and database of growth curves. Source code (mld.F) |
| esrunet | Code of the graphic (flow) network creation module. Source code (network.F) |


The ESP-r training directory includes the above model /usr/esru/esp-r/training/3z_bld) with several variant configurations located within the cfg subdirectory follows.
The constructions for each models are defined in the file building.mlc while alternative control definitions are located in the cfg directory as filesbuilding_basic, the basic three zone model
building_bls, with blind shutter control
building_shd, with shading
building_shd_vwf, as building_shd with explicity view factors
building_mass_a, a basic building with infiltration air flow
building_mass_b, with infiltration and pening doors
building_mass_c, with infiltration and opening windows
The following is a synopsis of each variant.building_basicbuilding.ctl, reception and office heating system control
pre-heat.ctl, all zone heating with pre-heat period
temp-match.ctl, match temperature of other zones to that prevailing in the reception
building_mass_b.ctl, heat reception only
building_w.ctl, as building.ctl but with window control
building_s.ctl, window control only, no heating
Air flow networks
The base case air flow network is described in building.mfn_a and contains four boundary nodes (north, east, south, west) and three nodes (roof, recep, offic) which match the thermal zones. Air flow components (drcrk, wincrk, soffit, roofv) define the flow restrictions. The flow paths are between each zone and the outside via window cracks and between the two occupied rooms via a crack under the door. The roof space has two flow paths to the outside - one through the soffit and one by way of the roof vent.
The air flow network with window control is building.mfn_c. The control is made via a configuration control file. A window in the reception is assumed to open if the room temperature rises above 20°C. A similar set of paths is defined for the office.
During a summer simulation see how flow is restricted to the cracks in the windows until the room warms and then the window opens, flow is allowed and then when the temperature drops below 20°C the window closes. In the results analysis you will probably detect a sawtooth pattern as the windows open and close. The decision to open or close the cracks in the windows until the room warms and then the window opens, flow is allowed and then when the temperature drops below 20°C the window closes. In the results analysis you will probably detect a sawtooth pattern as the windows open and close. The decision to open or close the window is only taken once per timestep and you should experiment with different simulation timesteps to see how this ventilation control changes.
(1) pre-heat.ctl
This file provides for a typical daily 3-period control schedule.Control schedule for all three zones:
00.00 - 09.00 preheat
09.00 - 18.00 ideal control
18.00 - 24.00 free-float(2) temp_match.ctl
This file provides for a temperature matching control strategy whereby a zone's air temperature is controlled to follow that of another zone (the reception in this case).Control schedule for office and roof:
00.00 - 24.00 match Zone_1 air temperature.

Model details.
The air flow network.


* PRE-HEAT CONTROL.
Sensor Location: pre-heater exit.
Sensed Variable: dry bulb temperature.
Actuator Location: pre-heater.
Actuated Variable: flux.
Control Law: proportional.
Proportional Band. 2 deg C.
Output Range: 0.0 -> 3.5 kW.
Control Period: 07.00 -> 18.00* HUMIDIFIER CONTROL.
Sensor Location: humidifier exit.
Sensed Variable: dry bulb temperature.
Actuator Location: humidifier.
Actuated Variable: moisture injection.
Control Law: proportional.
Proportional Band. 12% RH.
Output Range: 0.001 -> 0.005 kg/kg.da.
Control Period: 07.00 -> 18.00* COOLING COIL CONTROL.
Sensor Location: coiling coil exit.
Sensed Variable: dry bulb temperature.
Actuator Location: coiling coil.
Actuated Variable: flux.
Control Law: proportional.
Proportional Band. 2 deg C.
Output Range: 0.0 -> 1.0 kW.
Control Period: 07.00 -> 18.00* RE-HEAT CONTROL.
Sensor Location: re-heater exit.
Sensed Variable: dry bulb temperature.
Actuator Location: re-heater.
Actuated Variable: flux.
Control Law: proportional.
Proportional Band. 2 deg C.
Output Range: 0.0 -> 3.5 kW.
Control Period: 07.00 -> 18.00
ahu_flow.on-off-ctl, basic on/off control of the re-heat coil.ahu_flow.prop-ctl, basic proportional control of humidity and temperature.
ahu_flow.PI-ctl, proportional + integral control of temperature.