anisotropic and varying diffusion scripts