curry#
- torchspin.curry(sys, B_fields, temperatures, *, grid_size=10, delta_B=1.0)[source]#
Compute magnetization and molar susceptibility vs field and temperature.
- Parameters:
sys (SpinSystem) – Spin system.
B_fields (Tensor | list | float) – Magnetic field values (mT). Scalar, list, or 1-D tensor.
temperatures (Tensor | list | float) – Temperature values (K). Scalar, list, or 1-D tensor. Must be positive (> 0 K).
grid_size (int) – SOPHE grid parameter for powder averaging (default 10). Larger values give a finer angular grid and more accurate results.
delta_B (float) – Field step (mT) used for the numerical derivative to compute susceptibility (default 1.0 mT).
- Returns:
mu_BM – Magnetic moment along the field direction, in Bohr magnetons. Shape
(nB, nT).chi_mol – Molar magnetic susceptibility (SI), in m³/mol. Shape
(nB, nT).
- Return type:
Notes
The susceptibility is the parallel component χ_∥ = ∂⟨μ_z⟩/∂H, powder- averaged. This matches the quantity accessible in a DC SQUID or VSM experiment.
- Unit conventions:
1 cm³/mol (CGS-Gaussian, “emu/mol”) = 4π × 10⁻⁶ m³/mol (SI)
To convert to cm³/mol: multiply by 10⁶ / (4π) ≈ 79 577.5
- Curie law check (S=1/2, g=2.0, T=300 K):
χ_mol ≈ 1.57 × 10⁻⁸ m³/mol = 1.25 × 10⁻³ cm³/mol (χT = 0.375 cm³·K/mol)