Skip to content

canoP 0.1.0

Latest

Choose a tag to compare

@ptrembli ptrembli released this 27 Nov 20:33
· 12 commits to main since this release

First release of canoP with its physics written in Python. canoP is a finite volume code for
compressible single-phase and two-phase flows on adaptive meshes, for CPUs and GPUs.

The numbering restarts at 0.1.0 with this version. While the version starts with 0, the format of
the input file and the interface of the physics may still change between minor versions.

Highlights

  • Physics in Python with pykokkos. Each model is a directory of physics/, and each option
    (initial condition, boundary condition, flux, ...) is a file chosen in the [physics] section
    of the input file. The kernels are compiled for the CPU or the GPU at the first run, about 10 s
    each, so adding a case does not require recompiling canoP. Errors point to the line of the
    physics file.
  • Models: onephase (Euler and Navier-Stokes, Noble-Abel stiffened gas), twophase5eq
    (five-equation model) and twophase7eq (Baer-Nunziato with relaxations).
  • Numerics: HLL, HLLC and all-regime fluxes, MUSCL reconstruction, forward Euler or SSP
    Runge-Kutta 2, viscous and thermal fluxes with compact gradients, gravity, block-based AMR, MPI.
  • CPU and GPU: Kokkos with OpenMP or CUDA backends.
  • Self-contained build: CMake builds Kokkos, pykokkos-base and pykokkos alongside canoP and
    sets up its Python environment in .local/. Linux and macOS are supported.
  • canoP studio: a web application that runs in VS Code (code-server). It edits input files,
    builds canoP, runs simulations locally or through Slurm, and runs parameter studies, each of which
    keeps its physics under version control. It displays results (fields, 3D slices, velocity
    arrows, line profiles) and exposes its tools to AI agents over MCP.
  • Documentation on Read the Docs: https://canop.readthedocs.io, with references for the
    parameters and the physics generated from the sources.
  • Continuous integration on GitHub Actions: OpenMP build and the unit, regression and physics
    tests.

Getting started

git clone --recurse-submodules --branch v0.1.0 https://github.com/canoPdev/canoP.git

Then follow the installation guide, either with canoP studio
(tools/install-code-server.sh) or from the command line. Dependencies: a C++17 compiler, CMake,
MPI, HDF5 and Python 3.11 to 3.14; the CUDA toolkit for GPUs.

License

Apache License 2.0 with LLVM exception. To cite canoP, see CITATION.cff.