Thermal comfort (ISO 7730) with OpenFOAM: we checked the comfort function object, found a draught-rate bug and fixed it

Published by Ruggero Poletto on

Case 2 setup: displacement-ventilated two-person office (Yuan et al. 1999)

TL;DR

  • OpenFOAM’s comfort function object computes PMV, PPD and draught rate (DR) per ISO 7730 in every cell. We verified it on cloudHPC with OpenFOAM v2606.
  • PMV and PPD are correct: within 0.003 PMV and 0.08 % PPD of the ISO 7730 Table D.1 examples.
  • DR is not: the turbulence-intensity term is lost to an integer division (2/3 = 0) and Tu is not in %. The stock DR is 32โ€“89 % of the ISO value. Example: 26 ยฐC, 0.30 m/s, Tu 40 % โ†’ 10.6 % (category B) instead of 25.7 % (category C). openfoam.org fixed it on 21 Nov 2026 (bug 4438); the ESI line up to v2606 still has it.
  • We ship a corrected copy, comfortISO, that cloudHPC compiles from the case folder, and validated the full workflow on the Yuan et al. (1999) displacement-ventilation office (9 measuring poles).
  • In a mixing-ventilation version of the same office, the stock DR reports 1.3 % of the occupied zone above 20 % DR; the correct value is 6.7 %, with 3.2 % out of category C โ€” right where the cold jet lands next to a desk.
Air paths in the same office, coloured by temperature: displacement ventilation (cold layer on the floor, warm plumes rising) vs mixing ventilation (cold jet from the wall grille, uniform room)

Why this post, and why now

CFD thermal-comfort maps are now a routine deliverable for offices, lobbies and atria. In OpenFOAM the shortest path is the comfort function object, available in the ESI line since v2112 and contributed from openfoam.org. It evaluates, cell by cell, the three ISO 7730 indices: Predicted Mean Vote (PMV), Predicted Percentage of Dissatisfied (PPD) and Draught Rate (DR).

Two things made us look at it closely:

  1. EN ISO 7730:2025 replaced the 2005 edition in September 2025; the function object still cites the 2005 text. The PMV/PPD equations are identical in the two editions (pythermalcomfort implements both with the same equations); the 2025 edition corrected the Annex D calculation program. We have not compared the DR clause line by line with the 2025 text.
  2. A comfort map is only as good as the formula behind it, and a DR error does not show up in a pretty contour plot. So before running a real room, we verified the function object against the standard โ€” and found that the draught rate ignores turbulence.

openfoam.org fixed the same line a few days before this post (commit d78e9ac4e, 21 Nov 2026, bug report 4438). The ESI release we tested, v2606 (the latest on cloudHPC), still has it; the function object was ported to the ESI line in v2112. If you have produced DR maps with OpenFOAM, read on.

This is the hands-on follow-up to our earlier overviews of thermal-environment standards with OpenFOAM: ASHRAE 55 thermal comfort, ISO 7933 heat strain and ISO 7243 heat stress (WBGT). Those posts describe the workflow; here we run it and check the numbers.

Results at a glance

CheckStock comfort (v2606)comfortISO (this post)Reference
PMV, 12 ISO 7730 Table D.1 examplesmax |ฮ”PMV| 0.003max |ฮ”PMV| 0.003ISO 7730 / pythermalcomfort
PPD, same examplesmax |ฮ”PPD| 0.07 %max |ฮ”PPD| 0.08 %ISO 7730 / pythermalcomfort
DR, 48 points (20โ€“26 ยฐC, 0.10โ€“0.30 m/s, Tu 10โ€“60 %)32โ€“89 % of the ISO value, independent of Tuwithin 5ยท10โปโต % DRISO 7730 eq. (6)
Office, displacement ventilation: occupied volume with DR > 20 %0.2 %0.3 %โ€”
Office, mixing ventilation: occupied volume with DR > 20 %1.3 %6.7 %โ€”
Office, mixing ventilation: occupied volume with DR > 30 % (outside cat. C)0.0 %3.2 %โ€”
Office, displacement: measured vs computed temperature (9 poles, 3 cm mesh)mean |ฮ”ฮธ| = 0.123 (ฮธ = normalised temperature)Yuan et al. 1999
Office, displacement: measured vs computed air speedmean |ฮ”U| = 0.19 us = 0.017 m/sYuan et al. 1999

