-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsolver_update.tex
More file actions
99 lines (68 loc) · 3.19 KB
/
solver_update.tex
File metadata and controls
99 lines (68 loc) · 3.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
\section*{Stencil: r_2nd_order_001}
\[
k_1^{r_2nd_order_001} = \frac{ - dr^{2} \operatorname{bigl}{\left(-\,\,f(r - h, t) + 1 \right)} + dr^{2} \operatorname{bigl}{\left(-\,\,f(r + h, t) + 1 \right)} + 4\,d\theta^{2} h r + 4\,h\,r \sin^{2}{\left(d\phi^{2} \theta \right)}}{2 h}
\]
\[
k_2^{r_2nd_order_001} = F_{r_2nd_order_001}\left(X^n + \frac{\Delta t}{2} k_1\right)
\]
\[
k_3^{r_2nd_order_001} = F_{r_2nd_order_001}\left(X^n + \frac{\Delta t}{2} k_2\right)
\]
\[
k_4^{r_2nd_order_001} = F_{r_2nd_order_001}\left(X^n + \Delta t \, k_3\right)
\]
\[
X^{n+1} = X^n + \frac{\Delta t}{6} \left(k_1^{r_2nd_order_001} + 2k_2^{r_2nd_order_001} + 2k_3^{r_2nd_order_001} + k_4^{r_2nd_order_001}\right)
\]
\section*{Stencil: r_2nd_order_005}
% Placeholder stencil - no finite difference approximation available
\section*{Stencil: r_4th_order_002}
\[
k_1^{r_4th_order_002} = \frac{dr^{2} \operatorname{bigl}{\left(-\,\,f(r - 2h, t) + 1 \right)} - 8 dr^{2} \operatorname{bigl}{\left(-\,\,f(r - h, t) + 1 \right)} + 8 dr^{2} \operatorname{bigl}{\left(-\,\,f(r + h, t) + 1 \right)} - dr^{2} \operatorname{bigl}{\left(-\,\,f(r + 2h, t) + 1 \right)} + 24\,d\theta^{2} h r + 24\,h\,r \sin^{2}{\left(d\phi^{2} \theta \right)}}{12 h}
\]
\[
k_2^{r_4th_order_002} = F_{r_4th_order_002}\left(X^n + \frac{\Delta t}{2} k_1\right)
\]
\[
k_3^{r_4th_order_002} = F_{r_4th_order_002}\left(X^n + \frac{\Delta t}{2} k_2\right)
\]
\[
k_4^{r_4th_order_002} = F_{r_4th_order_002}\left(X^n + \Delta t \, k_3\right)
\]
\[
X^{n+1} = X^n + \frac{\Delta t}{6} \left(k_1^{r_4th_order_002} + 2k_2^{r_4th_order_002} + 2k_3^{r_4th_order_002} + k_4^{r_4th_order_002}\right)
\]
\section*{Stencil: r_4th_order_006}
% Placeholder stencil - no finite difference approximation available
\section*{Stencil: theta_2nd_order_003}
\[
k_1^{theta_2nd_order_003} = \frac{r^{2} \left(-\,\sin^{2}{\left(d\phi^{2} \left(h - \theta\right) \right)} + \sin^{2}{\left(d\phi^{2} \left(h + \theta\right) \right)}\right)}{2 h}
\]
\[
k_2^{theta_2nd_order_003} = F_{theta_2nd_order_003}\left(X^n + \frac{\Delta t}{2} k_1\right)
\]
\[
k_3^{theta_2nd_order_003} = F_{theta_2nd_order_003}\left(X^n + \frac{\Delta t}{2} k_2\right)
\]
\[
k_4^{theta_2nd_order_003} = F_{theta_2nd_order_003}\left(X^n + \Delta t \, k_3\right)
\]
\[
X^{n+1} = X^n + \frac{\Delta t}{6} \left(k_1^{theta_2nd_order_003} + 2k_2^{theta_2nd_order_003} + 2k_3^{theta_2nd_order_003} + k_4^{theta_2nd_order_003}\right)
\]
\section*{Stencil: theta_4th_order_004}
\[
k_1^{theta_4th_order_004} = \frac{r^{2} \left(-\,8 \sin^{2}{\left(d\phi^{2} \left(h - \theta\right) \right)} + 8 \sin^{2}{\left(d\phi^{2} \left(h + \theta\right) \right)} + \sin^{2}{\left(d\phi^{2} \left(2 h - \theta\right) \right)} - \sin^{2}{\left(d\phi^{2} \left(2 h + \theta\right) \right)}\right)}{12 h}
\]
\[
k_2^{theta_4th_order_004} = F_{theta_4th_order_004}\left(X^n + \frac{\Delta t}{2} k_1\right)
\]
\[
k_3^{theta_4th_order_004} = F_{theta_4th_order_004}\left(X^n + \frac{\Delta t}{2} k_2\right)
\]
\[
k_4^{theta_4th_order_004} = F_{theta_4th_order_004}\left(X^n + \Delta t \, k_3\right)
\]
\[
X^{n+1} = X^n + \frac{\Delta t}{6} \left(k_1^{theta_4th_order_004} + 2k_2^{theta_4th_order_004} + 2k_3^{theta_4th_order_004} + k_4^{theta_4th_order_004}\right)
\]