In Situ Analysis Library for Large-Scale Cosmological Simulations