EAM#
- class ase.calculators.eam.EAM(restart=None, ignore_bad_restart_file=<object object>, label='.', atoms=None, form=None, **kwargs)[source]#
EAM Interface Documentation
Introduction#
The Embedded Atom Method (EAM) [1] is a classical potential which is good for modelling metals, particularly fcc materials. Because it is an equiaxial potential the EAM does not model directional bonds well. However, the Angular Dependent Potential (ADP) [2] which is an extended version of EAM is able to model directional bonds and is also included in the EAM calculator.
Generally all that is required to use this calculator is to supply a potential file or as a set of functions that describe the potential. The files containing the potentials for this calculator are not included but many suitable potentials can be downloaded from The Interatomic Potentials Repository Project at https://www.ctcms.nist.gov/potentials/
Theory#
A single element EAM potential is defined by three functions: the embedded energy, electron density and the pair potential. A two element alloy contains the individual three functions for each element plus cross pair interactions. The ADP potential has two additional sets of data to define the dipole and quadrupole directional terms for each alloy and their cross interactions.
The total energy \(E_{\rm tot}\) of an arbitrary arrangement of atoms is given by the EAM potential as
\[E_\text{tot} = \sum_i F(\bar\rho_i) + \frac{1}{2}\sum_{i\ne j} \phi(r_{ij})\]and
\[\bar\rho_i = \sum_j \rho(r_{ij})\]where \(F\) is an embedding function, namely the energy to embed an atom \(i\) in the combined electron density \(\bar\rho_i\) which is contributed from each of its neighbouring atoms \(j\) by an amount \(\rho(r_{ij})\), \(\phi(r_{ij})\) is the pair potential function representing the energy in bond \(ij\) which is due to the short-range electro-static interaction between atoms, and \(r_{ij}\) is the distance between an atom and its neighbour for that bond.
The ADP potential is defined as
\[E_\text{tot} = \sum_i F(\bar\rho_i) + \frac{1}{2}\sum_{i\ne j} \phi(r_{ij}) + \frac{1}{2} \sum_{i,\alpha} (\mu_i^\alpha)^2 + \frac{1}{2} \sum_{i,\alpha,\beta} (\lambda_i^{\alpha\beta})^2 - \frac{1}{6} \sum_i \nu_i^2\]where \(\mu_i^\alpha\) is the dipole vector, \(\lambda_i^{\alpha\beta}\) is the quadrupole tensor and \(\nu_i\) is the trace of \(\lambda_i^{\alpha\beta}\).
The fs potential is defined as
\[E_i = F_\alpha (\sum_{j\neq i} \rho_{\alpha \beta}(r_{ij})) + \frac{1}{2}\sum_{j\neq i}\phi_{\alpha \beta}(r_{ij})\]where \(\alpha\) and \(\beta\) are element types of atoms. This form is similar to original EAM formula above, except that \(\rho\) and \(\phi\) are determined by element types.
Running the Calculator#
EAM calculates the cohesive atom energy, forces and stress. Internally the potential functions are defined by splines which may be directly supplied or created by reading the spline points from a data file from which a spline function is created. The LAMMPS compatible
.alloy,.fsand.adpformats are supported. The LAMMPS.eamformat is slightly different from the.alloyformat and is currently not supported.For example:
from ase.calculators.eam import EAM mishin = EAM(potential='Al99.eam.alloy') mishin.write_potential('new.eam.alloy') mishin.plot() slab.calc = mishin slab.get_potential_energy() slab.get_forces() slab.get_stress()
The breakdown of energy contribution from the indvidual components are stored in the calculator instance
.results['energy_components']Arguments:#
Keyword
Description
potentialfile of potential in
.eam,.alloy,.adpor.fsformat or file object (This is generally all you need to supply). For file object theformargument is requiredelements[N]array of N element abbreviations
embedded_energy[N]arrays of embedded energy functions
electron_density[N]arrays of electron density functions
phi[N,N]arrays of pair potential functions
d_embedded_energy[N]arrays of derivative embedded energy functions
d_electron_density[N]arrays of derivative electron density functions
d_phi[N,N]arrays of derivative pair potentials functions
d[N,N], q[N,N]ADP dipole and quadrupole function
d_d[N,N], d_q[N,N]ADP dipole and quadrupole derivative functions
skinskin distance passed to NeighborList(). If no atom has moved more than the skin-distance since the last call to the
update()method then the neighbor list can be reused. Defaults to 1.0.formthe form of the potential
eam,alloy,adporfs. This will be determined from the file suffix or must be set if using equations or file objectAdditional parameters for writing potential files#
The following parameters are only required for writing a potential in
.alloy,.adporfsformat file.Keyword
Description
headerThree line text header. Default is standard message.
Z[N]Array of atomic number of each element
mass[N]Atomic mass of each element
a[N]Array of lattice parameters for each element
lattice[N]Lattice type
nrhoNo. of rho samples along embedded energy curve
drhoIncrement for sampling density
nrNo. of radial points along density and pair potential curves
drIncrement for sampling radius
Special features#
.plot()Plots the individual functions. This may be called from multiple EAM potentials to compare the shape of the individual curves. This function requires the installation of the Matplotlib libraries.
Notes/Issues#
Although currently not fast, this calculator can be good for trying small calculations or for creating new potentials by matching baseline data such as from DFT results. The format for these potentials is compatible with LAMMPS and so can be used either directly by LAMMPS or with the ASE LAMMPS calculator interface.
Supported formats are the LAMMPS
.alloyand.adp. The.eamformat is currently not supported. The form of the potential will be determined from the file suffix.Any supplied values will override values read from the file.
The derivative functions, if supplied, are only used to calculate forces.
There is a bug in early versions of scipy that will cause eam.py to crash when trying to evaluate splines of a potential with one neighbor such as caused by evaluating a dimer.
Basic calculator implementation.
- restart: str
Prefix for restart file. May contain a directory. Default is None: don’t restart.
- ignore_bad_restart_file: bool
Deprecated, please do not use. Passing more than one positional argument to Calculator() is deprecated and will stop working in the future. Ignore broken or missing restart file. By default, it is an error if the restart file is missing or broken.
- directory: str or PurePath
Working directory in which to read and write files and perform calculations.
- label: str
Name used for all files. Not supported by all calculators. May contain a directory, but please use the directory parameter for that instead.
- atoms: Atoms object
Optional Atoms object to which the calculator will be attached. When restarting, atoms will get its positions and unit-cell updated from file.