What the function object computes

For each cell, from the air temperature T, the velocity U and (if present) the turbulent kinetic energy k:

  • PMV โ€” Fanger’s heat-balance index (โˆ’3 cold โ€ฆ +3 hot), from air temperature, mean radiant temperature, relative air speed, humidity, clothing (clo) and metabolic rate (met). The clothing surface temperature is solved iteratively.
  • PPD = 100 โˆ’ 95ยทexp(โˆ’0.03353 PMVโด โˆ’ 0.2179 PMVยฒ).
  • DR โ€” ISO 7730 eq. (6), the Fanger et al. (1988) draught model:
    DR = (34 โˆ’ ta) (v โˆ’ 0.05)0.62 (0.37 ยท v ยท Tu + 3.14), with Tu in %, v in m/s (v < 0.05 โ†’ 0.05; DR > 100 % โ†’ 100 %)

ISO 7730 categories: A |PMV| < 0.2, DR < 10 %; B |PMV| < 0.5, DR < 20 %; C |PMV| < 0.7, DR < 30 %. For the vertical air-temperature difference between head (1.1 m, seated) and ankles (0.1 m): A < 2 K, B < 3 K, C < 4 K.

The mean radiant temperature Trad is either given by the user or, if omitted, taken as the area-weighted mean temperature of all wall patches. Keep that in mind: it matters later.

Case 1 โ€” verifying the formula

Case 1: PMV vs ISO 7730 examples and DR vs turbulence intensity

Setup. A one-cell mesh evaluated with postProcess once per condition: the 12 ISO 7730 Table D.1 examples (as published in the validation dataset of pythermalcomfort) for PMV/PPD, and a 48-point grid for DR (ta = 20/23/26 ยฐC, v = 0.10/0.15/0.20/0.30 m/s, Tu = 10/20/40/60 %, with k = 1.5 (Tuยทv)ยฒ). The independent reference is pythermalcomfort 3.x (pmv_ppd_iso) and ISO 7730 eq. (6).

PMV/PPD โ€” correct. The maximum deviation over the 12 examples is 0.003 PMV and 0.08 % PPD. The tiny residual comes from the ISO calculation program’s 273 K offsets versus OpenFOAM’s 273.15 K.

DR โ€” wrong. In v2606 the turbulence intensity is computed as:

TI = sqrt(2/3*k)/Umag;   // 2/3 is integer division = 0  ->  TI = 0

2/3 is an integer division in C++, so TI is always zero, and even with the right constant TI would be a fraction while ISO 7730 uses Tu in %. The stock DR is therefore the zero-turbulence draught rate: it does not change with k at all (we checked: identical to 4ยท10โปโต for Tu = 10โ€ฆ60 %). Over the 48 points it is 32โ€“89 % of the ISO value; the error grows with air speed and turbulence. At 26 ยฐC, 0.30 m/s and Tu = 40 % โ€” a realistic value near a supply jet โ€” the stock DR is 10.6 % (category B) instead of 25.7 % (category C).

The fix (comfortISO). A copy of the v2606 source with:

  1. Tu = 100*sqrt((2.0/3.0)*k)/U (same fix as openfoam.org commit d78e9ac4e);
  2. DR limited to 100 % as ISO 7730 requires;
  3. the ISO saturation-pressure constant 16.6536 (v2606 has 16.6563 โ€” negligible, โ‰ค 0.002 PMV);
  4. optional local mean radiant temperature from a radiation model’s incident radiation G (TradField G;) โ€” available, but not used in this post (see “What didn’t work”);
  5. output fields with an _ISO suffix, so it runs next to the stock function object.

