Repository logo
  • AI Search Assistant Beta
    • English
    • 中文
    Log In
    Have you forgotten your password?
    1. Home
    2. College of Science / 理學院
    3. Astrophysics / 天文物理研究所
    4. libyt: An In Situ Interface Connecting Simulations with yt, Python, and Jupyter Workflows
     
    • Details

    libyt: An In Situ Interface Connecting Simulations with yt, Python, and Jupyter Workflows

    Journal
    The Astrophysical Journal Supplement Series
    Journal Volume
    284
    Journal Issue
    1
    Start Page
    30
    ISSN
    0067-0049
    1538-4365
    Date Issued
    2026-05-01
    Author(s)
    Tsai 蔡, Shin-Rong 欣蓉
    HSI-YU SCHIVE  
    Turk, Matthew J.
    DOI
    10.3847/1538-4365/ae5640
    URI
    https://scholars.lib.ntu.edu.tw/handle/123456789/740648
    Abstract
    In the exascale computing era, handling and analyzing massive data sets have become extremely challenging. In situ analysis, which processes data during simulation runtime and bypasses costly intermediate disk input and output steps, offers a promising solution. We present libyt (https://github.com/yt-project/libyt), an open-source C library that enables astrophysical simulations to analyze and visualize data in parallel computation with yt or other Python packages. libyt can invoke Python routines automatically or provide interactive entry points via a Python prompt or a Jupyter Notebook. It requires minimal intervention in researchers’ workflows, allowing users to reuse job submission scripts and Python routines. We describe libyt’s architecture for parallel computing in high-performance computing environments, including its bidirectional connection between simulation codes and Python, and its integration into the Jupyter ecosystem. We detail its methods for reading patch-based adaptive mesh refinement simulations and handling in-memory data with minimal overhead, and procedures for yielding data when requested by Python. We describe how libyt maps simulation data to yt front ends, allowing postprocessing scripts to be converted into in situ analysis with just two lines of change. We document libyt’s application programming interface (API) and demonstrate its integration into two astrophysical simulation codes, GAMER and Enzo, using examples including core-collapse supernovae, isolated dwarf galaxies, fuzzy dark matter, the Sod shock tube test, Kelvin–Helmholtz instability, and the AGORA galaxy simulation. Finally, we discuss libyt’s performance, limitations related to data redistribution, extensibility, architecture, and comparisons with traditional postprocessing approaches.
    Subjects
    Astronomy data analysis (1858)
    Astronomy data visualization (1968)
    Astronomy software (1855)
    Distributed computing (1971)
    Open source software (1866)
    Publisher
    American Astronomical Society
    Type
    journal article

    臺大位居世界頂尖大學之列,為永久珍藏及向國際展現本校豐碩的研究成果及學術能量,圖書館整合機構典藏(NTUR)與學術庫(AH)不同功能平台,成為臺大學術典藏NTU scholars。期能整合研究能量、促進交流合作、保存學術產出、推廣研究成果。

    To permanently archive and promote researcher profiles and scholarly works, Library integrates the services of “NTU Repository” with “Academic Hub” to form NTU Scholars.

    總館學科館員 (Main Library)
    醫學圖書館學科館員 (Medical Library)
    社會科學院辜振甫紀念圖書館學科館員 (Social Sciences Library)

    開放取用是從使用者角度提升資訊取用性的社會運動,應用在學術研究上是透過將研究著作公開供使用者自由取閱,以促進學術傳播及因應期刊訂購費用逐年攀升。同時可加速研究發展、提升研究影響力,NTU Scholars即為本校的開放取用典藏(OA Archive)平台。(點選深入了解OA)

    • 請確認所上傳的全文是原創的內容,若該文件包含部分內容的版權非匯入者所有,或由第三方贊助與合作完成,請確認該版權所有者及第三方同意提供此授權。
      Please represent that the submission is your original work, and that you have the right to grant the rights to upload.
    • 若欲上傳已出版的全文電子檔,可使用Open policy finder網站查詢,以確認出版單位之版權政策。
      Please use Open policy finder to find a summary of permissions that are normally given as part of each publisher's copyright transfer agreement.
    • 網站簡介 (Quickstart Guide)
    • 使用手冊 (Instruction Manual)
    • 線上預約服務 (Booking Service)
    • 方案一:臺灣大學計算機中心帳號登入
      (With C&INC Email Account)
    • 方案二:ORCID帳號登入 (With ORCID)
    • 方案一:定期更新ORCID者,以ID匯入 (Search for identifier (ORCID))
    • 方案二:自行建檔 (Default mode Submission)
    • 方案三:學科館員協助匯入 (Email worklist to subject librarians)

    Built with DSpace-CRIS software - Extension maintained and optimized by 4Science