Interoperability¶
ASE¶
to_ase ¶
The system as an ase.Atoms.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
system
|
System
|
The atoms. Elements, masses, velocities, charges and |
required |
Returns:
| Type | Description |
|---|---|
Atoms
|
A new object; nothing is shared with the system. |
from_ase ¶
An ase.Atoms as a System.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
atoms
|
Atoms
|
The atoms. Masses set on them, momenta, initial charges and the
constraints |
required |
Returns:
| Type | Description |
|---|---|
System
|
A new system; nothing is shared with the atoms. |
Raises:
| Type | Description |
|---|---|
InvalidParameter
|
If the atoms have constraints other than |
to_ase_calculator ¶
An MDAPY calculator as an ASE calculator.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
calculator
|
Calculator
|
Any MDAPY calculator, such as |
required |
Returns:
| Type | Description |
|---|---|
Calculator
|
A calculator for |
from_ase_calculator ¶
An ASE calculator as an MDAPY calculator.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
calculator
|
Calculator
|
Any ASE calculator, such as EMT or the calculator of a machine-learned potential. |
required |
Returns:
| Type | Description |
|---|---|
Calculator
|
An MDAPY calculator with the properties that the ASE calculator
computes: |
OVITO¶
to_ovito ¶
The system as an OVITO data collection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
system
|
System
|
The atoms. The box becomes the simulation cell; elements, or the
|
required |
Returns:
| Type | Description |
|---|---|
DataCollection
|
A new data collection; nothing is shared with the system. |
from_ovito ¶
An OVITO data collection as a System.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
DataCollection
|
The particles, for example the output of a pipeline,
|
required |
Returns:
| Type | Description |
|---|---|
System
|
A new system; nothing is shared with the data collection. |
pymatgen¶
to_pymatgen ¶
The system as a pymatgen Structure.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
system
|
System
|
The atoms, with an |
required |
Returns:
| Type | Description |
|---|---|
Structure
|
A new structure; nothing is shared with the system. |
Raises:
| Type | Description |
|---|---|
MissingProperty
|
If the system has no |
from_pymatgen ¶
A pymatgen Structure or Molecule as a System.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
structure
|
Structure or Molecule
|
The atoms, each site of one element. The lattice of a structure
becomes the box, with its periodicity; a molecule gets a box that
encloses it, not periodic. The site properties |
required |
Returns:
| Type | Description |
|---|---|
System
|
A new system; nothing is shared with the structure. |
Raises:
| Type | Description |
|---|---|
InvalidParameter
|
If a site is disordered, with more than one element. |
freud¶
to_freud ¶
The system as a freud box and points, the input of freud's analyses.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
system
|
System
|
The atoms, in a right-handed box periodic in every direction. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
box |
Box
|
The box, with its first vector along x and its second in the xy plane, as freud keeps boxes. |
points |
ndarray
|
(N, 3) float32 positions in that box, centered on the origin as freud expects, moved into the box. |
Raises:
| Type | Description |
|---|---|
InvalidParameter
|
If the box is not periodic in every direction, or is left-handed. |
from_freud ¶
A freud box and points as a System.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
box
|
Box
|
A three-dimensional box; its periodicity becomes that of the system. |
required |
points
|
array_like
|
(N, 3) float64 positions in the box. |
required |
Returns:
| Type | Description |
|---|---|
System
|
The points in a box with freud's vectors, its origin at the corner of the box centered on the origin. |
Raises:
| Type | Description |
|---|---|
InvalidParameter
|
If the box is two-dimensional. |