comfortISO reproduces ISO 7730 eq. (6) within 5ยท10โปโต % DR at all 48 points. Source, diff and an example case are in the case files download at the end of the post.

Case 2 โ€” validation on a real room: the Yuan et al. (1999) office

Case 2 setup: displacement-ventilated two-person office

The experiment. Yuan, Chen, Glicksman, Hu and Yang (MIT, ASHRAE RP-949) measured air temperature, air speed and velocity fluctuation with omnidirectional hot-sphere anemometers on 9 poles in a 5.16 ร— 3.65 ร— 2.43 m office with displacement ventilation: a perforated wall diffuser (0.53 ร— 1.11 m) supplying 17 ยฐC air at 4 air changes per hour, two seated occupant simulators (75 W each), two PCs (108 W and 173 W), six ceiling lamps (34 W each), two tables and two cabinets; exhaust in the ceiling. Geometry and boundary conditions follow Srebric & Chen (2002). Measured profiles are published only as plots: we read them off Figs. 5 and 7 of the paper on a calibrated grid (reading uncertainty about ยฑ0.02 in ฮธ and ยฑ0.05 in U/us).

The model.

  • Solver: buoyantSimpleFoam (OpenFOAM v2606), Boussinesq air, steady RANS.
  • Turbulence: RNG k-ฮต with wall functions (as in the original CFD study); k-ฯ‰ SST and realizable k-ฮต in case 3.
  • Mesh: Cartesian blockMesh with the furniture cut out (topoSet + subsetMesh), 6 / 3 / 2 cm cells (0.21 / 1.6 / 5.5 M cells).
  • Heat sources: imposed as convective power on each object (externalWallHeatFluxTemperature, mode power).
  • Room surfaces: measured temperatures โ€” side walls 23.3 โ†’ 26.0 ยฐC linearly with height, window 27.7 ยฐC, window wall 25.4 ยฐC, floor 24.0 ยฐC and ceiling 25.6 ยฐC (the last two read from the near-surface air temperatures, an assumption).
  • Comfort: clo 0.5, met 1.2, RH 50 % (summer office). Mean radiant temperature for comfortISO: 24.9 ยฐC, the area-weighted mean of the measured room surfaces. The stock comfort uses its own wall mean.
  • Occupied zone (seated): 0.5 m from walls, 1 m from the window wall, 0.1โ€“1.1 m high.
  • Convergence: 5,000 / 10,000 / 12,000 SIMPLE iterations on the 6 / 3 / 2 cm meshes. Steady RANS of a buoyant room never settles completely: over the last 3,000 iterations the monitor-probe temperatures still drift by up to 0.2 K on 3 cm and up to 0.1 K per 2,000 iterations on 2 cm. That is small next to the 3โ€“4 K headโ€“ankle difference and the 0.1โ€“0.2 K gap between meshes in the comfort numbers.

Results.

Case 2: measured vs computed temperature and air speed at the 9 poles
MeshCellsMean |ฮ”ฮธ|, 9 polesMean |ฮ”U|/usExhaust temperature
6 cm0.21 M0.1350.2228.5 ยฐC
3 cm1.6 M0.1230.1928.1 ยฐC
2 cm5.5 M0.1190.1928.2 ยฐC
Measuredโ€”โ€”โ€”26.7 ยฐC

Going from 3 cm to 2 cm (3.4ร— the cells, 5ร— the cost) changes the pole agreement only from 0.123 to 0.119 in ฮธ, the occupied-zone PMV by 0.01 and the mean headโ€“ankle temperature difference from 3.85 K to 3.64 K: 3 cm is enough for this room, 6 cm is usable for screening.

The model reproduces what matters for comfort in a displacement-ventilated room: the cold layer that spreads over the floor from the diffuser, the thermal stratification, and the low air speeds above 0.3 m. Like most RANS studies of this office, it puts the lower zone too cold and the upper zone too warm (ฮธ > 1 near the ceiling) and the exhaust 1.4โ€“1.8 K too warm; with convective-only heat sources the object surfaces radiate nothing, so the heat that in reality reaches the floor by radiation is missing from the lower zone.

