Mesh Convergence and Solver Diagnostics

A finite-element result is only as good as its mesh. Silicofeller Quantum Studio can refine the mesh automatically for eigenmode runs and reports solver diagnostics for every run. This page explains both and how to decide whether a result is converged.

Auto-converge

Turn on Auto-converge in the eigenmode parameters before you run. Quantum Studio then:

  1. Meshes and solves at the starting mesh (set by Mesh Quality).

  2. Scales the mesh sizes by 0.75 and solves again.

  3. Compares the frequency of the lowest physical mode with the previous level.

  4. Stops when the relative change is at or below the tolerance, or when a limit is reached.

Setting

Default

API key in user_settings

Tolerance

0.5 % (UI)

convergence_tolerance (fraction, e.g. 0.005)

Maximum levels

5

convergence_max_levels

Refinement factor per level

0.75

convergence_refinement_factor

Degrees-of-freedom cap

2,000,000

convergence_dof_cap

Timeout per level

2,700 s

timeout_seconds

Timeout for the whole sweep

18,000 s

total_sweep_timeout_seconds

The result carries a convergence block:

Field

Meaning

converged

true if the tolerance was met. Shown as Converged on Overview.

status

converged, hit-cap (ran out of levels or exceeded the DOF cap) or timed-out.

trend

Relative frequency change at each level.

levels_run

Number of levels solved.

When the DOF cap is exceeded, the sweep returns the results of the previous level.

Only the lowest physical mode is checked. If you care about a higher mode, for example a readout resonator, compare its frequency across runs at two mesh qualities yourself.

Solver diagnostics

Every run reads Palace’s palace.json and stores a diagnostics block. The status bar on the Simulations page shows the first four.

Field

Meaning

palace_version

Solver version.

degrees_of_freedom

Size of the finite-element problem.

mesh_elements

Number of mesh elements.

linear_solver_iterations

Total iterations of the linear solver.

mpi_size

MPI processes used.

peak_memory_mb

Peak memory, worst process.

The Metrics endpoint (GET /api/simulations/{id}/metrics) gives the time spent in each pipeline phase.

Decide whether a result is converged

  1. Run once at Mesh Quality 2 to check the mode structure.

  2. Run with Auto-converge on. Accept the result if status is converged.

  3. If the status is hit-cap, look at trend. A change that is still shrinking level by level is close; a change that jumps around points to a geometry or meshing problem near a junction or narrow gap. Check Volume Mesh.

  4. For capacitance and inductance runs, which have no auto-converge, compare two runs at different Mesh Quality values. Values that agree within your design margin are usable.