Cell2Fire
A large-scale forest fire simulator.
Loading...
Searching...
No Matches
FuelModelKitral.h
1#ifndef FUELMODELKITRAL
2#define FUELMODELKITRAL
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 Functions
16*/
17// Initialize coefficients
18void setup_const();
19
20// Calculate flank fire
21float flankfire_ros_k(float ros, float bros, float lb);
22
23// Calculate rate of spread
24float rate_of_spread_k(inputs* data, fuel_coefs* ptr, main_outs* at);
25
26// Length-to-Breadth ratio
27float l_to_b(float ws, fuel_coefs*);
28
29// BROS
30float backfire_ros_k(main_outs* at, snd_outs* sec);
31
32// Flame length [m])
33float flame_length(inputs* data, main_outs* at);
34
35// Angle of the flame w.r.t. horizontal surface (Putnam's)
36float angleFL(inputs* data, main_outs* at);
37
38// Transformation from FL to FH using angle
39float flame_height(inputs* data, main_outs* at);
40
41// byram intensity
42float byram_intensity(inputs* data, main_outs* at);
43
44// Type of fire (Crown = 1, SROS = 0)
45bool fire_type(inputs* data, main_outs* atr, int FMC);
46// Active crown
47bool checkActive(inputs* data, main_outs* at, int FMC);
48// CROS adjustements
49float final_rate_of_spreadPL04(main_outs* at);
50float active_rate_of_spreadPL04(inputs* data,
51 main_outs* at); // En KITRAL SE USA PL04
52float crownfractionburn(inputs* data, main_outs* at, int FMC);
53
54// Back fire with CROS
55float backfire_ros10_k(fire_struc* hptr, snd_outs* sec);
56
57// Slope effect
58float slope_effect(float elev_i, float elev_j, int cellsize);
59
60// Main function to populate spread outputs based on inputs provided from main
61// class
62void calculate_k(inputs* data,
63 inputs* head,
64 int cellsize,
65 fuel_coefs* ptr,
66 arguments* args,
67 main_outs* at,
68 snd_outs* sec,
69 fire_struc* hptr,
70 fire_struc* fptr,
71 fire_struc* bptr,
72 bool& activeCrown);
73
74void determine_destiny_metrics_k(inputs* data, fuel_coefs* ptr, arguments* args, main_outs* at);
75
76#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