mabarnes / moment_kinetics

Other
2 stars 4 forks source link

Plot/animate the unnormalised distribution function in makie_post_processing #126

Closed johnomotani closed 1 year ago

johnomotani commented 1 year ago

Implement plots of the unnormalised distribution function on unnormalised coordinates in makie_post_processing. The implementation relies on the workaround from here: https://github.com/MakieOrg/Makie.jl/issues/742#issuecomment-1415809653. This workaround makes plots on an unstructured mesh using Makie's mesh!() plot type. Unfortunately this is relatively slow compared to matplotlib's pcolormesh(), I guess because pcolormesh() requires a logically rectangular grid and so can optimise for that. Hopefully Makie will come out with a better version in future, but for now it is only needed for 1D1V runs anyway, and animations still only take a couple of minutes if you have a large number f time points (like ~1000).

Also fixes a few tiny bugs in makie_post_processing.

Closes #113.