libyt is an open-source C library for simulation that enables researchers to analyze and visualize data using yt or other Python packages in parallel during simulation runtime.
We can skip the intermediate step of writing data to a hard disk before doing analysis using Python.
This significantly reduces the disk usage and increases the temporal resolution.
Converting the post-processing analysis Python script using yt to an inline Python script is a two-line change.
libyt also provides a Python interface (Python prompt, file-based prompt, and JupyterLab frontend) to access simulation data running on an HPC cluster, enabling real-time visualization and sampling of the data.
- Documents: https://libyt.readthedocs.io/
yt: a Python package for analyzing and visualizing volumetric data. It is the core method thatlibytuses to provide data analysis pipeline for simulations.yt_libyt: a Python package that provides aytfrontend. It makes converting post-processing scripts usingytinto inline scripts a two-line change.jupyter_libyt: a JupyterLab frontend forlibyt. It provides methods to connect to simulations.
More details in how to install.
cmake -S . -B build -DSERIAL_MODE=ON \
-DINTERACTIVE_MODE=ON \
-DJUPYTER_KERNEL=ON \
-DPYTHON_PATH=<your-python-prefix>cmake -S . -B build -DINTERACTIVE_MODE=ON \
-DJUPYTER_KERNEL=ON \
-DPYTHON_PATH=<your-python-prefix> \
-DMPI_PATH=<your-mpi-prefix>This project is currently in an active development stage. Some of its cores and architectures are subject to change to make it more efficient, extendable, and easy to use.
We encourage and welcome the submission of issues, feature requests, and suggestions. Such contributions are invaluable to the continued improvement of this project, and we appreciate the time and effort taken to help us grow and better serve the community.
We are committed to fostering a respectful, inclusive, and harassment-free environment for everyone. All participants are expected to treat one another with kindness, regardless of their background, identity, or experience. Harassment, discrimination, personal attacks, or any other disruptive behavior will not be tolerated. By participating in this community, you agree to uphold these standards and contribute to creating a welcoming space.
BSD 3-Clause License