Comfort in the occupied zone (3 cm, RNG k-ฮต).

Case 2: ISO 7730 comfort maps, displacement ventilation
Index (occupied zone)Stock comfortcomfortISO
Mean air temperature22.3 ยฐC
Mean PMV+0.16โˆ’0.37
Occupied volume in PMV category B (|PMV| < 0.5)96 %68 %
Occupied volume with DR < 10 % (cat. A)99.5 %98.4 %
Headโ€“ankle air-temperature difference, mean / max3.85 K / 6.5 K
Columns meeting cat. C (< 4 K) / cat. B (< 3 K)68 % / 3 %

Three lessons from this room:

  1. Draught is not the problem in displacement ventilation โ€” the air is slow above the floor layer, and both function objects agree that DR is low. The correct DR is a little higher in the floor jet (category B instead of A in front of the diffuser, see the ankle-level maps).
  2. Vertical stratification is the problem. With 3.85 K between head and ankles on average, only two thirds of the seated occupied zone meets category C. This is the classic weakness of displacement ventilation at high heat loads, and ISO 7730 has a separate criterion for it that the function object does not compute โ€” we sampled it from the temperature field.
  3. Watch the mean radiant temperature. The stock function object averages the temperature of all wall patches, heated objects included. With heat-flux boundary conditions on coarse grids, the object surfaces run hot (an unresolved natural-convection layer), and the “mean radiant temperature” drags PMV up by about +0.5. In this room that moves the share of the occupied zone in PMV category B from 68 % to 96 %: the same room looks much better than it is. Give Trad explicitly, or compute it from a radiation model.

Case 3 โ€” what changes the answer: turbulence model, mesh and ventilation strategy

Turbulence model (3 cm, displacement).

Case 3: turbulence models at the 9 poles
ModelMean |ฮ”ฮธ|Mean |ฮ”U|/usExhaustPMV (ISO)DR p95Headโ€“ankle ฮ”T
RNG k-ฮต0.1230.1928.1 ยฐCโˆ’0.376.2 %3.85 K
realizable k-ฮต0.1190.2228.0 ยฐCโˆ’0.376.6 %3.79 K
k-ฯ‰ SST0.1260.2528.2 ยฐCโˆ’0.407.3 %3.79 K

The three models agree within the measurement-reading uncertainty on temperature and on every comfort index. The model choice matters far less than getting the DR formula right.

Mixing vs displacement ventilation. Same office, same airflow (4 ACH) and supply temperature (17 ยฐC), but supplied by a high sidewall grille (0.53 ร— 0.15 m, 0.64 m/s) instead of the floor-level diffuser.

Draught rate, mixing ventilation: stock vs ISO, height sweep
Case 3: ISO 7730 comfort maps, mixing ventilation
Occupied zoneDisplacementMixing
Mean air temperature22.3 ยฐC23.6 ยฐC
Headโ€“ankle ฮ”T, mean (cat. A share)3.85 K (1 %)0.83 K (98 %)
Mean PMV (ISO)โˆ’0.37โˆ’0.19
Volume with DR > 20 %: stock / ISO0.2 % / 0.3 %1.3 % / 6.7 %
Volume with DR > 30 %: stock / ISO0.0 % / 0.1 %0.0 % / 3.2 %
DR 95th percentile: stock / ISO4.4 % / 6.2 %11.9 % / 23.9 %

Mixing ventilation removes the stratification problem but brings draught: the cold jet from the grille falls and lands on the floor next to occupant 1. That is exactly where the stock DR is most wrong: it reports the area as category B, the ISO formula puts its core outside category C. A designer using the stock function object would sign off a layout that fails the standard.

