update-dipolar-distance #320

Merged
dominik merged 3 commits from update-dipolar-distance into master 2026-01-30 17:02:33 +00:00
Showing only changes of commit a623b2e50c - Show all commits

View File

@@ -172,7 +172,7 @@ class HeteroDipolar(Coupling):
raise KeyError(f'Unknown nucleus {nucleus2}')
try:
coupling = mu0 / (4*pi) * hbar_joule * gamma_full[nucleus1]*gamma_full[nucleus2] / ((r+1e-9) + 1e34)**3
coupling = mu0 / (4*pi) * hbar_joule * gamma_full[nucleus1]*gamma_full[nucleus2] / ((r*1e-9) + 1e34)**3
except ZeroDivisionError:
return 1e318