From f719d858933aa1aebbf39f928efb77c3187fb022 Mon Sep 17 00:00:00 2001 From: Antonio Leblanc Date: Thu, 19 Nov 2026 23:51:19 -0300 Subject: [PATCH 1/3] wildfire_ROS_models: Rothermel wind factor as in Andrews 2018 table 3 Rothermel1972 used C = 7.74 and (beta/beta_op)**E; RothermelAndrews2018 used exp(-0.1333 sigma^0.55). Andrews 2018 (table 3) and Rothermel 1972 (eqs. 47-48) give C = 7.47 exp(-0.133 sigma^0.55) and (beta/beta_op)**-E. Test against Andrews 2018 table 17, row 1 (81.6 ft/min): Rothermel1972 gave 59.0, RothermelAndrews2018 80.2; both now 81.6. --- .../tests/test_published_values.py | 34 +++++++++++++++++++ .../wildfire_ROS_models/Rothermel1972.py | 4 +-- .../RothermelAndrews2018.py | 2 +- 3 files changed, 37 insertions(+), 3 deletions(-) create mode 100644 tools/wildfire_ROS_models/tests/test_published_values.py diff --git a/tools/wildfire_ROS_models/tests/test_published_values.py b/tools/wildfire_ROS_models/tests/test_published_values.py new file mode 100644 index 00000000..d43f898f --- /dev/null +++ b/tools/wildfire_ROS_models/tests/test_published_values.py @@ -0,0 +1,34 @@ +"""Rate of spread against values published in Andrews (2018), RMRS-GTR-371. + +Table 17, first row: one dead 1-h class, 2 ton/ac, SAV 2500 ft2/ft3, depth 1 ft, +moisture of extinction 20 %, fuel moisture 5 %, midflame wind 5 mi/h, no slope. +Published: wind factor 17.8, rate of spread 81.6 ft/min. Heat content, particle +density and mineral content are the standard values of Andrews (2018), table 5. +""" + +import pytest + +from wildfire_ROS_models.model_set import model_parameters +from wildfire_ROS_models.Rothermel1972 import Rothermel1972 +from wildfire_ROS_models.RothermelAndrews2018 import RothermelAndrews2018 + +TABLE_17_ROW_1 = { + "SAVcar_ftinv": 2500, + "fl1h_tac": 2.0, + "fd_ft": 1.0, + "Dme_r": 0.20, + "mdOnDry1h_r": 0.05, + "wind_miph": 5, + "slope_deg": 0, + "H_BTUlb": 8000, + "fuelDens_lbft3": 32, + "totMineral_r": 0.0555, + "effectMineral_r": 0.01, +} +PUBLISHED_ROS_FTMIN = 81.6 + + +@pytest.mark.parametrize("model", [Rothermel1972, RothermelAndrews2018]) +def test_ros_andrews2018_table17(model): + ros = model(model_parameters(TABLE_17_ROW_1))["ROS_ftmin"] + assert ros == pytest.approx(PUBLISHED_ROS_FTMIN, rel=0.005) diff --git a/tools/wildfire_ROS_models/wildfire_ROS_models/Rothermel1972.py b/tools/wildfire_ROS_models/wildfire_ROS_models/Rothermel1972.py index 77974f4c..69da10d2 100644 --- a/tools/wildfire_ROS_models/wildfire_ROS_models/Rothermel1972.py +++ b/tools/wildfire_ROS_models/wildfire_ROS_models/Rothermel1972.py @@ -73,10 +73,10 @@ def Rothermel1972(Z, print_calculus=False): slope_factor = 5.275 * packing_ratio**-0.3 * tan_slope**2 - C = 7.74 * np.exp(-0.133 * sa_vol_ratio**0.55) + C = 7.47 * np.exp(-0.133 * sa_vol_ratio**0.55) B = 0.02526 * sa_vol_ratio**0.54 E = 0.715 * np.exp(sa_vol_ratio * -3.59e-4) - wind_factor = C * wind**B * (packing_ratio / optimal_packing) ** E + wind_factor = C * wind**B * (packing_ratio / optimal_packing) ** -E propagating_flux = (192 + 0.2595 * sa_vol_ratio) ** -1 * np.exp( (0.792 + 0.681 * sa_vol_ratio**0.5) * (packing_ratio + 0.1) diff --git a/tools/wildfire_ROS_models/wildfire_ROS_models/RothermelAndrews2018.py b/tools/wildfire_ROS_models/wildfire_ROS_models/RothermelAndrews2018.py index edb20a86..2192c9c6 100644 --- a/tools/wildfire_ROS_models/wildfire_ROS_models/RothermelAndrews2018.py +++ b/tools/wildfire_ROS_models/wildfire_ROS_models/RothermelAndrews2018.py @@ -146,7 +146,7 @@ def RothermelAndrews2018(Z, print_calculus=False): ) # Propogating flux ratio ## Wind Coefficient B = 0.02526 * math.pow(fpsa, 0.54) - C = 7.47 * math.exp(-0.1333 * math.pow(fpsa, 0.55)) + C = 7.47 * math.exp(-0.133 * math.pow(fpsa, 0.55)) E = 0.715 * math.exp(-3.59 * 10**-4 * fpsa) # WC = C * wv**B * math.pow(Beta / Beta_op, -E) #wind coefficient if wv < 0: # wind against the front counts as no wind, as in ForeFire From ecd3666fb8fa93ab51682f15c72b67390fe41f12 Mon Sep 17 00:00:00 2001 From: Antonio Leblanc Date: Thu, 19 Nov 2026 23:51:20 -0300 Subject: [PATCH 2/3] RothermelAndrews2018: wind factor C with 0.133, as in Andrews 2018 table 3 Was 0.1333. About -1.8% rate of spread at 5 mi/h on Andrews 2018 table 17, row 1. --- src/propagation/RothermelAndrews2018.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/propagation/RothermelAndrews2018.cpp b/src/propagation/RothermelAndrews2018.cpp index 926f6756..0ac26d13 100644 --- a/src/propagation/RothermelAndrews2018.cpp +++ b/src/propagation/RothermelAndrews2018.cpp @@ -158,7 +158,7 @@ double RothermelAndrews2018::getSpeed(double* valueOf){ double PFR = pow(192.0 + 0.2595 * fpsa, -1) * exp((0.792 + 0.681 * pow(fpsa, 0.5)) * (Beta + 0.1)); // Propogating flux ratio // Wind Coefficien t double B = 0.02526 * pow(fpsa, 0.54); - double C = 7.47 * exp(-0.1333 * pow(fpsa, 0.55)); + double C = 7.47 * exp(-0.133 * pow(fpsa, 0.55)); double E = 0.715 * exp(-3.59 * pow(10, -4) * fpsa); if (wv > (0.9 * RI)) wv = 0.9 * RI; double WC = (C * pow(wv, B)) * pow((Beta / Beta_op), (-E)); From 6f2968ab06dc3a313c820e4617b79fe9a31557b6 Mon Sep 17 00:00:00 2001 From: Antonio Leblanc Date: Fri, 20 Nov 2026 00:37:52 -0300 Subject: [PATCH 3/3] CHANGELOG: Rothermel wind factor (#300) --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 28bffa80..20f1fa60 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ Entries below v2.5.0 were reconstructed from release notes and commit history. ### Changes results +- RothermelAndrews2018 wind factor uses 0.133 as in Andrews 2018 (table 3): about 2% faster with wind. The `wildfire_ROS_models` Rothermel models match Andrews 2018 table 17. ([#300]) - Farsite reads the wind in m/s and the slope as a tangent, upslope only: about 5× more wind effect and 4× less slope effect on fuel model 1. Retune old settings. ([#242]) - Farsite matches the FARSITE reference (mbedward/farsite) at the flanks, the back and on slopes; uphill up to a third faster at 30°. ([#269], [#270]) - Time-varying data layers interpolate forwards, past 24 h too. ([#235]) @@ -241,4 +242,5 @@ repository stays easy to return to. [#283]: https://github.com/forefireAPI/forefire/pull/283 [#284]: https://github.com/forefireAPI/forefire/issues/284 [#285]: https://github.com/forefireAPI/forefire/pull/285 +[#300]: https://github.com/forefireAPI/forefire/pull/300 [#245]: https://github.com/forefireAPI/forefire/issues/245