
canoP
Finite-volume code for compressible single-phase and two-phase flows on adaptive meshes, for CPUs and GPUs. Built on the kalypsso library (p4est octrees and Kokkos); the physics is written in Python with pykokkos and compiled for the CPU or GPU at run time. canoP studio, a web app in VS Code, edits, runs and plots cases and serves its tools to AI agents over MCP.
canoP is a finite-volume code for compressible single-phase and two-phase flows on adaptive meshes, for CPUs and GPUs, licensed Apache-2.0 with the LLVM exception. The mesh and its adaptive refinement come from the kalypsso library (Computer Physics Communications, doi 10.1016/j.cpc.2026.110275), built on p4est octrees and Kokkos. Since version 0.1.0 (27 November 2026, the first release of the Python-physics line) each physical model is a directory of Python files written with pykokkos, and each option (initial condition, boundary condition, flux and so on) is a file selected in the [physics] section of the input file; kernels are compiled for the CPU or GPU on the first run (about 10 s each), so adding a case does not require recompiling canoP. Models: onephase (Euler and Navier-Stokes with the Noble-Abel stiffened gas equation of state), 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 and MPI, on Kokkos OpenMP or CUDA back ends. CMake builds Kokkos, pykokkos-base and pykokkos alongside canoP; Linux and macOS are supported. canoP studio is a web application that runs in VS Code (code-server) on a workstation or a cluster login node: it edits input files, builds canoP, runs simulations locally or through Slurm and runs parameter studies with their physics under version control, displays fields, 3D slices, velocity arrows and line profiles, and exposes its tools to AI agents over MCP. The input format and physics interface may still change between 0.x versions.
צילומי מסך
















פלטים
