Advection-anisotropic-diffusion of a Gaussian Hill with BGK-Emodel

Advection-anisotropic-diffusion of a Gaussian Hill with BGK-Emodel

In this example, the time evolution of a Gaussian hill has anisotropic diffusivity in an infinite space with periodic boundaries.

The analytical solution in dimensions is given by the anisotropic multivariate Gaussian distribution

where is the mean displacement, is the variance--covariance tensor evolving under diffusion, denotes its determinant, and is its cofactor matrix. The initial Gaussian pulse of concentration is centered at . The analytical solution is written in func.lua.

In this setup, the principal axis of diffusion is aligned with the direction of advection, while the orthogonal axis exhibits reduced diffusion, with an anisotropy ratio defined as

The values of D is set with the angle of principal axis in args.lua. Readers are encouraged to modify the angle $theta$ and the anisotropy ratio $n$ to see how the anisotropic diffusion behaves under different orientations and ratios.

The script to generate the contour plots is provided in plot_contour.py. To run it, make sure you have matplotlib, numpy, scipy, and pandas installed in your Python environment.