Skip to main content
U.S. flag

An official website of the United States government

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Secure .gov websites use HTTPS
A lock ( ) or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.

CONTAM Revision History

The history of major enhancements and fixes to CONTAM is provided below. 

Version 3.4.0.1

Release Date: January 8, 2021

 Fixes to ContamW only (ContamX version remains at 3.4.0.0).

  • Issue #8 - Erroneous characters in various dialog boxes, e.g., superscript "2".
  • Issue #14 - Crash when performing building check on a PRJ files the utilize zone temperature schedules.
  • Issue #16 - SketchPad becomes unresponsive when viewing results of a PRJ that implements Zone Airflow and Pressure Limits.
  • Issue #23 - Incorrect direction and pressure display lines on the SketchPad for vertical airflow paths when in the Wind Pressure Mode, e.g., eave vents located above the ambient on the level below, with the flow path not connected to ambient on the current level.

Version 3.4.0.0

Release Date: July 30, 2020

Modified PRJ to include multigrid CFD solution variables, but ContamW has not yet been modified to provide access to these variables. The solution method defaults to multigrid, and the PRJ file must be modified using a text editor to change the default solution method and associated values.

Version 3.3.0.0

Release Date: Not formally released

Most modifications to version 3.3 relate to bug fixes and coupling with external programs. The only major change related to CONTAM capabilities is the implementation of a multigrid CFD solver. However, the minor version, i.e., “.3” was updated due to changes in the PRJ format. Icon coloring was added to address icons beyond the previous zone and duct icon coloring. An additional icon color field was added for airflow paths, source sinks, simple air handling systems, occupant exposure and annotations. The use of outdoor air and zone humidity ratio was incorporated into the ContamX messaging scheme.

ContamX Enhancements
  • EnergyPlus Co-simulation
    • Implemented humidity ratio messages. ContamX calculates volumetric airflows using humidity ratio based on EnergyPlus density calculation method PsyRhoAirFnPbTdbW_Eplus().
    • Enabled co-simulation to start without an initial CONTAM restart (.RST) file.
  • Coupled Multizone/CFD
    • Enabled simple air handling system supply and return paths to be placed within CFD zones.
    • Implemented multigrid solution method.
ContamX Resolved Issues
  • Pressure-driven Source – Source was incorrectly using zone pressure instead of zone gage pressure to calculate emission rate. This has been corrected and a check has been added to ensure only negative gage pressures produce an emission rate.
  • December-January crossover – Enabled simulations to be run that crossover the Dec31 to Jan01 date. Issues were due to handling of external input files: WTH, CTM, WPC, CVF, and DVF. As a result, cyclical simulations are also now handled correctly. Results output to the controls log file are now handled correctly.
  • Building Pressurization Simulation – Allow two-way airflow elements to be open during Building Pressurization Simulations.
  • Result Files Timestep – The simulation time step was being written to some result files instead of the listing time step (EXP, ACH, AGE).
  • Box-whisker Calculations – Increased floating point resolution of box-whisker calculations to improve output accuracy.
  • PI Control – PI controller output was incorrect for inputs less than or equal to 0.0. Now coerces output to between 0 and 1.
  • Cubic Spline Elements – Fixed issue reading cubic spline airflow elements that was revealed when running the Linux version of ContamX.
  • Running Average Control – Corrected calculation.
  • PATH_FLOW_UPDATE_MSG – Corrected volume flow rate calculation (Vdot) to Mdot/AmbientDensity. Previously it was being calculated as Mdot/ZoneDensity. EnergyPlus reports the flow as Vdot*AmbientDensity/ZoneDensity.
  • CONTROL_NODE_UPDATE_MSG and ADJ_CONTROL_NODE_MSG – Corrected issues related to both input and output control messages.
ContamW Enhancements
  • Tracing Image – Provide ability to import a bitmap, e.g., image of a floor plan, onto the SketchPad to allow tracing over the image. The image can be moved and resized on the SketchPad. Drawing of walls is no longer confined to odd rows and columns of the SketchPad.
