Back to directory

NRPy

A Python and SymPy-based symbolic code-generation toolkit for numerical relativity and relativistic astrophysics that turns symbolic physics equations into standalone C/CUDA applications, Einstein Toolkit thorns, Charm++ projects and JAX/Python workflows.

NRPy

NRPy generates simulation code from symbolic equation modules rather than hand-written numerical code. Its public form centers on providing the core infrastructure for single-patch BlackHoles@Home numerical relativity simulations, across Cartesian, curvilinear and singular coordinate systems.

The codebase separates symbolic physics and shared support code, under nrpy/equations and nrpy/helpers, from backend-specific code generators under nrpy/infrastructures, with runnable project generators collected in nrpy/examples. It installs from PyPI for end users who just want to generate projects, or from a source checkout for contributors.

Different generated workflows need different external tools: standalone BHaH examples need only a C compiler and make, some also need GSL, Einstein Toolkit and Carpet/CarpetX generators need an existing Einstein Toolkit environment to build the generated thorns, and superB examples need a Charm++ toolchain.

More in Libraries

See all 292
  • OpenDecision

    deepanwadhwa.github.io

    An open-source Python package that answers typed questions about application state or documents using a local natural-language-inference model, returning structured choice, score, yes/no or evidence-relation values instead of free text.

  • TradeCanvas

    bonguynvan.github.io

    A zero-dependency canvas charting engine for building TradingView-style trading charts in JavaScript, with 66 technical indicators, 24 drawing tools, 17 chart types, and real-time streaming.

  • 3d retro graphics

    3d-retro.com

    A free, CC0-licensed library of copy-paste retro 3D and demoscene graphics effects, such as plasma, raytracing, and voxel terrain, runnable as WebGL 1 or plain 2D canvas.