magnetic fields#
This module implements Magnetic field classes, which are mostly bare implementations of
generic fields defined in atomsmltr.environment.fields.
- class atomsmltr.environment.fields.magnetic.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,InterpolatedField1D1DAn interpolated field 1D / 1D
- property type#
a description of the object type
- Type:
str
- class atomsmltr.environment.fields.magnetic.magnetic.InterpMag3D3D(data_position: tuple, data_field: ndarray, origin: ndarray = (0, 0, 0), scale: float = 1.0, tag: str = None)[source]#
Bases:
MagneticField,InterpolatedField3D3DAn interpolated field 3D/3D
- property type#
a description of the object type
- Type:
str
- class atomsmltr.environment.fields.magnetic.magnetic.MagneticField(*args, **kwargs)[source]#
Bases:
FieldA 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.magnetic.MagneticGradient(origin: ndarray, slope: float, gradient_direction: ndarray, field_direction: ndarray, offset: float = 0.0, tag: str = None)[source]#
Bases:
MagneticField,GradientFieldA perfect magnetic field gradient
- property type#
a description of the object type
- Type:
str
- class atomsmltr.environment.fields.magnetic.magnetic.MagneticOffset(field_value: ndarray = (0, 0, 0), tag: str = None)[source]#
Bases:
MagneticField,ConstantFieldA perfect magnetic field offset
- property type#
a description of the object type
- Type:
str
- class atomsmltr.environment.fields.magnetic.magnetic.MagneticQuadrupole(origin: ndarray, strong_axis: ndarray, slope: float, tag: str = None)[source]#
Bases:
MagneticField,QuadrupoleFieldA 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.magnetic.MagneticQuadrupoleX(origin: ndarray, slope: float, tag: str = None)[source]#
Bases:
MagneticField,QuadrupoleFieldXA perfect magnetic field quadrupole, with strong axis along X
- property type#
a description of the object type
- Type:
str
- class atomsmltr.environment.fields.magnetic.magnetic.MagneticQuadrupoleY(origin: ndarray, slope: float, tag: str = None)[source]#
Bases:
MagneticField,QuadrupoleFieldYA perfect magnetic field quadrupole, with strong axis along Y
- property type#
a description of the object type
- Type:
str
- class atomsmltr.environment.fields.magnetic.magnetic.MagneticQuadrupoleZ(origin: ndarray, slope: float, tag: str = None)[source]#
Bases:
MagneticField,QuadrupoleFieldZA perfect magnetic field quadrupole, with strong axis along Z
- property type#
a description of the object type
- Type:
str