juliaTDGL: the four dots of the Julia logo as vortices over the j and the iv2.0.0 GitHub

Tools

What a user touches: a terminal menu, a browser editor for shapes, the standard figures of a run, and 3D films of the vortex events.

julia tdgl/scripts/tdgl_tui.jl
  • It lists the runs of both releases, live and archived, with their state, points, last current and verdict.
  • n launches a run of release 2.0 from any run file; two CPUs run the polarities in parallel.
  • s stops a run after its current point, and u resumes it to the bit.
  • l is a launch wizard (starting point, geometry, parameters, optional term) for release 1.2 or for the two-band model in 2.0.
  • g opens the shape editor, and w the films of a run; in the details of a release-2 run, h walks its down branch and l runs its M(H) loop, in the background.

Closing the menu does not stop a run.

The parameter screen of the launch wizard of the terminal menu
The launch wizard.

The shape editor

A browser editor for three-dimensional shapes (julia tdgl/editor/server.jl, or key g of the menu). It saves the TOML file that a run reads with GEOM_MODE = "CUSTOM". Each voxel is a mesh node.

  • Figures (circle, rectangle, triangle, polygon, sphere, n-gon) can be drawn on any of the three views and go through the sample along that view's axis.
  • A figure can be kept, which writes the material outside it: a cable.
  • A figure can write an f, which makes a normal metal or a weak link; vacuum, which carves the sample; or another material.
  • A pencil paints any 3D pattern.
  • The checks show the mirror and rotation symmetries (a symmetric shape gives η = 0 exactly) and the faces where vortices enter.
  • Material names suggest the catalogue of release 2, and "Run file" drafts the run file of the shape: a [materials.name] table for each material (the catalogue file when the name is one), the mesh of the box, the shape, the insulating buffer when it has vacuum, and a ladder to edit.

What it draws is what the solver reads: the two were compared node by node, in a headless browser with real mouse events.

The shape editor with a notched box, its three views, its mirror and the vortex entry faces
A notched box, with the current, the field and the faces where vortices enter.
3D view of the editor: a cable along x with a V groove, vacuum around it
A cable along the current with a V groove, carved in vacuum.
3D view of the editor: three slabs stacked along z with vacuum between them
Three slabs stacked along z, coupled only through the field.

The figures of a run

julia --project=gtdgl gtdgl/scripts/figures.jl RUNDIR

From the folder of any run (it can still be running) this draws:

  • the sheet of the ladders: crossings per line, |V|, the rung times and the current through the mid plane, with the brackets;
  • |Ψμ|² of every band on the three mid cuts, with the vortices and the supercurrent lines;
  • the share of the supercurrent each band carries, plane by plane along the sample;
  • REPORT.md, one page with what was run (the materials per region and the integrator included), every rung, the brackets and η.
Cuts of the squared order parameter of the two bands of the nanowire example; the vacuum around the disc is grey
The nanowire example: |Ψ|² of each band on the mid cuts. The disc and its vacuum are seen across x.
The share of the supercurrent carried by each band along the nanowire, set within a few coherence lengths of the contacts and flat between them
The share of the supercurrent of each band along the same wire. It is set within a few ξ of the contacts, where the normal current converts.

3D films

julia --project=gtdgl gtdgl/scripts/film.jl RUNDIR [+|-] [--J J] [--every DT] [--state FILE]

From the kept state of a rung, or from any state file, the film steps the state at its current. It records only around the moments that matter: the entry, the crossing and the exit of each vortex. It writes:

  • VTK files of every frame: |Ψμ|², the supercurrent, the field, the masks and the material of each node, for ParaView or any VTK reader;
  • a browser viewer (film.html) that turns and zooms with the mouse;
  • a GIF and a still frame.

Each material of the sample is tinted. A film of a continuous flow must be sampled well below its period 2π/V; the script warns when it is not, because a stroboscope can make a vortex appear to go back and forth.

Scripts and tools

toolwhat it does
scripts/run.jl FILEone run from a file; --polarity ±, --resume, --dir
scripts/refine.jl RUNDIR ±a finer ladder inside the bracket of a coarse one; --confirm T by the delay
scripts/hysteresis.jl RUNDIR ±the down branch: from the state the ladder ended in, the currents walked back down; the retrapping bracket and the width of the hysteresis Ic − Ir
scripts/mh.jl FILE --Hmax H --dH hthe magnetisation loop M(H) at a fixed current (0 by default), up and back down, with the vortex count of each band; tools/mh_plot.py draws it
scripts/figures.jl RUNDIRthe standard figures and REPORT.md
scripts/film.jl RUNDIRthe 3D film of the vortex events
tools/collect_runs.pyone table of a whole campaign
tools/delay_fit.pythe fit of the delay law to measured delays