https://linen.dev logo
ok, so, I've been exploring Finite Volume Method a...
# programming
j
ok, so, I've been exploring Finite Volume Method and its implementations, and I see that MUSCL seems to work very well, but I don't particularly like it. For example, it depends on which direction is upstream, so the neighborhood of influence is asymmetric and depends on flow direction, which is kinda weird. The neighborhood of influence is also non-reciprocal, i.e. if the change in cell A depends on cell B, the converse is not necessarily true, again something that's kinda weird. Finally, MUSCL and its flux limiters can produce weird phenomena like self-sharpening waves and flattening peaks, depending on the choice of limiter. So, I thought there must be a better way. One of the ideas I had was for an alternative sort of diffusion, where the rate of attenuation of a sine wave depended not on the square of its frequency, like normal, but instead on its fourth power. This more strongly penalizes high frequency waves while tending to leave low frequency phenomena (what we tend to care about most) comparatively unaffected. This diffusion requires a cell to not just influence/be influenced by its immediate neighbor on each side, but its immediate two neighbors on each side. So, I applied this to the standard second-order advection method (the flux on a cell interface equals the average of the values on each side of the cell), but it didn't work since this advection method disperses the waves according to the third power of their frequency, so there's an intermediate range of frequencies that are dispersed but not diffused away. To remedy this, I created a new advection flux such that each cell depended not on its immediate neighbor on each side, but its immediate two neighbors on each side, much like my fourth-power diffusion, and net result was an advection method with a 5th power frequency dispersion, which combined will with my 4th power diffusion.