Multipole Methods for the Masses
andyljones.com
andyljones.com
[1] https://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=814...
Which animation resetting seems to trigger it? Do you know which version of iOS/Safari you're using?
I could never get the boundary conditions right (it involves generating vortex particles to neutralize torques), but it was still a lot of fun. The benefit of this method is that energy can be conserved and fine scale structures remain mostly intact, which is important for turbulent flows.
Do yo mean "discretize"?
https://github.com/mrc-ide/covid-sim/
However i have not been able to find a case where their model could reproduce the epidemiology of a previous epidemic like influenza.
So I wrote one! It felt like a nice balance between 'doing something useful' and 'stepping on epidemiologists' toes'.
Incidentally, I believe the Imperial model solves things by dividing the region up into cells of ~half a km across and assuming everyone in the cell is at the center. I didn't know this when I started the project, but kinda assumed it'd do something like that when I couldn't find any work on FMM in epidemiology.
I have a question. Although the article clearly states that this is not an epidemiological problem, I wonder about the following: gravity and electric fields are 1/r^2 type problems. I imagine that disease transmission depending on distance is a rather different thing, such as "high in immediate vicinity to the other point and then falling off quickly".
Do we know if the algorithm is accurate enough for this kind of "field"? Is it in general enough accurate or only for 1/r^2 type fields?
Here's a toy example, 100 sources and points over a 10x10 square and a 1/(1 + d^2) kernel:
https://colab.research.google.com/drive/1F5rGIPxI8RI9tYJ4RSv...
Here, it gets 1e-8 residual variance.
Exactly which kernel to use for disease transmission is an open question, but IIRC the Imperial model used something like 1/(1 + d^(3/2)) based on fits to data.
disease transmission can be modeled as a stochastic process and you can dig up a relationship to similar type methods (basis methods for solving odes) through the feynman-kac formula.