atomsmltr.environment.fields.magnetic package#

The atomsmltr.environment.fields.magnetic subpackage provides definitions for magnetic fields

Those are mostly direct implementations of generic Fields objects from atomsmltr.environment.fields.generic

Examples

Setup a magnetic field offset

from atomsmltr.environment.fields import MagneticOffset
offset_field = MagneticOffset(offset=(0,1,0), tag="offset")
class atomsmltr.environment.fields.magnetic.InterpMag1D1D(data_position: ndarray, data_field: ndarray, field_direction: ndarray = (1, 0, 0), position_direction: ndarray = (1, 0, 0), origin: ndarray = (0, 0, 0), scale: float = 1.0, tag: str = None)[source]#

Bases: MagneticField, InterpolatedField1D1D

An interpolated field 1D / 1D

property type#

a description of the object type

Type:

str

class atomsmltr.environment.fields.magnetic.InterpMag3D3D(data_position: tuple, data_field: ndarray, origin: ndarray = (0, 0, 0), scale: float = 1.0, tag: str = None)[source]#

Bases: MagneticField, InterpolatedField3D3D

An interpolated field 3D/3D

property type#

a description of the object type

Type:

str

class atomsmltr.environment.fields.magnetic.MagneticField(*args, **kwargs)[source]#

Bases: Field

A generic magnetic field class. Used to set some properties common to all magnetic fields objects, and to have a way to identify magnetic field objects.

property type#

a description of the object type

Type:

str

property unit#

returns the unit of the field

Type:

str

class atomsmltr.environment.fields.magnetic.MagneticGradient(origin: ndarray, slope: float, gradient_direction: ndarray, field_direction: ndarray, offset: float = 0.0, tag: str = None)[source]#

Bases: MagneticField, GradientField

A perfect magnetic field gradient

property type#

a description of the object type

Type:

str

class atomsmltr.environment.fields.magnetic.MagneticOffset(field_value: ndarray = (0, 0, 0), tag: str = None)[source]#

Bases: MagneticField, ConstantField

A perfect magnetic field offset

property type#

a description of the object type

Type:

str

class atomsmltr.environment.fields.magnetic.MagneticQuadrupole(origin: ndarray, strong_axis: ndarray, slope: float, tag: str = None)[source]#

Bases: MagneticField, QuadrupoleField

A perfect magnetic field quadrupole, with strong axis along a given vector (x,y,z)

property type#

a description of the object type

Type:

str

class atomsmltr.environment.fields.magnetic.MagneticQuadrupoleX(origin: ndarray, slope: float, tag: str = None)[source]#

Bases: MagneticField, QuadrupoleFieldX

A perfect magnetic field quadrupole, with strong axis along X

property type#

a description of the object type

Type:

str

class atomsmltr.environment.fields.magnetic.MagneticQuadrupoleY(origin: ndarray, slope: float, tag: str = None)[source]#

Bases: MagneticField, QuadrupoleFieldY

A perfect magnetic field quadrupole, with strong axis along Y

property type#

a description of the object type

Type:

str

class atomsmltr.environment.fields.magnetic.MagneticQuadrupoleZ(origin: ndarray, slope: float, tag: str = None)[source]#

Bases: MagneticField, QuadrupoleFieldZ

A perfect magnetic field quadrupole, with strong axis along Z

property type#

a description of the object type

Type:

str

Submodules#