Simulation and modelling

Run a long calculation in the background

Run a calculation that takes minutes or hours, such as a parameter sweep or a simulation, as a background job on your computer that saves its progress, survives the end of the turn and is picked up by the session when it finishes.

Preview

Vicena can do this work, but it has not yet passed our reference test for it. Check its result with care.

Run it

What to compute, over which parameters, and what result you want from it.

or drop them here

Accepts .py, .ipynb, .jl, .m, .R, .sh, .in, .inp, .json, .yaml, .yml, .csv, .txt, .zip

Optional: a script, notebook or input files to run, if you have them.

No file: the model is textbook physics with an exact answer. A good run writes a script that saves each temperature’s result as it finishes and skips those already saved, starts it in the background with a progress line the chat shows, and keeps the workers within the computer’s CPU limit. It loads the results in a notebook when the job ends, and finds the heat-capacity and susceptibility peaks near T ≈ 2.3, slightly above Onsager’s exact T_c = 2/ln(1 + √2) ≈ 2.269 because of the finite lattice. It says how many sweeps it used for equilibration and averaging and how the error was estimated.

What you get

  • A script that runs the calculation in the background, saving each result as it finishes so an interrupted run resumes
  • A progress line in the chat while it runs, and the session continuing by itself when it ends
  • A notebook that loads the results, plots them and gives the answer with its uncertainty
  • The settings that set the result, such as the number of steps, and how the error was estimated

What you need

The calculation and its parameters

Say what to compute, over which range, and what you want from it. If you have code, attach it; otherwise Vicena writes it.

How it works

Vicena runs anything that takes more than about a minute as a script in the background, not in a notebook cell. The script saves each result as it finishes and skips results already saved, so a run that is interrupted, or stopped by a restart of the computer, resumes where it stopped.

While it runs, the chat shows the job’s latest progress line, and Vicena keeps working on other parts of the study or ends its turn saying what is still running. When the job ends, the session continues by itself, reads the results in a notebook and takes the next step.

Vicena keeps the parallel workers within the CPUs your computer may use, and checks the job’s log and exit status before relying on it.

Limits

  • The job runs on your computer’s CPUs and memory; a study that needs more is split or scaled down, and Vicena says what that costs in accuracy.
  • Vicena does not cut the number of steps or the resolution to make a job finish sooner without telling you.

Next

References

  1. Onsager L. Crystal statistics. I. A two-dimensional model with an order-disorder transition. Phys. Rev. 1944, 65, 117–149.