eprconvert#
- torchspin.eprconvert(*, field=None, freq=None, g=None)[source]#
Compute the missing EPR resonance quantity from the other two.
Uses the resonance condition
h * freq = g * mu_B * B.Exactly two of the three keyword arguments must be given; the third is computed and all three are returned in a dict.
- Parameters:
- Returns:
dict –
{'field': ..., 'freq': ..., 'g': ...}with all three values.- Return type:
Examples
>>> eprconvert(freq=9.8, g=2.0023) # compute field >>> eprconvert(field=340.0, g=2.0023) # compute frequency >>> eprconvert(field=340.0, freq=9.5) # compute g-factor