Skip to content
canoPdevPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

Repository files navigation

Convergence campaign of the canoP studio tutorial

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).

The problem

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 to amr.max_refine and none is coarsened.
  • The campaign varies amr.max_refine = 5, 6, 7, 8, 9: 32² to 512² cells.

Files

  • physics/onephase/initial_conditions/sine.py: the initial condition, written in Python for pykokkos (params reads the [sine] section of the input file, initial_state is 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.json and signac_job_document.json: the parameters, versions and metrics of each run.
  • project.py, templates/: the signac-flow project (operations run and metrics).
  • 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).

Results

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.

Versioning

At each launch the studio:

  1. commits physics/ if it changed since the previous launch ("physique : ...");
  2. 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);
  3. copies the physics of that commit into workspace/<id>/canoP_physics/, which the run reads through CANOP_PHYSICS_DIR: changing physics/ afterwards does not change a launched run;
  4. commits the input files, views and documents ("lancement : ...").

Reproduce

  1. 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
    
  2. This repository in the campaigns of that canoP (the directory _campaigns next to the build directory, _build by default):

    git clone https://github.com/canoPdev/tutorial.git canoP/_campaigns/convergence
    
  3. 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.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages