Closed MSallermann closed 6 years ago
Hamiltonian_Heisenberg::Gradient_DDI( ... ) currently has the wrong prefactor. One mu_B too much.
mu_B
It should say: scalar mult = C::mu_0 * C::mu_B / ( 4*C::Pi * 1e-30 );
scalar mult = C::mu_0 * C::mu_B / ( 4*C::Pi * 1e-30 );
instead of: scalar mult = C::mu_0 * std::pow(C::mu_B, 2) / ( 4*C::Pi * 1e-30 );
scalar mult = C::mu_0 * std::pow(C::mu_B, 2) / ( 4*C::Pi * 1e-30 );
It turns out that I was wrong. As the gradient is intended to be the derivation with respect to the spin-directions (not the magnetic moments!) std::pow(C::mu_B, 2) is actually correct.
std::pow(C::mu_B, 2)
Hamiltonian_Heisenberg::Gradient_DDI( ... ) currently has the wrong prefactor. One
mu_B
too much.It should say:
scalar mult = C::mu_0 * C::mu_B / ( 4*C::Pi * 1e-30 );
instead of:
scalar mult = C::mu_0 * std::pow(C::mu_B, 2) / ( 4*C::Pi * 1e-30 );