Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion src/propagation/RothermelAndrews2018.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
34 changes: 34 additions & 0 deletions tools/wildfire_ROS_models/tests/test_published_values.py
Original file line number Diff line number Diff line change
@@ -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)
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down