7#include "FireWeather.h"
11static vector<const wx::FwiWeather*>* make_constant_weather(
const wx::Dc& dc,
16 static constexpr wx::Temperature TEMP(20.0);
17 static constexpr wx::RelativeHumidity RH(30.0);
18 static constexpr wx::Precipitation PREC(0.0);
19 const auto bui = wx::Bui(dmc, dc);
20 auto wx =
new vector<const wx::FwiWeather*>{
static_cast<size_t>(YEAR_HOURS)};
21 std::generate(wx->begin(),
23 [&wind, &ffmc, &dmc, &dc, &bui]() {
24 return make_unique<wx::FwiWeather>(
32 wx::Isi(wind.speed(), ffmc),
34 wx::Fwi(wx::Isi(wind.speed(), ffmc), bui))
75 ConstantWeather(
const set<const fuel::FuelType*>& used_fuels,
84 make_constant_weather(dc, dmc, ffmc, wind))
An FBP fuel type.
Definition FuelType.h:55
A FireWeather stream with the same value for every date and time.
Definition ConstantWeather.h:44
ConstantWeather(const fuel::FuelType *fuel, const Day start_date, const wx::Dc &dc, const wx::Dmc &dmc, const wx::Ffmc &ffmc, const wx::Wind &wind)
A Constant weather stream with only one possible fuel.
Definition ConstantWeather.h:61
Drought Code value.
Definition FWI.h:73
Duff Moisture Code value.
Definition FWI.h:43
Fine Fuel Moisture Code value.
Definition FWI.h:15
A stream of weather that gets used by a Scenario every Iteration.
Definition FireWeather.h:29
FireWeather(FireWeather &&rhs)=default
Move constructor.
Wind with a Speed and Direction.
Definition Weather.h:139