
Security News
Insecure Agents Podcast: Certified Patches, Supply Chain Security, and AI Agents
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.
snapy
Advanced tools
Compressible Finite Volume Solver for Atmospheric Dynamics, Chemistry and Thermodynamics
Snapy is the dynamic core for simulating atmospheric and planetary dynamics using PyTorch tensors and GPU acceleration.
The easiest way to get started is to install via pip:
pip install snapy
This will install the Python interface with pre-built binaries for Python 3.9-3.13 on Linux (x86_64) and macOS (ARM64).
pd-run 6 ./test_exchange.release
lsof -i:29500
pkill -9 XXXXX
Requirements:
Building from source is recommended only for advanced users who need to:
Prerequisites:
Build steps:
git clone https://github.com/chengcli/snapy.git
cd snapy
pip install numpy kintera torch==2.7.1
Install NetCDF:
sudo apt-get install libnetcdf-dev
brew install netcdf
Install NCCL (if enables GPU)
sudo apt-get install libnccl2 libnccl-dev
sudo yum install libnccl libnccl-devel libnccl-static
cmake -B build -DCMAKE_BUILD_TYPE=Release -DNETCDF=ON
cmake --build build --parallel 3
pip install .
The examples/ directory contains several working examples:
Python Examples:
shock.py - Sod shock tube with internal boundarystraka.py - Straka cold bubble convection testrobert.py - Robert warm bubble convection testC++ Examples:
shock.cpp - Sod shock tube (C++)straka.cpp - Straka cold bubble (C++)Run a Python example:
cd examples
python shock.py
Run a C++ example (after building):
cd build/examples
./shock
See examples/README for detailed documentation on the code structure and available examples.
Simulations are configured using YAML files that specify:
Example configuration files (.yaml) are provided alongside the examples.
Run tests after building:
cd build/tests
ctest --output-on-failure
This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
Compressible Finite Volume Solver for Atmospheric Dynamics, Chemistry and Thermodynamics
We found that snapy demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.

Security News
The planned feature introduces a review step before releases go live, following the Shai-Hulud attacks and a rocky migration off classic tokens that disrupted maintainer workflows.