nucfrq2d#

torchspin.nucfrq2d(sys, B0, tau=None, *, GridSize=31, plot=False, ax=None)[source]#

Compute HYSCORE powder spectrum peak positions.

Parameters:
  • sys – Spin system (SpinSystem). Must have S=1/2.

  • B0 (float) – External magnetic field magnitude in mT.

  • tau (ndarray | list | float | None) – Tau delay(s) in microseconds for blind-spot visualization. If None or 0, no blind spots are computed.

  • GridSize (int) – Number of orientational grid knots (default 31).

  • plot (bool) – If True, create a matplotlib plot.

  • ax – Matplotlib axes for plotting.

Returns:

data – Dictionary with keys:

  • 'FreqsAlpha': shape (nOri, nfreq) — nuclear frequencies in the alpha (electron spin-up) manifold, in MHz.

  • 'FreqsBeta': shape (nOri, nfreq) — nuclear frequencies in the beta (electron spin-down) manifold, in MHz.

  • 'LarmorFreqs': Larmor frequencies of the nuclei at B0, in MHz.

  • 'Modulation': blind-spot pattern (if tau given), or None.

  • 'maxFreq': maximum transition frequency in MHz.

Return type:

dict