Cell2Fire
A large-scale forest fire simulator.
Loading...
Searching...
No Matches
FuelModelSpain.h
1#ifndef FUELMODELSPAIN
2#define FUELMODELSPAIN
3#include "Cells.h"
4#include "ReadArgs.h"
5#include <iostream>
6#include <math.h>
7#include <stdio.h>
8#include <stdlib.h>
9#include <string.h>
10#include <string>
11#include <unordered_map>
12#include <vector>
13
14/*
15 * Input, Fire, and output structures
16 */
17
18/*
19 Functions
20*/
21// Initialize coefficients
22void initialize_coeff(int scenario);
23
24// Calculate flank fire
25float flankfire_ros_s(float ros, float bros, float lb);
26
27// Calculate rate of spread
28float rate_of_spread_s(inputs* data, fuel_coefs* ptr, main_outs* at);
29
30// Length-to-Breadth ratio
31float l_to_b(float ws);
32
33// BROS
34float backfire_ros_s(main_outs* at, snd_outs* sec);
35
36// Flame length [m])
37float flame_length(inputs* data, fuel_coefs* ptr);
38
39// Angle of the flame w.r.t. horizontal surface (Putnam's)
40float angleFL(inputs* data, fuel_coefs* ptr);
41
42// Transformation from FL to FH using angle
43float flame_height(inputs* data, fuel_coefs* ptr);
44
45// byram intensity
46float byram_intensity(inputs* data, fuel_coefs* ptr);
47
48// Type of fire (Crown = 1, SROS = 0)
49bool fire_type(inputs* data, fuel_coefs* ptr);
50
51// CROS adjustements
52float rate_of_spread10(inputs* data, arguments* args);
53
54bool checkActive(inputs* data, main_outs* at);
55float crownfractionburn(inputs* data, main_outs* at);
56float final_rate_of_spread10(inputs* data);
57// Back fire with CROS
58float backfire_ros10_s(fire_struc* hptr, snd_outs* sec);
59
60// Slope effect
61float slope_effect(inputs* data);
62
63// Main function to populate spread outputs based on inputs provided from main
64// class
65void calculate_s(inputs* data,
66 fuel_coefs* ptr,
67 arguments* args,
68 main_outs* at,
69 snd_outs* sec,
70 fire_struc* hptr,
71 fire_struc* fptr,
72 fire_struc* bptr,
73 bool& activeCrown);
74
75void determine_destiny_metrics_s(inputs* data, fuel_coefs* ptr, arguments* args, main_outs* at);
76
77#endif
Definition ReadArgs.h:16
Definition Cells.h:56
Definition Cells.h:38
Definition Cells.h:29
Definition Cells.h:48
Definition Cells.h:63