forces#

This module implements Forces field classes, which are mostly bare implementations of generic fields defined in atomsmltr.environment.fields.

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

Bases: Force, ConstantField

A constant Force

property type#

a description of the object type

Type:

str

class atomsmltr.environment.fields.force.force.Force(*args, **kwargs)[source]#

Bases: Field

A generic force field class. Used to set some properties common to all forces 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.force.force.GradientForce(origin: ndarray, slope: float, gradient_direction: ndarray, field_direction: ndarray, offset: float = 0.0, tag: str = None)[source]#

Bases: Force, GradientField

A perfect force gradient

property type#

a description of the object type

Type:

str