Hot List for PTM Example Applications
images/construc.gif (235 bytes)
this page (always) under construction

by Rich Gates, Professor, UIUC

This page contains links to files for some basic psychrometric calculations. Sections include:

All source code was generated using our mk_codes.exe (download here) program, using the 'slow mode' option; this source should be compilable by any ANSI C compiler. For your convenience, all PC executables were compiled under BCC3.1 and hence will only run on PC's. You may want to modify the main program, which by default only prompts the user for inputs, calls the appropriate routines, then prints the answer. Note that most of these programs also require atmospheric pressure to be entered. Sea level value is 101.325 kPa or 14.7 psi, for Lexington KY at about 305m pressure is 97.7 kPa.

File names in    BLUE are C-source code,
file names in RED are Dos-executables,
and in NAVY BLUE are SunOS 4.1.4 executables.

Please report any bugs to rsgates@illinois.edu. Thank you!

Section one: Input dry bulb temperature and relative humidity

dbrh2wb.c    input: dry-bulb and relative humidity, output wet-bulb.         PC executable file
dbrh2dp.c    input: dry-bulb and relative humidity, output dewpoint.        PC executable file
dbrh2w.c     input: dry-bulb and relative humidity, output humidity ratio. PC executable file
dbrh2h.c      input: dry-bulb and relative humidity, output enthalpy.          PC executable file
dbrh2al.c     input: dry-bulb and relative humidity, output everything.        PC executable file

Section two: Input dry bulb temperature and wet bulb temperature

dbwb2rh.c       input: dry-bulb and wet-bulb, output relative humidity.    PC executable file
dbwb2dp.c     input: dry-bulb and wet-bulb, output dewpoint.              PC executable file
dbwb2w.c      input: dry-bulb and wet-bulb, output humidity ratio.        PC executable file
dbwb2h.c       input: dry-bulb and wet-bulb, output enthalpy.               PC executable file
dbwb2al.c      input: dry-bulb and wet-bulb, output everything.            PC executable file

Section three: Input dry bulb temperature and dew-point temperature

dbdp2rh.c  input: dry-bulb and dew-point, output relative humidity.     PC executable file
  dbdp2wb.c  input: dry-bulb and dew-point, output wet-bulb.               PC executable file
  dbdp2w.c  input: dry-bulb and dew-point, output humidity ratio.         PC executable file
  dbdp2h.c  input: dry-bulb and dew-point, output enthalpy.                  PC executable file
  dbdp2al.c  input: dry-bulb and dew-point, output everything.              PC executable file

Section four: Measurement Error Propagation

  1. Input: dry-bulb and dew-point and their measurement errors.
    Output relative humidity and estimate of error.
    readme file     source file: dbdprms.c      PC executable file,   SunOS 4.1.4 executable file.

  2. Input: dry-bulb and relative humidity and their measurement errors.
    Output dew-point temperature and estimate of error.
    readme file
        source file: dbrhrms.c     PC executable file,    SunOS 4.1.4 executable file.

    Output humidity ratio and estimate of error.
    readme file
        source file: dbrh2wr.c     PC executable file,    SunOS 4.1.4 executable file.