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
22
void
initialize_coeff(
int
scenario);
23
24
// Calculate flank fire
25
float
flankfire_ros_s(
float
ros,
float
bros,
float
lb);
26
27
// Calculate rate of spread
28
float
rate_of_spread_s(
inputs
* data,
fuel_coefs
* ptr,
main_outs
* at);
29
30
// Length-to-Breadth ratio
31
float
l_to_b(
float
ws);
32
33
// BROS
34
float
backfire_ros_s(
main_outs
* at,
snd_outs
* sec);
35
36
// Flame length [m])
37
float
flame_length(
inputs
* data,
fuel_coefs
* ptr);
38
39
// Angle of the flame w.r.t. horizontal surface (Putnam's)
40
float
angleFL(
inputs
* data,
fuel_coefs
* ptr);
41
42
// Transformation from FL to FH using angle
43
float
flame_height(
inputs
* data,
fuel_coefs
* ptr);
44
45
// byram intensity
46
float
byram_intensity(
inputs
* data,
fuel_coefs
* ptr);
47
48
// Type of fire (Crown = 1, SROS = 0)
49
bool
fire_type(
inputs
* data,
fuel_coefs
* ptr);
50
51
// CROS adjustements
52
float
rate_of_spread10(
inputs
* data,
arguments
* args);
53
54
bool
checkActive(
inputs
* data,
main_outs
* at);
55
float
crownfractionburn(
inputs
* data,
main_outs
* at);
56
float
final_rate_of_spread10(
inputs
* data);
57
// Back fire with CROS
58
float
backfire_ros10_s(
fire_struc
* hptr,
snd_outs
* sec);
59
60
// Slope effect
61
float
slope_effect(
inputs
* data);
62
63
// Main function to populate spread outputs based on inputs provided from main
64
// class
65
void
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
75
void
determine_destiny_metrics_s(
inputs
* data,
fuel_coefs
* ptr,
arguments
* args,
main_outs
* at);
76
77
#endif
arguments
Definition
ReadArgs.h:16
fire_struc
Definition
Cells.h:56
fuel_coefs
Definition
Cells.h:38
inputs
Definition
Cells.h:29
main_outs
Definition
Cells.h:48
snd_outs
Definition
Cells.h:63
Cell2Fire
FuelModelSpain.h
Generated by
1.9.8