\end{aligned}$$\r
\r
We can solve these two equations simultaneously by treating our\r
-finite elements as vector valued, and interpretting our system of\r
+finite elements as vector valued, and interpreting our system of\r
equations as a single vector-valued PDE. We can handle the nonlinear\r
terms by treating them fully explicitly. If we discretize in time and\r
-Backrange terms, our system of equations becomes \r
+rearrange terms, our system of equations becomes \r
\r
$$\begin{aligned}\r
(1 - kr)U_n + k(1 + \Delta)V_n &= U_{n-1} + kg_1U_{n-1}^2 - kU_{n-1}^3\\\r
\psi_i\r
\end{pmatrix}$$\r
\r
-to get the equation\r
+and then integrate over the domain $\Omega$ to get the equation\r
\r
$$\begin{aligned}\r
- \begin{pmatrix}\r
+ \int_\Omega \begin{pmatrix}\r
\phi_i\\ \r
\psi_i\r
\end{pmatrix}\cdot\begin{pmatrix}\r
\begin{pmatrix}\r
U_n\\\r
V_n\r
- \end{pmatrix} &= \begin{pmatrix}\r
+ \end{pmatrix} &= \int_\Omega \begin{pmatrix}\r
\phi_i\\\r
\psi_i\r
\end{pmatrix}\cdot\begin{pmatrix}\r
\end{pmatrix}\\\r
\end{aligned}$$\r
\r
-and then expand our solution vector in this basis\r
+We can expand our solution vector in this basis\r
\r
$$\begin{aligned}\r
- \sum_j u_j\begin{pmatrix}\r
+ \int_\Omega \sum_j u_j\begin{pmatrix}\r
\phi_i\\\r
\psi_i\r
\end{pmatrix}\cdot\begin{pmatrix}\r
\begin{pmatrix}\r
\phi_j\\\r
\psi_j\r
- \end{pmatrix} &= \begin{pmatrix}\r
+ \end{pmatrix} &= \int_\Omega\begin{pmatrix}\r
\phi_i\\\r
\psi_i\r
\end{pmatrix}\cdot\begin{pmatrix}\r
\end{pmatrix}\r
\end{aligned}$$\r
\r
-The last step is to expand out the matrix multiplication\r
-and dot products, integrate, and apply the divergence theorem to obtain\r
+and finally expand out the matrix multiplication\r
+and dot products, then apply the divergence theorem to obtain\r
a single equation:\r
\r
$$\begin{aligned}\r
- \sum_j u_j [(1 - kr)\phi_i\phi_j + k\phi_i\psi_j - k\nabla\phi_i\nabla\psi_j + \psi_i\phi_j - \nabla\psi_i\nabla\psi_j - \psi_i\psi_j] &= \phi_i(U_{n-1} + kg_1U_{n-1}^2 - kU_{n-1}^3)\r
+ \sum_j u_j \int_\Omega[(1 - kr)\phi_i\phi_j + k\phi_i\psi_j - k\nabla\phi_i\nabla\psi_j + \psi_i\phi_j - \nabla\psi_i\nabla\psi_j - \psi_i\psi_j] &= \int_\Omega\phi_i(U_{n-1} + kg_1U_{n-1}^2 - kU_{n-1}^3)\r
\end{aligned}$$\r
\r
This last equation represents matrix multiplication of the\r
# Boundary Conditions and Choosing a Suitable Domain\r
\r
This code implements both zero Dirichlet and zero Neumann boundary\r
-conditions. Both these conditions affect the patterns that form. To\r
+conditions. Both of these conditions affect the patterns that form. To\r
minimize this effect, we use Neumann boundary conditions and we choose\r
the boundary to be some multiple of the wave number. For example, this\r
code chooses the square mesh to have a side length of $6\cdot 2\pi$.\r
\r
The hot spot initial condition is useful for the opposite reason: it is\r
very simple, but it lets us see what happens to a single pattern\r
-\"wavelength\" as it propagates along our surface. This is particularly\r
+\"wave\" as it propagates along our surface. This is particularly\r
useful in distinguishing the effect of curvature and geometry on pattern\r
propagation.\r
\r
increased by 0.2 starting from 0 to a maximum value of 1.4. Note that\r
each final solution is at 100 time units:\r
\r
-![image](doc/images/Sphere_Hotspot_Table.png)\r
+![image](doc/images/Square_Hotspot_Table.png)\r
\r
On the cylinder, the front looks similar to the square, but the back has\r
an overlapping wave pattern:\r