00001
00027 #ifndef Roth1972_H
00028 #define Roth1972_H
00029
00030 #include <stdlib.h>
00031 #include <math.h>
00032
00033 #include "Err.h"
00034 #include "Units.h"
00035 #include "RothFuelModel.h"
00036 #include "RothPipeline.h"
00037
00038
00039
00040
00041
00042
00043
00044
00045 #define ROTH_1972_PI (3.141592654)
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060 #define ROTH_1972_DEG_TO_RAD(deg) (((deg) * 2.0 * ROTH_1972_PI) / 360.0)
00061
00062
00063 #define ROTH_1972_RAD_TO_DEG(rad) (((rad) * 360.0) / (2.0 * ROTH_1972_PI))
00064
00065
00066
00067
00068
00069
00070
00087 int Roth1972FireSpreadSetFuelBed(RothFuelModel * rfm);
00088
00113 int Roth1972FireSpreadNoWindNoSlope(RothFuelModel * rfm, double d1hfm, double d10hfm, double d100hfm,
00114 double lhfm, double lwfm);
00115
00138 int Roth1972FireSpreadWindSlopeMax(RothFuelModel * rfm, double wnd_fpm, double wnd_az,
00139 double slp_pcnt, double asp);
00140
00159 int Roth1972FireSpreadGetAtAzimuth(RothFuelModel * rfm, double az);
00160
00161 #endif Roth1972_H