Model Extended KIM ID =
=== Verification check vc-unit-conversion start (2021-08-05 18:54:25) ===
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!! !!!!!
!!!!! VERIFICATION CHECK: vc-unit-conversion !!!!!
!!!!! !!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Description: This verification check ensures that a model can properly convert
units of length and energy. Working in one unit system, a random
cluster of atoms is generated based on the smallest cutoff of the
model such that the energy and/or forces (depending on what the
model actually reports) are sizeable. Next, the model is
reinitialized with a different set of registered units. The
coordinates of the atoms in the cluster are rescaled to correspond
to the new length units and the energy and/or forces are requested
from the model once again. The energy and/or force returned by the
model are then compared to a manual conversion of those originally
returned (in the first set of units).
Author: Daniel S. Karls
Checking if model properly converts its cutoffs from Angstrom to Bohr
SUCCESS: Absolute difference in smallest cutoff is 1.7763568394002505e-15 Bohr, which is below
tolerance 1e-06.
Creating Model object with Angstrom and eV as simulator registered units
------------------------------------------------------------------------------------------------------------------------
Results for KIM Model : MEAM_LAMMPS_JangKimLee_2018_ZnMg__MO_474962707676_000
Supported species : Mg Zn
Model computes energy : True
Model computes forces : True
Model native length unit : A
Model native energy unit : eV
Influence distance : 6.0 Angstroms
Model cutoffs : [6.] Angstroms
Smallest model cutoff : 6.0 Angstroms
Parameters for random cluster generation
Random seed: 11
Min. distance between atoms (dmin) : 6.0000000000000009e-01 Angstroms
------------------------------------------------------------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
STEP I: Cluster generation
Attempting to find a species supported by the Model for which a random cluster can be generated
that has significant energy and/or forces (depending on what the Model is able to compute). We
construct the cluster by first placing a single atom at the origin and then generating
additional atom positions that fall within a distance 'rball' of the origin; no atoms are
allowed to fall within a distance of 'dmin' of one another. Note that 'rball' is chosen to be
0.9 * the smallest cutoff reported by the Model in Angstroms. In the event that the Model's
native length unit is not Angstroms and the cutoffs it reports are improperly converted to
Angstroms, it's possible that the cluster generated may actually be far too large for atomic
interactions to occur. Accordingly, if the energy and/or forces are not sizable using the
initial value of 'rball', we regenerate the cluster positions iteratively using smaller and
smaller values of 'rball' (while keeping 'dmin' fixed); if the energy and/or forces still aren't
sizeable when generating a cluster using rball = 0.2 * the smallest cutoff reported by the
Model, that species is skipped and the process is repeated for the next species.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Creating random cluster of 5 Mg atoms with a diameter 5.400000 Angstroms and a minimum separation of
0.600000 Angstroms between all atoms
Cluster positions (Angstroms):
[[-4.7348003752497716e+00 1.4605380697396240e+00 5.9661653595782804e-01]
[-3.0979082983922410e+00 6.7919093340427528e-01 4.9743124224991969e-02]
[ 1.3571193586710160e+00 3.1178453409995135e+00 8.1011296300310245e-02]
[ 2.5523983357580615e-01 -9.2213516147329821e-01 -1.3299493231771229e+00]
[ 2.4757461877133768e+00 1.5858270478888805e+00 2.3189699092186529e+00]]
Calling Model compute...
Model returned energy of 1.2215226576885732e+00 eV
Model returned forces (eV/Angstrom):
[[-8.1869949061067224e+00 3.9475360649490314e+00 2.7532709115821059e+00]
[ 8.4380683656623603e+00 -4.0198103795039444e+00 -2.8378044169858656e+00]
[-1.4397634950633331e-01 -5.4853640975889448e-02 -1.4195319951759794e-01]
[-1.1468345010617113e-01 2.5218222697781933e-01 1.9340388963979566e-01]
[ 7.5863400568665796e-03 -1.2505427144701703e-01 3.3082815281562025e-02]]
Cumulative norm of all forces: 1.3630050149613050e+01 eV/Angstrom
SUCCESS: Absolute value of energy exceeds tolerance 0.001 eV and cumulative norm of forces on
all atoms exceeds tolerance 0.001 eV/Angstrom. Proceeding with unit conversion...
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
STEP II: Convert units and ask model to recompute energy and/or forces
Take the set of coordinates that was found to have sizeable energy/forces from Step I and change
the units from Angstroms to Bohr ourselves. Next, create a new Model object wherein we've
registered Bohr and Hartree as the unit set. Ask the model for its neighbor list cutoffs and
influence once more and use them to create a new neighbor list using the coordinates we
converted to Bohr. Finally, have the Model compute the energy and/or forces once more and
compare the results to our own conversion of the energy and/or forces the model returned in Step
I.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Creating Model object with Bohr and Hartree as simulator registered units
Cluster positions converted to Bohr:
[[-8.9474759636809189e+00 2.7600169462998401e+00 1.1274418543433600e+00]
[-5.8541982429597192e+00 1.2834848504176235e+00 9.4000881365147504e-02]
[ 2.5645839062252795e+00 5.8918737932211265e+00 1.5308916300308048e-01]
[ 4.8233338153627442e-01 -1.7425829050104591e+00 -2.5132399803472767e+00]
[ 4.6784822486991446e+00 2.9967788014277832e+00 4.3822180195165386e+00]]
Calling Model compute...
Model returned energy of 4.4890132848437229e-02 Hartree
Model returned forces (Hartree/Bohr):
[[-1.5921171364384332e-01 7.6767359547593242e-02 5.3542598350924071e-02]
[ 1.6409431540490318e-01 -7.8172871289653931e-02 -5.5186513414999215e-02]
[-2.7998944169355189e-03 -1.0667335548064961e-03 -2.7605504109408019e-03]
[-2.2302381798694490e-03 4.9041638559847705e-03 3.7611071031655109e-03]
[ 1.4753083574510674e-04 -2.4319185591176011e-03 6.4335837185043295e-04]]
Cumulative norm of all forces: 2.6506229285091626e-01 Hartree/Bohr
Converting energy and forces returned by model back to Angstroms and eV...
Converted energy is 1.2215226575635831e+00 eV
Converted forces (eV/Angstrom):
[[-8.1869949052689410e+00 3.9475360645450759e+00 2.7532709113003606e+00]
[ 8.4380683647989088e+00 -4.0198103790926067e+00 -2.8378044166954801e+00]
[-1.4397634949159696e-01 -5.4853640970266175e-02 -1.4195319950307178e-01]
[-1.1468345009446183e-01 2.5218222695201803e-01 1.9340388962001218e-01]
[ 7.5863400560914973e-03 -1.2505427143422185e-01 3.3082815278179099e-02]]
Cumulative norm of converted forces: 1.3630050148218293e+01 eV/Angstrom
========================================================================================================================
To pass this verification check, the Model must be able to compute the energy and/or forces for a
random cluster of atoms in two different sets of units. If energies are computed, the results must
match within 1e-06 eV. If forces are computed, the cumulative norm of the difference between the
forces computed in one set of units and the other must be less than 1e-06 eV/Angstrom.
Absolute difference between initial energy and converted energy: 1.2499001833532475e-10 eV
Cumulative norm of difference in initial forces and converted forces: 1.39475404378676e-09
eV/Angstrom
SUCCESS: Absolute difference in energy is below tolerance 1e-06 and cumulative norm of difference in
forces on all atoms is below tolerance 1e-06.
Grade: P
Comment: Unit conversion successful
=== Verification check vc-unit-conversion end (2021-08-05 18:54:25) ===