Model Extended KIM ID =
=== Verification check vc-unit-conversion start (2021-02-15 12:49:48) ===
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!! !!!!!
!!!!! 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 0.0 Bohr, which is below tolerance 1e-06.
Creating Model object with Angstrom and eV as simulator registered units
------------------------------------------------------------------------------------------------------------------------
Results for KIM Model : MEAM_LAMMPS_ShimKoKim_2013_NiVH__MO_612225165948_000
Supported species : H V Ni
Model computes energy : True
Model computes forces : True
Model native length unit : A
Model native energy unit : eV
Influence distance : 5.0 Angstroms
Model cutoffs : [5.] Angstroms
Smallest model cutoff : 5.0 Angstroms
Parameters for random cluster generation
Random seed: 11
Min. distance between atoms (dmin) : 5.0000000000000000e-01 Angstroms
------------------------------------------------------------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
STEP I: Cluster generation
Attempting to find a species supported by the Model for which a random cluster can be generated
which 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 addtional
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 H atoms with a diameter 4.500000 Angstroms and a minimum separation of
0.500000 Angstroms between all atoms
Cluster positions (Angstroms):
[[-3.9456669793748107e+00 1.2171150581163535e+00 4.9718044663152344e-01]
[-2.5815902486602011e+00 5.6599244450356290e-01 4.1452603520826650e-02]
[ 1.1309327988925133e+00 2.5982044508329278e+00 6.7509413583591873e-02]
[ 2.1269986131317181e-01 -7.6844596789441533e-01 -1.1082911026476026e+00]
[ 2.0631218230944812e+00 1.3215225399074007e+00 1.9324749243488777e+00]]
Calling Model compute...
Model returned energy of -7.6656031828362714e-01 eV
Model returned forces (eV/Angstrom):
[[ 1.9272618526459904e+00 -9.1995103478054385e-01 -6.4389021975899408e-01]
[-1.9269372192110967e+00 9.1980704375511557e-01 6.4376429123780254e-01]
[ 5.4220185824875033e-02 -7.4790291512221302e-02 1.0856924960078612e-01]
[-2.0520346246497297e-04 5.3068012318575430e-04 2.6767271791495182e-04]
[-5.4339615797303772e-02 7.4403602414463810e-02 -1.0871099379750955e-01]]
Cumulative norm of all forces: 3.1606067678560454e+00 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...
Creating random cluster of 5 V atoms with a diameter 4.500000 Angstroms and a minimum separation of
0.500000 Angstroms between all atoms
Cluster positions (Angstroms):
[[-2.1430718817449002e+00 -2.5875884675092969e-01 6.3102626185717492e-01]
[-6.5197990475478285e-01 -1.0631776114699634e+00 -1.0682319476941539e-01]
[ 4.9522717638561697e-01 -7.2935035481630989e-03 3.7483904256586400e+00]
[-2.5161557947041918e-01 -9.2683206211864799e-01 -3.8182072051480709e-01]
[-4.2794709023999400e-01 1.7094882658535653e+00 -2.9639927353597728e+00]]
Calling Model compute...
Model returned energy of 3.4439582469204446e+01 eV
Model returned forces (eV/Angstrom):
[[-3.6963130022831847e+00 2.6721510052998081e+00 1.9121409055524738e+00]
[-9.5623519864113177e+01 -3.8166987368333459e+01 6.7469962940781883e+01]
[-2.9707887151530876e-01 -1.3851555778678287e-01 -6.1658387065058595e-01]
[ 9.9654656033100849e+01 3.6045973344544279e+01 -6.9217955763912570e+01]
[-3.7744295189180738e-02 -4.1262142372384170e-01 4.5243578822879449e-01]]
Cumulative norm of all forces: 1.7663403930081290e+02 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...
Creating random cluster of 5 Ni atoms with a diameter 4.500000 Angstroms and a minimum separation of
0.500000 Angstroms between all atoms
Cluster positions (Angstroms):
[[ 3.4902991720993506e+00 2.1281398042239954e+00 -1.4526019512603630e+00]
[ 3.6124603657069411e-02 -7.1444622913649780e-01 -8.4710021911133537e-01]
[ 1.3704383145083543e+00 1.0095132287955020e+00 -3.1569698282436880e+00]
[ 8.7751816527664750e-01 1.7963234424871455e+00 2.3877109324293000e-01]
[ 1.9012088721215320e-01 4.8628992265208210e-01 2.7333458246575076e-01]]
Calling Model compute...
Model returned energy of 2.3832321860849044e+00 eV
Model returned forces (eV/Angstrom):
[[-1.3948708837041039e+00 -5.2392596744141640e-01 -3.5108100595508684e-01]
[-1.5179105291142256e+00 -1.3523689643132613e+01 -1.3380388962548146e+01]
[ 5.6389562726804909e-01 1.9757721795856709e-01 1.4464323897732079e+00]
[ 1.7314614498747897e+01 3.1893430749175820e+01 -1.5038732319930412e+00]
[-1.4965728713197617e+01 -1.8043392356560357e+01 1.3788910810723067e+01]]
Cumulative norm of all forces: 4.9274143172477011e+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 sizeableenergy/forces from Step I and change
the units from Angstroms to Bohrourselves. Next, create a new Model object wherein we've
registeredBohr and Hartree as the unit set. Ask the model for its neighbor listcutoffs and
influence once more and use them to create a new neighborlist using the coordinates we converted
to Bohr. Finally, have theModel compute the energy and/or forces once more and compare
theresults to our own conversion of the energy and/or forces the modelreturned in Step I.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Creating Model object with Bohr and Hartree as simulator registered units
Cluster positions converted to Bohr:
[[ 6.5957095280425477e+00 4.0216013847558107e+00 -2.7450198558819854e+00]
[ 6.8265607270101128e-02 -1.3501077037918554e+00 -1.6007874141742844e+00]
[ 2.5897530850229447e+00 1.9077035215426965e+00 -5.9658083588764157e+00]
[ 1.6582690016983017e+00 3.3945593374255894e+00 4.5121197269066105e-01]
[ 3.5927640738912769e-01 9.1895477094538092e-01 5.1652750123093649e-01]]
Calling Model compute...
Model returned energy of 8.7582173583634931e-02 Hartree
Model returned forces (Hartree/Bohr):
[[-2.7125921812993423e-02 -1.0188738609894221e-02 -6.8274390331217981e-03]
[-2.9518662130598464e-02 -2.6299391016654144e-01 -2.6020715541906447e-01]
[ 1.0966024794598066e-02 3.8422654232627795e-03 2.8128633532432026e-02]
[ 3.3671566637620087e-01 6.2022852362716996e-01 -2.9245680144508516e-02]
[-2.9103710722720705e-01 -3.5088814027399712e-01 2.6815164106426276e-01]]
Cumulative norm of all forces: 9.5822959007471187e-01 Hartree/Bohr
Converting energy and forces returned by model back to Angstroms and eV...
Converted energy is 2.3832321858410634e+00 eV
Converted forces (eV/Angstrom):
[[-1.3948708835613275e+00 -5.2392596738780584e-01 -3.5108100591921465e-01]
[-1.5179105289588102e+00 -1.3523689641748248e+01 -1.3380388961178568e+01]
[ 5.6389562721033482e-01 1.9757721793832225e-01 1.4464323896252673e+00]
[ 1.7314614496976702e+01 3.1893430745913427e+01 -1.5038732318391517e+00]
[-1.4965728711666898e+01 -1.8043392354715699e+01 1.3788910809311666e+01]]
Cumulative norm of converted forces: 4.9274143167436321e+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: 2.4384094743368223e-10 eV
Cumulative norm of difference in initial forces and converted forces: 5.040681719867964e-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-02-15 12:49:49) ===