2#ifndef FS_STANDARDFUEL_H
3#define FS_STANDARDFUEL_H
7#include "LookupTable.h"
13static constexpr MathSize SLOPE_LIMIT_ISI = 0.01;
19[[nodiscard]]
static MathSize calculate_standard_foliar_moisture_fmc(
const MathSize fmc)
noexcept
21 return pow_int<4>(1.5 - 0.00275 * fmc) / (460.0 + 25.9 * fmc) / 0.778 * 1000.0;
26static const LookupTable<&calculate_standard_foliar_moisture_fmc> STANDARD_FOLIAR_MOISTURE_FMC{};
33[[nodiscard]]
static MathSize calculate_standard_foliar_moisture_isi(
const MathSize isi)
noexcept
35 return 60.0 * (1.0 - exp(-0.0497 * isi));
42static const LookupTable<&calculate_standard_foliar_moisture_isi> STANDARD_FOLIAR_MOISTURE_ISI{};
48[[nodiscard]]
static MathSize calculate_standard_length_to_breadth(
const MathSize ws)
noexcept
50 return 1.0 + 8.729 * pow(1.0 - exp(-0.030 * ws), 2.155);
56static const LookupTable<&calculate_standard_length_to_breadth> STANDARD_LENGTH_TO_BREADTH{};
92 const FuelCodeSize&
code,
96 const Duff* duff_ffmc,
117 const FuelCodeSize&
code,
119 const bool can_crown,
134 [[nodiscard]] MathSize
rosBasic(
const MathSize isi)
const noexcept
136 return a() * pow(1.0 - exp(
negB() * isi),
c());
150 [[nodiscard]] MathSize
limitIsf(
const MathSize mu,
const MathSize rsf)
const noexcept
152 return (1.0 /
negB())
154 max(SLOPE_LIMIT_ISI, (rsf > 0.0) ? (1.0 - pow((rsf / (mu *
a())), (1.0 /
c()))) : 1.0)
164 return 0.001 * pow(
cbh(), 1.5) * pow(460.0 + 25.9 * spread.foliarMoisture(), 1.5);
173 return STANDARD_LENGTH_TO_BREADTH(ws);
181 const noexcept override
190 [[nodiscard]] MathSize
buiEffect(
const MathSize bui)
const noexcept override
192 return (0 < bui) ? exp(50.0 *
log_q_.value * ((1.0 / bui) - (1.0 /
bui0()))) : 1.0;
203 [[nodiscard]]
static constexpr MathSize
bui0() noexcept {
return Bui0; }
208 [[nodiscard]] MathSize
cbh()
const override {
return Cbh; }
213 [[nodiscard]] MathSize
cfl()
const override {
return Cfl / 100.0; }
218 [[nodiscard]]
static constexpr MathSize
a() noexcept {
return A; }
223 [[nodiscard]]
static constexpr MathSize
negB() noexcept
232 [[nodiscard]]
static constexpr MathSize
c() noexcept {
return C / 100.0; }
246 return STANDARD_FOLIAR_MOISTURE_ISI(isi) * STANDARD_FOLIAR_MOISTURE_FMC(fmc);
248 [[nodiscard]]
constexpr MathSize logQ() const noexcept {
return log_q_.value; }
255 static_assert(-
negB() < 1);
256 static_assert(
c() < 10 &&
c() > 1);
Base class for all FuelTypes.
Definition FuelType.h:236
constexpr FuelBase(const FuelCodeSize &code, const char *name, const bool can_crown, const Duff *duff_ffmc, const Duff *duff_dmc)
Constructor.
Definition FuelType.h:247
constexpr FuelCodeSize code() const
Code for this fuel type.
Definition FuelType.h:212
constexpr const char * name() const
Name of the fuel.
Definition FuelType.h:207
Information regarding spread within a Cell for a specific Scenario and time.
Definition FireSpread.h:40
A FuelBase made of a standard fuel type.
Definition StandardFuel.h:80
MathSize cbh() const override
Crown base height (m) [ST-X-3 table 8].
Definition StandardFuel.h:208
static constexpr MathSize c() noexcept
Rate of spread parameter c [ST-X-3 table 6].
Definition StandardFuel.h:232
MathSize limitIsf(const MathSize mu, const MathSize rsf) const noexcept
ISI with slope influence and zero wind (ISF) [ST-X-3 eq 41].
Definition StandardFuel.h:150
MathSize criticalSurfaceIntensity(const SpreadInfo &spread) const noexcept override
Critical Surface Fire Intensity (CSI) [ST-X-3 eq 56].
Definition StandardFuel.h:162
MathSize crownConsumption(const MathSize cfb) const noexcept override
Crown Fuel Consumption (CFC) (kg/m^2) [ST-X-3 eq 66].
Definition StandardFuel.h:143
constexpr StandardFuel(const FuelCodeSize &code, const char *name, const bool can_crown, const LogValue log_q, const Duff *duff) noexcept
Constructor.
Definition StandardFuel.h:116
static constexpr MathSize negB() noexcept
Negative of rate of spread parameter b [ST-X-3 table 6].
Definition StandardFuel.h:223
MathSize rosBasic(const MathSize isi) const noexcept
Initial rate of spread (m/min) [ST-X-3 eq 26].
Definition StandardFuel.h:134
MathSize finalRos(const SpreadInfo &, MathSize, MathSize, const MathSize rss) const noexcept override
Final rate of spread (m/min)
Definition StandardFuel.h:180
LogValue log_q_
Log value of q [ST-X-3 table 7].
Definition StandardFuel.h:254
MathSize lengthToBreadth(const MathSize ws) const noexcept override
Length to Breadth ratio [ST-X-3 eq 79].
Definition StandardFuel.h:171
static constexpr MathSize crownRateOfSpread(const MathSize isi, const MathSize fmc) noexcept
Crown fire spread rate (RSC) (m/min) [ST-X-3 eq 64].
Definition StandardFuel.h:241
static constexpr MathSize a() noexcept
Rate of spread parameter a [ST-X-3 table 6].
Definition StandardFuel.h:218
MathSize buiEffect(const MathSize bui) const noexcept override
BUI Effect on surface fire rate of spread [ST-X-3 eq 54].
Definition StandardFuel.h:190
static constexpr MathSize bui0() noexcept
Average Build-up Index for the fuel type [ST-X-3 table 7].
Definition StandardFuel.h:203
MathSize cfl() const override
Crown fuel load (kg/m^2) [ST-X-3 table 8].
Definition StandardFuel.h:213
constexpr StandardFuel(const FuelCodeSize &code, const char *name, const bool can_crown, const LogValue log_q, const Duff *duff_ffmc, const Duff *duff_dmc) noexcept
Constructor.
Definition StandardFuel.h:91
A result of calling log(x) for some value of x, pre-calculated at compile time.
Definition LogValue.h:12
A specific type of Duff layer, and the associated smouldering coefficients.
Definition Duff.h:40