You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Sealed compartment gains mass once the lower layer reaches its minimum thickness (fire never becomes oxygen-limited) #2613
Build: CFAST-8-Beta-439-gd5f3efc24 (Windows). Same behavior in CFAST 7.7.7 (CFAST-7.7.7-0-gb43e74e0f), so this is not a regression; reporting it because I could not find it documented and it does not seem to be covered by the verification cases.
Case (E3b): single room 4 x 4 x 2.5 m, concrete surfaces (0.15 m), no vents and no leakage (sealed). Propane fire (C3H8, 46000 kJ/kg) on the floor, HRR ramped to 50 kW in 10 s and constant to 3000 s. Default LOWER_OXYGEN_LIMIT.
The layer interface reaches 0.10 m at t = 250 s. At t = 200 s the mass balance closes (the mass in the room has increased only by the fuel added). After the interface reaches 0.10 m, the mass in the sealed room keeps increasing beyond the fuel mass:
t (s)
Interface (m)
Total mass, expected = initial + fuel (kg)
Total mass, CFAST (kg)
N2 (kg)
Lower layer O2 (mol/mol)
HRR (kW)
0
2.50
47.82
47.82
36.82
0.2073
0
200
0.16
48.03
48.03
36.82
0.2073
50
1000
0.10
48.90
51.78
39.19
0.2073
50
2000
0.10
49.99
56.25
42.18
0.2073
50
2800
0.10
50.86
59.67
44.55
0.2073
50
(Total mass = sum of all species in masses.csv, both layers. Fuel = integral of HRR / heat of combustion.)
The lower layer keeps ambient composition (0.2073 mol/mol O2) and the fire never becomes oxygen-limited. By 2800 s the fire has burned 3.04 kg of propane, which requires 11.02 kg of O2; the sealed room initially contained 11.00 kg of O2, and 6.86 kg are still present at 2800 s. The pressure rise at 2800 s is 51 368 Pa.
For comparison (E4): the same room with the fire raised to 2.0 m. After 100 s the interface stays between 2.00 and 2.09 m, N2 stays at 36.82 kg (mass conserved), and the fire becomes oxygen-limited as expected: HRR starts to drop at t = 128 s and decays to 0.5 kW at 880 s.
Checks:
CFAST 7.7.7 gives the same results (max relative difference 0.017 % in the variables above).
The same input opened, saved and run from CEdit 8 (439) gives identical results.
The sealed-compartment cases in the V&V Guide check pressure and temperature (Sec. 3.1.4, 3.1.5) and product masses for a 1 kW fire (Sec. 3.2.1); none of them checks the total mass or the oxygen balance once the lower layer has reached its minimum thickness.
Attached: CFAST8_439_sealed_room_mass_gain.zip (inputs; .out, compartments.csv and masses.csv for E3b and E4 in 439 and 7.7.7; the CEdit-saved E3b and its output).
I am guessing that CFAST is still computing entrainment from the lower layer when it is at its mininum height which would explain the increasing N2 mass. I'll look into it.
The fire entrainment is limited in the fire routine by computed entrainment - mininum lower volume. The lower volume in that routine is set by vminfrac; however, the actual volume is somehow being limited to a larger volume somewhere else in the code so the entrainment check is passing and entrainment isn't stopping. If I go into the source and set vminfrac to a value larger than where the layer is getting constrained things get much better. The entraiment routine stops entrainment; however, the N2 error is still there but it is much less (6 % excess). One problem is figuring out where else in the code the layer height is being constrained and then still somehow an issue with mass conservation.
The issue was the radiation model. It had a check for the layer height getting small that was using a different, larger, criterion than vminfrac. It then reset the layer to that height. Since the entrainment check used a smaller layer height it kept allowing entrainment.
Testing a fix this with the V&V suite is resulting in changes to the validation metrics. Since this does change inccorect behavior when the layer gets near the floor, this isn't surprising. However, will need to look into this before wrapping this up.
Everything looks ok in terms of V&V. I did not change the comparison file for the CI check so that other dev team members can see the impact of the changes made (minor shifts in sigma and bias by ~0.01).
Activity
drjfloyd commentedon Oct 25, 2026
I am guessing that CFAST is still computing entrainment from the lower layer when it is at its mininum height which would explain the increasing N2 mass. I'll look into it.
drjfloyd commentedon Oct 25, 2026
The fire entrainment is limited in the fire routine by computed entrainment - mininum lower volume. The lower volume in that routine is set by vminfrac; however, the actual volume is somehow being limited to a larger volume somewhere else in the code so the entrainment check is passing and entrainment isn't stopping. If I go into the source and set vminfrac to a value larger than where the layer is getting constrained things get much better. The entraiment routine stops entrainment; however, the N2 error is still there but it is much less (6 % excess). One problem is figuring out where else in the code the layer height is being constrained and then still somehow an issue with mass conservation.
drjfloyd commentedon Oct 25, 2026
The issue was the radiation model. It had a check for the layer height getting small that was using a different, larger, criterion than vminfrac. It then reset the layer to that height. Since the entrainment check used a smaller layer height it kept allowing entrainment.
Testing a fix this with the V&V suite is resulting in changes to the validation metrics. Since this does change inccorect behavior when the layer gets near the floor, this isn't surprising. However, will need to look into this before wrapping this up.
CFAST Source: fix entrainment at min layer height Issue firemodels#2613
drjfloyd commentedon Oct 25, 2026
Everything looks ok in terms of V&V. I did not change the comparison file for the CI check so that other dev team members can see the impact of the changes made (minor shifts in sigma and bias by ~0.01).
Merge pull request #2615 from drjfloyd/master
FedericoLatosinski commentedon Oct 29, 2026
Fix confirmed in CFAST-8-Beta-474
CFAST8_474_sealed_room_verified.zip
Closing the issue.