Contam3DExporter Enhancements
  • EnergyPlus – Provide the option to create air loops associated with Simple Air Handling Systems that contain a fan to move air through the loop or to incorporate one of two types of thermal conditioning systems within the air loop, i.e., AirLoopHVAC:UnitaryHeatCool or AirLoopHVAC:UnitaryHeatPump:AirToAir system.

  • TRNSYS – Streamlined coupling process and updated for TRNSYS version 18.

Version 3.2.0.3

Release Date: June 13, 2016

Coupled EnergyPlus-CONTAM and TRNSYS-CONTAM - Enabled coupled simulations to start on date other than Jan 01 and to cross the Dec/Jan end of year.

Version 3.2

Release Date: September 1, 2015

EnergyPlus-CONTAM Multizone Airflow, Heat Transfer and Contaminant Analysis - This capability includes modifications to ContamX and the creation of a new dynamic link library (DLL) that implements co-simulation between EnergyPlus and ContamX via the Functional Mockup Interface (FMI). This includes the development of ContamFMU.dll and enhancing CONTAM3DExport.exe to enable the creation of EnergyPlus input files for the purposes of performing co-simulation.

Contaminant Exfiltration Result Files - Added the ability to create result files that provide the mass of contaminants that are transported to ambient.

SQLite Database Result Files - Added the ability to create a SQLite database file (.sqlite3) that contains the same results as the simulation results file (.sim).

UVGI Filter - Added an ultra-violet germicidal irradiation filter element.

Direct Scheduling via CVF and DVF Controls - Added the ability to directly schedule items, e.g., source/sinks and airflow paths, via external files without an associated controls networks drawn on the SketchPad.

Version 3.1

Release Date: February 1, 2013

TRNSYS-CONTAM Multizone Airflow, Heat Transfer and Contaminant Analysis - This capability includes modifications to ContamW and ContamX and the creation of a new TRNSYS Type and the software utilities to provide a new coupling process that enables ContamX to be more directly coupled with TRNSYS Type56.

ContamW Pseudo-geometry - Provide ability to define scaling factor for drawing on the ContamW SketchPad and view wall dimensions on the SketchPad. This feature is an aid to utilities provided for the TRNSYS-CONTAM coupling that create three-dimensional representations for TRNSYS Type56 multizone heat transfer calculation.

ContamW Temperature Plots - Provide ability to plot temperatures in ContamW.

ContamX - Added socket communication messages that provide for the transfer of temperatures and airflow to/from ContamX.

Type98 - Acts as a bridge between ContamX and Type56 for TRNSYS simulations.

Utilities - Created software utilities CONTAM3DExport.exe to extrude scaled CONTAM prj representations to form Trnsys3didf files and Type56-98Coupler.exe to form the linkage between Type56 and Type98.

CVODE - Implemented a variable time step solver for transient contaminant transport calculations. CVODE, is a general-purpose code for solving ordinary differential equations, that provides for variable time steps, high-order integration methods, and automatic error control.

Usability Enhancements

Particle Plots - Provide ability to plot particle distributions when simulating multiple size ranges with ContamW.

Result Mode Toolbar - Provide toolbar buttons to manipulate result time step display.

Simulation Time Step Analysis - Provide ability for user to check schedules and input files (WTH, CTM, DVF, CVF) for maximum time step required to capture all scheduled events.

Program/Project Configuration - Modified ContamW configuration to separate out Program-related options from Project-related options.

Result File Output - Provide user with control over output of simulation result files CSM, LOG, and SRF.

Resolved Program Issues

Restart File - Restart (rst) file did not properly account for Deposition/Resuspension source/sinks. Also, modified restart file behavior to only write restart data at the end of each day (24:00:00) and/or at the end of the last day if shorter than 24 hours. User is no longer required to select the time to use when utilizing the restart file, only the date.

PLD File and Duct Terminals - Duct terminals were not being output to the Path Location Data file (PLD).

Results Display Window and Duct Leakage - The results display window was not providing duct leakage airflow results for zones having junctions in them with associated duct leakage.

Version 3.0a

Release Date: August 10, 2011

Self-Regulating Vent - A new airflow element has been added to CONTAM. The self-regulating vent limits the airflow rate in both directions through a flow path with user-defined limiting air pressure differences. CONTAM implements the self-regulating vent as described by Axley 2001 Residential Passive Ventilation Systems: Evaluation and Design.

