vibespin.scripts.clock package
Submodules
scripts.clock.compare_discrete_vs_continuous module
Side-by-side temperature sweep: continuous clock (XY + anisotropy) vs discrete clock.
scripts.clock.correlation_comparison module
Comparison of spin-spin correlation functions G(r) for the q-state Clock model. Analyzes correlation behavior in ordered, quasi-ordered, and disordered phases.
The q=6 clock model has two Kosterlitz-Thouless transitions at T1 ≈ 0.68 and T2 ≈ 0.92 (José et al. 1977), yielding three distinct correlation regimes: long-range order below T1, algebraic (quasi-long-range) order between T1 and T2, and exponential decay above T2.
- scripts.clock.correlation_comparison.main() None[source]
Run the clock model correlation comparison analysis.
- scripts.clock.correlation_comparison.simulate_correlation(*, T: float, L: int, q: int, steps: int, eq_probe: int, eq_max: int, sample_interval: int, seed: int, logger: Logger) tuple[ndarray, ndarray][source]
Equilibrate and measure the averaged correlation function at temperature T.
Uses two-start convergence equilibration to avoid initialization bias.
- Parameters:
T (float) – Temperature for the measurement.
L (int) – Linear lattice size.
q (int) – Number of clock states.
steps (int) – Measurement steps after equilibration.
eq_probe (int) – Chunk size for convergence equilibration probes.
eq_max (int) – Maximum equilibration steps.
sample_interval (int) – Spacing between correlation samples during measurement.
seed (int) – Random seed for reproducibility.
logger (logging.Logger) – Logger instance.
- Returns:
Radial distances r and averaged correlations G(r).
- Return type:
tuple[np.ndarray, np.ndarray]
scripts.clock.ordering_evolution module
Phase ordering evolution visualisation for the 2D q-state Clock model.
Quenches from a disordered state to T < T_c and records the spin configuration at multiple time steps, plotting phase configurations, vorticity maps, and radially averaged correlation functions G(r).
scripts.clock.ordering_kinetics module
Ordering kinetics analysis for the 2D q-state Clock model.
Quenches from a disordered state to T < T_c and records length scale growth and vortex density decay over time.
scripts.clock.temperature_sweep module
Standardized temperature sweep for the 2D Clock model. Calculates and plots magnetization, energy, susceptibility, and specific heat.