Hey,
Is there any algorithm or math function which allows to calculate a more-less uniform distribution based on coordinates (2d or 3d) and, maybe, time?
With possibility to "drain"/add energy from/to any point of the field and in such cases dynamically calculate flows of the energy from "high" points to "low" points.
I've already tried to play with Gaussian function – it's pretty good in this case, and allow to make multiple peaks, both positive (energy production) or negative ("consumption"), but I'm not sure how to calculate dynamic flows (the field should tend to be uniform).
The main disadvantage in case of Gaussian is that it's pretty heavy to calculate, especially if I have lot of peaks.
Is there any other similar/suitable functions? Or, maybe, I'm thinking in a wrong way and there are different approaches exist to calculate such things?