Surface Node Results File - Added new results file (SRF) for Boundary Layer and Deposition/Resuspension source/sink elements.

New Zone Color Option - Now when revealing the level below there is an option to see the zone colors of the zones on the level below.

Resolved Program Issues

ContamW

Fix - crash could occur when deleting a level.

Fix - enable transient simulation times that span the Dec/Jan transition, i.e., allow simulations to start before December and end after January.

Fix - when replacing a wind pressure profile with the Find & Replace dialog the wall azimuth and wind speed modifier should be set to the defaults.

Fix - allow plotting of results for a simulation that spans the Dec/Jan transition.

Fix - crash occurred when deleting zones having occupancy schedules that referenced them.

Fix - incorrect painting of the toolbar for some Windows themes.

Fix - cubic spline airflow element curves were not plotted correctly if their curves were invalid.

Modification - consolidated variable density airflow calculation parameters.

ContamX

Fix - Matrix reordering issue when large project files encountered fatal errors when matrix reordering was attempted due to size of index parameter.

Fix - Prevent intermittent program crash when running under Windows 7 64-bit OS.

Fix - Contaminant summary file (.csm) issues: values when working with non-trace boundary layer diffusion and deposition/resuspension source sinks were likely too high due to summation of the source contributions over multiple iterations of the variable density iterations within each time step; combinations of non-trace and trace contaminants could result in trace contaminant-related summations not being accounted for. However, these issue did not affect sim file results.

Fix - Issue related to non-trace contaminant calculations involving Boundary Layer Diffusion and Deposition/Resuspension sources whereby the contribution of mass added to the zone in which these source/sinks were located was incorrectly calculated.

Fix - Issues related to Deposition with Resuspension source/sink element when performing variable density calculations.

Fix - Power Law source/sink model was not utilizing the correct source/sink element function.

Fix - Enable DVF files to handle Dec/Jan transition.

Fix - Issues related to Decaying (exponential decay) source elements: generation rate was not reset when scheduling the source on/off, and the generation rate was being compounded when multiple Decaying sources were being used.

Modification - Improved variable density calculations.

Version 3.0

Release Date: January 11, 2011

Coupled Multizone/CFD - Implemented the ability to simulate an internal zone using computational fluid dynamics (CFD). Details of this capability are provided via the NIST Multizone Modeling website.

Deposition/Resuspension Source/Sink Element - Added a new source/sink element that accounts for both deposition and resuspension of particle contaminants to/from a surface.

Windows 7 64-bit - ContamX crashed intermittently due to data copy error.

Usability Enhancements

Editing Context Menu - Right mouse button to provide cut, copy and paste functions.

Version 2.4c

Release Date: October 6, 2008

New control types - Added new mathematical functions: exp, ln, log10, etc.

TCP/IP socket simulation control - Enabled multi-day simulation control.

Operating System Compatibility

CONTAM Fonts - ContamW SketchPad now utilizes internal bitmap patterns instead of font files.

HTML Help - The ContamW help system has been converted to HTML help for compatibility with the Windows Vista operating system.

CONTAM Log Files - The contamx2.log and contamw2.log files are now stored in the user's application directory (home directory for Linux version of ContamX).

Usability Enhancements

ContamX Non-Convergence Information - If the ContamX airflow calculation fails to converge, a list of airflow nodes that failed to converge will be provided in the contamx2.log file.

Error List - ContamW generates a list of problem icons that is displayed in the newly implemented Building Check Problems dialog box when a PRJ file does not pass the building check performed prior to a simulation. This includes airflow paths that do not have valid location data when working with WPC files.

Create WPC File Dialog - The WPC dialog box has been modified to enable "manual" generation of PLD files to aid in the creation of WPC files, and the Weather page of the Simulation Parameters property sheet has been modified accordingly.

Recent file list - Added list of recently opened project files to the File menu.

Open Project Input/Output Files - Provided the ability to open CONTAM-related input and output files from the File menu. Files are opened based on file extension associations of Windows.

Result Plotting - Right click on SketchPad icons when viewing results to activate result plotting.

SketchPad Navigator - Display a small icon SketchPad window to simplify navigation of the main SketchPad with larger icons: from main menu select View - SketchPad Navigator.

