compensates for delta, even if not perfect
[notebooks.git] / ellipse.tex
blob8210dd6567315259e051ab617057db8c13c2213e
1 \documentclass{article}
2 \usepackage{ametsoc}
3 \usepackage{amsfonts}
4 \usepackage{amssymb}
5 \usepackage{graphicx}
6 \bibliographystyle{ametsoc}
7 \begin{document}
8 \section{Background}
9 Richards (1990) and FARSITE (Finney, 2000) assume that fire spreads to an ellipsoid with axes $a$ and $b$, with the fire starting from a point at distance $c$ on the $b$-axis from the center of the ellipse. The $b$ axis is the direction of the maximal Rate of Spread (ROS), which equals to $b+c$, and is computed from the Rothermel formula. Richards (1990) considers only the wind and zero slope, then the direction of the maximal rate of spread is the wind direction. FARSITE computes a ``resultant'' vector from the slope and wind vectors, which it then substitutes into the Rothermel formula. To find and reproducw how is the computation of the slope and of the resultant vector done is the heart of the project.
11 When the fire propagates from a fireline, the ellipsoid method considers it as starting from starting points on the fireline, and the new fireline is then the envelope of the ellipsoids on the side in the propagation direction.
13 WRF-SFIRE works with ROS in the direction of the normal of the fireline, and substitutes in the Rothermel formula the wind speed projected on the normal (i.e., multiplied by the cosine of the wind vector and the normal vector), and the slope (i.e, slope of the gradient of the terrain height) also projected on the normal (i.e., multiplied by the cosine of the slope direction in the horizontal plane and the normal vector).
15 To compare the fire propagation in WRF-SFIRE and FARSITE, we will find the ROS in the direction normal to the fireline, which is equivalent to what FARSITE does.
16 \section{Methods}
17 \subsection{Computing ROS in the normal direction from the ellipsoid method}
18 Write the equation of an ellipse with horizontal axis $a$ and vertical axis
19 $b$ in parametric form
21 \left[
22 \begin{array}
23 [c]{c}
24 x\\
26 \end{array}
27 \right] =\left[
28 \begin{array}
29 [c]{c}
30 a\cos s\\
31 b\sin s
32 \end{array}
33 \right] .
35 Rotate by the angle $\theta\in(-\pi,\pi]$ clockwise:
37 \left[
38 \begin{array}
39 [c]{c}
40 x\\
42 \end{array}
43 \right] =\left[
44 \begin{array}
45 [c]{cc}
46 \cos\theta & \sin\theta\\
47 -\sin\theta & \cos\theta
48 \end{array}
49 \right] \left[
50 \begin{array}
51 [c]{c}
52 a\cos s\\
53 b\sin s
54 \end{array}
55 \right] .
57 Multiplying out we get
59 \left[
60 \begin{array}
61 [c]{c}
62 x\\
64 \end{array}
65 \right] =\left[
66 \begin{array}
67 [c]{c}
68 a\cos\theta\cos s+b\sin\theta\sin s\\
69 -a\sin\theta\cos s+b\cos\theta\sin s
70 \end{array}
71 \right] .
73 Move the center vertically so that the point at distance $c$ from the bottom
74 vertex on the $b$ axis is at $y=0$,
76 \left[
77 \begin{array}
78 [c]{c}
79 x\\
81 \end{array}
82 \right] =\left[
83 \begin{array}
84 [c]{c}
85 a\cos\theta\cos s+b\sin\theta\sin s\\
86 -a\sin\theta\cos s+b\cos\theta\sin s+(b-c)\cos\theta
87 \end{array}
88 \right]
90 This is the equation of the ellipse from the figure. The rate of spread in the
91 direction of the normal equivalent to the ellipse is the distance of the
92 horizontal lines at $y=0$ and tangent to the top of the rotated shifted
93 ellipse
95 R=\max_{s}-a\sin\theta\cos s+b\cos\theta\sin s+(b-c)\cos\theta
97 The find the highest point, set
99 y^{\prime}\left( s\right) =\frac{\partial}{\partial s}\left( -a\sin
100 \theta\cos s+b\cos\theta\sin s+(b-c)\cos\theta\right) =0
102 which gives
104 a\sin\theta\sin s+b\cos\theta\cos s=0
106 We can either divide by $\sin\theta\neq0$,
108 \frac{\sin s}{\cos s}+\frac{b}{a}\frac{\cos\theta}{\sin\theta}=0,
110 and compute $s$ from
112 s=-\arctan\left( \frac{b\cos\theta}{a\sin\theta}\right)
114 Using the arctan2 function in numpy
116 s=-\mathop{arctan2}\left( b\cos\theta,a\sin\theta\right)
118 gives the correct result even for $\sin\theta=0.$ In any case, we get two solutions, $s$
119 and $s+\pi$, substitute in the equation of the ellipse
121 y=-a\sin\theta\cos s+b\cos\theta\sin s+\left( b-c\right) \cos\theta
123 and take the larger value:
125 R=\max\left\{ u,-u\right\} +c\cos\theta,\quad u=-a\sin\theta\cos
126 s+b\cos\theta\sin s.
130 \nocite{Mandel-2009-DAW}
131 \bibliography{
132 /Users/jmandel/daseminar/references/bigdata.bib,
133 /Users/jmandel/daseminar/references/by_Aime.bib,
134 /Users/jmandel/daseminar/references/epi.bib,
135 /Users/jmandel/daseminar/references/extra.bib,
136 /Users/jmandel/daseminar/references/geo.bib,
137 /Users/jmandel/daseminar/references/jm.bib,
138 /Users/jmandel/daseminar/references/ml.bib,
139 /Users/jmandel/daseminar/references/other.bib,
140 /Users/jmandel/daseminar/references/quad-jm.bib,
141 /Users/jmandel/daseminar/references/slides.bib,
142 /Users/jmandel/daseminar/references/spdes.bib
145 \end{document}