intensity grid and flux implementation