Duct Results Display - duct velocity calculated based on upstream air density.

CSM File Format - modified CSM file format to provide more detail related to source/sinks.

Resolved Program Issues

Cubic Spline Elements - Enabled the use of cubic spline elements in duct segments.

CSM File - WPC file contaminants filtered by envelope flow paths were not being accounted for in the Contaminant Summary File.

DVF and WTH File - WTH file records were being skipped when using both a DVF and a WTH file.

Duct Balancing - After duct balance is performed the flow rates of "mass flow type" fans could be incorrectly set as though they were volume flow types.

Flow Limits - Flow limits of airflow paths were set back to none upon file read.

CVF/DVF Node Selection - Node drop-down list was improperly sorted causing potential for setting of incorrect nodes.

Version 2.4b

Building Controls

Occupancy Sensor - Added zone occupancy sensor type.

Gage Pressure Sensor - Added gage pressure sensors for zones, duct junctions and terminals.

Source/Sink Elements

NRCC Sources - Added powerlaw and peak contaminant source types based on NRCC material emission database.

Super Source/Sinks - Implemented ability to combine multiple source/sink elements into a single super source/sink element.

Usability Enhancements

Enhanced deletion capabilities - Provided ability to delete multiple items from the SketchPad with a single deletion operation.

Results display - Improved control over selection of simulation time for results display.

Wind pressure display - Provided ability to review transient wind pressures resulting from wind data provided by WPC files.

SketchPad dragging - Hold down the mouse wheel to drag the SketchPad when scroll bars are visible.

Library Manager - Use the Ctrl and Shift keys to select multiple items from the element lists and perform copy and delete operations on them.

Version 2.4a

Number of building components - The limit on the total number of each type of building component (i.e., zones, paths, ducts, sources/sinks, etc.) that can be created within a single project has been increased from 32 767 to 2 147 483 647.

Short time-step method - A new simulation mode that solves contaminant dispersal equations using an explicit solution method.

1D Zones - The ability to simulate selected zones as one-dimensional convection/diffusion zones has been implemented. This provides the ability to more realistically simulate the transport of contaminants through "long" or "tall" zones, e.g., hallways and shafts, better accounting for transport times through these 1D zones.

1D duct model - Implementation of one-dimensional convection/diffusion elements in ductwork, thus providing more realistic contaminant transport results through the duct system. This requires the use of the short time-step method.

Duct temperature calculations - When simulating 1D ducts in the short time-step mode, CONTAM can now calculate duct temperatures based on the "mixing" of air streams at the duct junctions and the source (zone) air temperatures from which air is introduced into the duct system.

Simulation results data - Modified the zone and junction pressures as reported to the simulation results file to more closely resemble gage pressures. Zone pressures are now referenced to the ambient pressure at the level on which the zone is located. Junction static pressure is now referenced to the zone in which the junction is located at the height of the junction within the zone.

Automated duct balancing - Added simulation option to automatically balance duct systems. This will greatly simplify the task of defining detailed duct systems in CONTAM.

Cubic spline airflow elements

Building model verification tests

Building pressurization test - Simulation option to automatically determine building envelope airtightness based on a simulated fan pressurization test.

Building airflow test - Simulation option that generates a set of data, mostly related to building ventilation, that can be used to gauge the reasonableness of model inputs before beginning analysis of a building.

Contaminant Filters

New filter models - CONTAM has added particle and gaseous filter models that greatly increases the user-s flexibility to create models based on measured filter performance data, e.g., MERV and breakthrough curves.

Filter super elements - enables multiple filter models to be combined into a single filter element, e.g., a particle pre-filter combined with a gaseous filter.

Contaminant summary file - This file is generated when simulating contaminants to provide information related to source/sink contaminant generation and removal, filter loading and breakthrough, and contaminant transport between building zones and ambient.

Deposition sink models - Added Deposition Velocity and Deposition Rate sink models to simplify the definition of sinks based on more familiar deposition terminology.

Control super elements - The task of creating building control systems has been improved by reducing the amount of user input required, increasing the amount of flexibility in defining control systems and enabling the sharing of control elements, e.g., sensors, within and between projects.