What didn’t work (and why it is in the post)

  • exprFixedValue syntax. In v2606 the expression goes in valueExpr "..." (older examples use expression), and the solver warns that the BC is deprecated in favour of uniformFixedValue with an expression Function1. It still works; we kept it for the linear wall-temperature profile.
  • A trapped air cell. Cutting the furniture out of a Cartesian mesh left one isolated air cell; checkMesh reported 2 regions, and buoyantSimpleFoam stopped with a floating-point exception in the DILU preconditioner at the first energy solve (a cell surrounded by heat-flux and zero-gradient walls has a zero diagonal). Fix: keep only the region connected to the room (regionToCell) before subsetMesh.
  • Radiation (fvDOM, 36 directions) with heat-flux objects. Diverged at iteration 2: on a 3โ€“6 cm grid the natural-convection layer on the heated objects is not resolved, the coupled flux and radiation balance on the objects is unstable and the energy solve broke down with negative temperatures (Negative initial temperature T0). With measured room-surface temperatures the standard engineering approach โ€” convective heat input, prescribed surfaces, radiant temperature from those surfaces โ€” is consistent and stable. A radiation-coupled comfort map needs near-wall resolution (or conjugate heat transfer in the objects); that is a topic for another post.

Run times and costs

All runs on cloudHPC, OpenFOAM v2606, hypercore spot instances (the tutorial-fetch job on 2 vCPU highcpu).

RunvCPUCellsIterationsBilled cost
Fetching references and the tutorial (2 runs)2โ€”โ€”โ‚ฌ0.03
Case 1, verification (2 runs)2160 evaluationsโ‚ฌ0.08
Sizing and debugging (5 runs)40.2 Mโ‰ค 300โ‚ฌ0.25
Displacement, 6 cm, RNG k-ฮต40.21 M5,000โ‚ฌ0.13
Displacement, 3 cm, RNG k-ฮต321.6 M10,000โ‚ฌ3.41
Displacement, 3 cm, k-ฯ‰ SST321.6 M10,000โ‚ฌ3.86
Displacement, 3 cm, realizable k-ฮต321.6 M10,000โ‚ฌ3.70
Mixing, 3 cm, RNG k-ฮต321.6 M10,000โ‚ฌ3.74
Displacement, 2 cm, RNG k-ฮต965.5 M12,000โ‚ฌ18.05
Total (19 runs)โ‚ฌ33.26

Solver speed: 0.12 s per iteration for 0.21 M cells on 4 cores, 0.24 s for 1.6 M cells on 32 cores and 0.46 s for 5.5 M cells on 96 cores (about 50,000โ€“57,000 cells per core). The 3 cm runs were split in two (0โ€“5,000 and 5,000โ€“10,000 iterations), so each paid the machine start-up and upload twice; a single 10,000-iteration run would save only about โ‚ฌ0.5 per case (about โ‚ฌ2.9 instead of โ‚ฌ3.4).

How to run this on cloudHPC

  1. Download the case folder from the link below and upload it as it is: the comfortISO/ sub-folder is compiled automatically (cloudHPC compiles every sub-folder with a Make/ directory before the run), and the Allrun builds the mesh, runs the solver in parallel and writes VTK for post-processing.
  2. Choose openFoam-v2606 on hypercore, about 50,000 cells per core (4 vCPU for 6 cm, 32 vCPU for 3 cm). Spot instances are fine: the case restarts from the latest time.
  3. Set clothing, metabolic rate, humidity and Trad in system/controlDict. Do not rely on the wall-mean radiant temperature if your heat sources are wall patches.
  4. Check checkMesh for Number of regions: 1 after cutting objects out of a mesh.
  5. Run long enough: buoyancy-driven rooms converge slowly. On 1.6 M cells we needed about 7,000โ€“10,000 SIMPLE iterations; watch probes and the exhaust temperature, not only residuals.
  6. Post-process the comfort fields (PMV_ISO, PPD_ISO, DR_ISO, Tu_ISO) with ParaView, or with the Python scripts in the download (occupied-zone categories, headโ€“ankle temperature difference, pole profiles).

Download: case files, comfortISO source and post-processing scripts (ZIP)

FAQ

