The campaign of the third page of the tutorial of canoP studio (docs/tutorial/campaign.md in
canoP): the order of convergence of the scheme of canoP, measured
on a smooth problem with a known solution. The results are on the
wiki.
This directory is a canoP studio campaign: a signac project, in a git repository kept by the studio (each launch of runs makes a commit).
A sine wave of density, m = m0 + A sin(2πx) sin(2πy) (m0 = 1, A = 0.2), at uniform pressure
(P = 1) and velocity (1, 1), in the periodic domain [0, 1]². At t = 1 the wave is back at its initial
position, which is the exact solution.
- Model
onephase, HLLC flux, MUSCL reconstruction with the minmod limiter, SSP Runge-Kutta 2, CFL 0.4. - Uniform mesh:
amr.epsilon_refine = amr.epsilon_coarsen = -1, so every block is refined up toamr.max_refineand none is coarsened. - The campaign varies
amr.max_refine= 5, 6, 7, 8, 9: 32² to 512² cells.
physics/onephase/initial_conditions/sine.py: the initial condition, written in Python for pykokkos (paramsreads the[sine]section of the input file,initial_stateis compiled).analysis.py: the analysis of the Analysis tab of the studio. It reads the last output of each run, computes the L1 error of the density against the exact solution and the observed order between successive meshes, and plots the error against the number of cells.workspace/<id>/convergence-<id>.ini: the input file of each run. Its first lines (# [canoP studio]) give the commit of canoP and the commit of the physics it ran with.signac_project_document.json: the base input file, the sweep and the settings of the last launch;workspace/<id>/signac_statepoint.jsonandsignac_job_document.json: the parameters, versions and metrics of each run.project.py,templates/: the signac-flow project (operationsrunandmetrics).physics/: the physics of the campaign, copied from canoP when the campaign was made.
Not versioned: the outputs and logs of the runs, workspace/<id>/canoP_physics/ (the physics of the
launch, copied from this repository).
Runs of 2026-11-29, canoP 5620403 (main), 1 MPI process of 16 OpenMP threads per run.
| Cells | L1 error of the density | Order | Duration (s) |
|---|---|---|---|
| 32² | 1.117e-2 | 7 | |
| 64² | 3.462e-3 | 1.69 | 7 |
| 128² | 1.079e-3 | 1.68 | 45 |
| 256² | 3.185e-4 | 1.76 | 68 |
| 512² | 8.960e-5 | 1.83 | 473 |
The order is below 2 because the minmod limiter flattens the slopes at the extrema of the wave; these regions shrink with the mesh, and the order approaches 2.
At each launch the studio:
- commits
physics/if it changed since the previous launch ("physique : ..."); - writes at the top of the input file of each run the commit of canoP (the one of the build of the executable) and the commit of the physics (in this repository);
- copies the physics of that commit into
workspace/<id>/canoP_physics/, which the run reads throughCANOP_PHYSICS_DIR: changingphysics/afterwards does not change a launched run; - commits the input files, views and documents ("lancement : ...").
-
canoP at the commit written in the input file of the runs, built by canoP studio:
git clone https://github.com/canoPdev/canoP.git canoP git -C canoP checkout 5620403531e6c76dc6d1e4377f0d5d9dff0461d9 git -C canoP submodule update --init --recursive -
This repository in the campaigns of that canoP (the directory
_campaignsnext to the build directory,_buildby default):git clone https://github.com/canoPdev/tutorial.git canoP/_campaigns/convergence -
In canoP studio, campaign
convergence: Prepare again sets the submitted runs that have no file (those of the clone) back to prepared, then Launch the prepared runs. The Analysis tab shows the convergence once they are finished.