TCP/IP socket simulation control - ContamX can be controlled via the TCP/IP Socket communication protocol based on a pre-defined set of messages that include control commands and data exchange. ContamX can also be compiled and run under Linux based operating systems, and a Linux-compatible executable is now available on the NIST web site.

Usability enhancements

Find - search for items on SketchPad by Name and Number

Find-and-replace - search for and replace properties of building components within a project

SketchPad movement
Ctrl + arrow key => skip 10 cells in direction of arrow
Shift + arrow key => move to next icon in the direction of arrow
Mouse wheel for scrolling:

Wheel => up/down   Shift+Wheel => page up/down

Alt+Wheel => left/right   Shift+Alt+Wheel => page left/right

Keyboard icon placement - use keyboard to place icons on the SketchPad

Floating status bar

User-defined zone colors

User-defined duct colors and automated duct tracing/coloring tool

Generate bitmap file (.bmp) of SketchPad

Enhancements from version 2.0 to 2.1

Wind pressure and contaminant fields - The ability to incorporate data from exterior airflow and pollutant transport models, e.g., plume and puff dispersion models, to utilize detailed ambient wind pressure and contaminant data fields to provide boundary conditions on the airflow paths of the envelope of built structures

Control elements - New control elements to simulate time delays associated with spin-up/down of fans and the opening/closing of dampers and to perform integration, peak determination of sensor output over time, maximum, minimum and exponential operations

Particle analysis - Modified contaminant properties to simplify the analysis of airborne particles

Mass release calculation - The calculation of total mass released by contaminant sources during a simulation

Program Documentation - Programming documentation of the software was produced which can be obtained from the NIST website. This documentation includes details of CONTAM input and output file formats [Walton and Dols 2003].

Enhancements from version 1.0 to 2.0

Building controls - Controls include sensors, actuators, modifiers and links. Control actuators can be used to modify various characteristics of building components based on control signals obtained from sensors and even modified by signal modifiers. For example, a sensor can be used to obtain a contaminant concentration within a zone, and a proportional control actuator can be used to adjust supply airflow into the zone based on the sensed concentration.

Scheduled zone temperatures - Zone temperatures can now be varied through the use of user-defined schedules. This allows for the change in zone pressures due simply to the change in temperature within the zone according to the ideal gas relationship.

Contaminants

Non-trace contaminants - You can now account for the impact of contaminant concentrations on the density of the air, e.g., water vapor.

Unlimited number of contaminants - CONTAM no longer restricts the number of contaminants you can simulate. The previous limitation was 10.

Contaminant-related libraries - Contaminant related elements can now be shared through CONTAM library files. These elements include contaminant species, filters, source/sinks and kinetic reactions.

Numerics

Variable air density - CONTAM now provides the ability to simulate non-flow related processes that can lead to the accumulation/reduction of mass within building zones, e.g., due to non-trace contaminant sources and to variations in the zone pressure due to the change in zone temperature.

Sparse matrix techniques implemented to greatly reduce transient simulation times for large problems.

Separated solver from graphical user interface to provide for batch execution of simulations and directly utilize .PRJ files.

Transient weather

Separate transient weather and contaminant files - Weather files (WTH) no longer contain contaminant concentrations (except for outdoor humidity ratio). This means you don-t have to create different weather files depending on the types of contaminants you are simulating. CONTAM now provides you with the option of simulating transient ambient contaminant concentrations using a contaminant file (CTM).

Weather file creation/conversion software - NIST has developed a software tool that allows you to convert existing weather files to CONTAM 2.0 compatible weather files. You can convert your existing 1.0-compatible files, TMY2 and EnergyPlus weather files.

User interface

Longer zone names - Zone names can now be up to 15 characters long.

SketchPad zooming feature - You can now reduce the icon size of the SketchPad to allow the display of larger projects on the screen.

Results Display

Net inter-zone airflows displayed for highlighted zones in Results Display Window

Airflow direction indicators are now displayed in the Status Bar when viewing airflow path results

Distinct simple air-handling system zones - The implicit zones of multiple simple air-handling system are now distinguished from each other to allow for the plotting of individual system zones

 

Created July 27, 2020, Updated November 9, 2021