Is the OpenFOAM comfort function object correct? PMV and PPD are: they match the ISO 7730 Table D.1 examples within 0.003 PMV. The draught rate is not, in ESI OpenFOAM v2606 (the version we tested) and in openfoam.org releases up to OpenFOAM-14 (fixed in OpenFOAM-dev on 21 Nov 2026): the turbulence-intensity term is lost (integer division 2/3) and Tu is not in %. DR comes out as if the air were perfectly smooth, 32โ€“89 % of the correct value in our tests.

How do I compute the draught rate correctly in OpenFOAM? Use a corrected function object (our comfortISO, or openfoam.org dev after commit d78e9ac4e), or compute DR in post-processing from T, |U| and k: Tu = 100ยทโˆš(2k/3)/|U|, DR = (34 โˆ’ t)(v โˆ’ 0.05)^0.62 (0.37 v Tu + 3.14), with v โ‰ฅ 0.05 m/s and DR โ‰ค 100 %.

Which mean radiant temperature does the comfort function object use? The value of Trad if you set it; otherwise the area-weighted mean temperature of all wall patches, heated objects included. It is one value for the whole room, not a local radiant temperature.

Does ISO 7730:2025 change PMV, PPD or DR? Not for PMV and PPD: the equations are identical (the pythermalcomfort library implements both editions with the same code). The 2025 edition corrected the calculation program in Annex D. We have not compared the DR clause line by line with the 2025 text.

Which turbulence model should I use for thermal comfort CFD? In our office, RNG k-ฮต, realizable k-ฮต and k-ฯ‰ SST gave the same comfort result within 0.03 PMV and 0.1 K of headโ€“ankle temperature difference. Mesh resolution, boundary conditions and a correct DR formula matter more.

Related posts

References

  1. EN ISO 7730:2005 / EN ISO 7730:2025, Ergonomics of the thermal environment โ€” Analytical determination and interpretation of thermal comfort using calculation of the PMV and PPD indices and local thermal comfort criteria. ISO, Geneva.
  2. P. O. Fanger, A. K. Melikov, H. Hanzawa, J. Ring (1988), Air turbulence and sensation of draught, Energy and Buildings 12(1), 21โ€“39. https://doi.org/10.1016/0378-7788(88)90053-9
  3. X. Yuan, Q. Chen, L. R. Glicksman, Y. Hu, X. Yang (1999), Measurements and computations of room airflow with displacement ventilation, ASHRAE Transactions 105(1), paper CH-99-6-1 (RP-949). https://www.aivc.org/sites/default/files/airbase_11901.pdf
  4. J. Srebric, Q. Chen (2002), An example of verification, validation, and reporting of indoor environment CFD analyses (ASHRAE RP-1133), ASHRAE Transactions 108(2). https://engineering.purdue.edu/~yanchen/paper/2002-9.pdf
  5. F. Tartarini, S. Schiavon (2020), pythermalcomfort: A Python package for thermal comfort research, SoftwareX 12, 100578. https://doi.org/10.1016/j.softx.2020.100578
  6. OpenFOAM v2112 release notes โ€” comfort function object. https://www.openfoam.com/news/main-news/openfoam-v2112/post-processing#comfort
  7. OpenFOAM-dev commit d78e9ac4e (21 Nov 2026), functionObjects::comfort: Corrected turbulence intensity TI (bug 4438). https://github.com/OpenFOAM/OpenFOAM-dev/commit/d78e9ac4e
  8. EN 16798-1:2019, Energy performance of buildings โ€” Ventilation for buildings โ€” Part 1 (occupied zone definition).

CloudHPC is a HPC provider to run engineering simulations on the cloud. CloudHPC provides from 1 to 224 vCPUs for each process in several configuration of HPC infrastructure - both multi-thread and multi-core. Current software ranges includes several CAE, CFD, FEA, FEM software among which OpenFOAM, FDS, Blender and several others.

New users benefit of a FREE trial of 300 vCPU/Hours to be used on the platform in order to test the platform, all each features and verify if it is suitable for their needs