get/set magnetic field value

Syntax

field(obj,B) B = field(obj)

Description

field(obj,B) sets the magnetic field stored in obj.single_ion.field to B, where B is a vector.

B = field(obj) returns the current value of the magnetic field value stored in obj.

See Also

spinw | spinw.temperature | spinw.single_ion