Skip to content

Commit 2194f51

Browse files
committed
Adding heat equation itself to attempt page
1 parent 49878af commit 2194f51

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

heatEqAttempt.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
@def title="Attempt at creating a webpage for solving the heat equation"
22
@def hassim=false
33

4-
An attempt was made to create a 1D heat equation numerical solver webpage and add it to this website. However, this attempt was abandoned, as it proved too computationally expensive for a webpage. The numerical integration technique I attempted involved approximating spatial derivatives from grid point values using fast Fourier transforms (FFTs) and their inverses (IFFTs), then integrating in time using the [Runge–Kutta–Fehlberg 4th-order method with 5th-order error checking (RKF45)](/RKF45/). The calculations took too long and froze the JavaScript console when run there.
4+
An attempt was made to create a 1D heat equation numerical solver webpage and add it to this website. The equation in question, for those unfamiliar is
5+
6+
\begin{aligned}
7+
\dfrac{\partial u}{\partial t} &= \dfrac{\partial^2 u}{\partial x^2}.
8+
\end{aligned}
9+
10+
However, this attempt was abandoned, as it proved too computationally expensive for a webpage. The numerical integration technique I attempted involved approximating spatial derivatives from grid point values using fast Fourier transforms (FFTs) and their inverses (IFFTs), then integrating in time using the [Runge–Kutta–Fehlberg 4th-order method with 5th-order error checking (RKF45)](/RKF45/). The calculations took too long and froze the JavaScript console when run there.
511

612
In fairness, RKF45 already takes a few seconds to solve the [double elastic pendulum (DEP)](/doubleElasticPendulum/) and [triple pendulum (TP)](/triplePendulum/) ordinary differential equations (ODEs). It is therefore not surprising that increasing the complexity by orders of magnitude—by adding an FFT and IFFT to every system evaluation and having more than 100 ODEs in the system (one for each grid point)—was simply too much for a webpage to handle.
713

0 commit comments

Comments
 (0)