机器翻译
简体中文

IP 地理位置由 DB-IP 提供 (CC BY 4.0)

← 全部工具

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.

1 条历程 · 1 个主版本/里程碑 · 1 年 · https://canop.readthedocs.io/ · GitHub 仓库 · RSS

截图

canoP studio run view showing a 2D field
canoP studio: viewing a run's field with the time slider来源: github.com/canoPdev/canoP/blob/main/docs/tutorial/images/ru… · Apache-2.0 WITH LLVM-exception (project repository) · canoP documentation (tutorial)
canoP studio campaign analysis with convergence plots and a results table
canoP studio: analysis of a parameter-study campaign来源: github.com/canoPdev/canoP/blob/main/docs/tutorial/images/ca… · Apache-2.0 WITH LLVM-exception (project repository) · canoP documentation (tutorial)
canoP studio: Build panel: canoP source and build options
canoP studio: Build panel: canoP source and build options来源: github.com/canoPdev/canoP/blob/main/docs/tutorial/images/bu… · Apache-2.0 WITH LLVM-exception (project repository) · canoP documentation (tutorial)
canoP studio: Execution panel: processes, Slurm and run settings
canoP studio: Execution panel: processes, Slurm and run settings来源: github.com/canoPdev/canoP/blob/main/docs/tutorial/images/bu… · Apache-2.0 WITH LLVM-exception (project repository) · canoP documentation (tutorial)
canoP studio: Build log while canoP compiles
canoP studio: Build log while canoP compiles来源: github.com/canoPdev/canoP/blob/main/docs/tutorial/images/bu… · Apache-2.0 WITH LLVM-exception (project repository) · canoP documentation (tutorial)
canoP studio: A campaign with all its runs finished
canoP studio: A campaign with all its runs finished来源: github.com/canoPdev/canoP/blob/main/docs/tutorial/images/ca… · Apache-2.0 WITH LLVM-exception (project repository) · canoP documentation (tutorial)
canoP studio: Initial condition of a campaign run in the viewer
canoP studio: Initial condition of a campaign run in the viewer来源: github.com/canoPdev/canoP/blob/main/docs/tutorial/images/ca… · Apache-2.0 WITH LLVM-exception (project repository) · canoP documentation (tutorial)
canoP studio: Launch dialog: submitting the campaign's runs to Slurm
canoP studio: Launch dialog: submitting the campaign's runs to Slurm来源: github.com/canoPdev/canoP/blob/main/docs/tutorial/images/ca… · Apache-2.0 WITH LLVM-exception (project repository) · canoP documentation (tutorial)
canoP studio: New campaign dialog with a parameter sweep
canoP studio: New campaign dialog with a parameter sweep来源: github.com/canoPdev/canoP/blob/main/docs/tutorial/images/ca… · Apache-2.0 WITH LLVM-exception (project repository) · canoP documentation (tutorial)
canoP studio: A prepared campaign with its runs listed
canoP studio: A prepared campaign with its runs listed来源: github.com/canoPdev/canoP/blob/main/docs/tutorial/images/ca… · Apache-2.0 WITH LLVM-exception (project repository) · canoP documentation (tutorial)
canoP studio: Running a campaign
canoP studio: Running a campaign来源: github.com/canoPdev/canoP/blob/main/docs/tutorial/images/ru… · Apache-2.0 WITH LLVM-exception (project repository) · canoP documentation (tutorial)
canoP studio: Running an example case
canoP studio: Running an example case来源: github.com/canoPdev/canoP/blob/main/docs/tutorial/images/ru… · Apache-2.0 WITH LLVM-exception (project repository) · canoP documentation (tutorial)
canoP studio: Initial condition of a run in the viewer
canoP studio: Initial condition of a run in the viewer来源: github.com/canoPdev/canoP/blob/main/docs/tutorial/images/ru… · Apache-2.0 WITH LLVM-exception (project repository) · canoP documentation (tutorial)
canoP studio: Help popup for an input-file key
canoP studio: Help popup for an input-file key来源: github.com/canoPdev/canoP/blob/main/docs/tutorial/images/ru… · Apache-2.0 WITH LLVM-exception (project repository) · canoP documentation (tutorial)
canoP studio: Log of a running simulation
canoP studio: Log of a running simulation来源: github.com/canoPdev/canoP/blob/main/docs/tutorial/images/ru… · Apache-2.0 WITH LLVM-exception (project repository) · canoP documentation (tutorial)
canoP: Build log
Build log来源: github.com/canoPdev/canoP/blob/main/docs/tutorial/images/bu… · Apache-2.0 WITH LLVM-exception (project repository) · canoP repository (canoPdev/canoP)

输出结果

canoP: campaign analysis, computed with canoP
Output: campaign analysis, computed with canoP (source: canoPdev/canoP docs/tutorial/images/campaign-analysis.webp)来源: github.com/canoPdev/canoP/blob/main/docs/tutorial/images/ca… · Apache-2.0 WITH LLVM-exception (project repository) · canoP repository (canoPdev/canoP)

发布历程 (按时间倒序,按年份与版本分组)

2026 1 条●
v0.1.0 release主版本First release with physics in PythonPhysics written in Python with pykokkos and compiled for CPU or GPU at run time; onephase, twophase5eq and twophase7eq m