Hi,
In the VAMPIRE 6.0 source code file energy.cpp in the
statistics
folder [1], there is:
line 181
:
//---------------------------------------------------------------------------
line 182
:
// Calculate anisotropy energy (in Tesla)
line 183
:
//---------------------------------------------------------------------------
line 184
:
for( int atom = 0; atom < num_atoms; ++atom ){
line 185
:
const int mask_id = mask[atom]; // get mask id
line 186
:
anisotropy_energy[mask_id] += anisotropy::single_spin_energy(atom, mat[atom], sx[atom], sy[atom], sz[atom], temperature) * mm[atom];
line 187
:
}
...
line 433: // output correct energy type (in Joules)
...
line 443: case anisotropy :
line 444:
for(int mask_id=0; mask_id<mask_size; ++mask_id) result << anisotropy_energy[mask_id] * constants::muB;
line 445:
break;
With
anisotropy_energy[mask_id] above having units of Telsa. It looks like
constants::muB [2] would need to be in units of Joules/Telsa.
Hope that can be helpful.
Kind Regards,
Gavin
VAMPIRE user