Model Extended KIM ID =
=== Verification check vc-unit-conversion start (2019-09-09 21:13:12) ===
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!! !!!!!
!!!!! 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 8.881784197001252e-16 Bohr, which is below
tolerance 1e-06.
Creating Model object with Angstrom and eV as simulator registered units
------------------------------------------------------------------------------------------------------------------------
Results for KIM Model : SW_LeeHwang_2012GGA_Si__MO_040570764911_000
Supported species : Si
Model computes energy : True
Model computes forces : True
Model native length unit : A
Model native energy unit : eV
Influence distance : 3.78934866 Angstroms
Model cutoffs : [3.78934866] Angstroms
Smallest model cutoff : 3.78934866 Angstroms
Parameters for random cluster generation
Random seed: 11
Min. distance between atoms (dmin) : 3.7893486600000004e-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 Si atoms with a diameter 3.410414 Angstroms and a minimum separation of
0.378935 Angstroms between all atoms
Cluster positions (Angstroms):
[[-2.9903015762200367e+00 9.2241466290780505e-01 3.7679801184427292e-01]
[-1.9565091098859198e+00 4.2894854222994000e-01 3.1415673521031147e-02]
[ 8.5709973720667909e-01 1.9691005108339585e+00 5.1163341180073943e-02]
[ 1.6119878688985068e-01 -5.8238193974462105e-01 -8.3994028094152295e-01]
[ 1.5635775831519658e+00 1.0015419331515811e+00 1.4645642530130043e+00]]
Calling Model compute...
Model returned energy of 2.0032224542964350e+01 eV
Model returned forces (eV/Angstrom):
[[-8.0173724628889744e+01 3.8338814848872211e+01 2.6647160364218319e+01]
[ 7.9654703940156381e+01 -3.7833828527739335e+01 -2.6298670251990888e+01]
[-3.3180863535919487e+00 2.9339449225681360e+00 -5.8243365505947375e+00]
[ 8.5660491713025566e-01 2.4838386844316607e-01 -3.0559927317722990e-01]
[ 2.9805021251950756e+00 -3.6873151121441654e+00 5.7814457115445439e+00]]
Cumulative norm of all forces: 1.3109533470712813e+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...
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
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:
[[-5.6508510088927499e+00 1.7431110861730983e+00 7.1204504666398771e-01]
[-3.6972663778889610e+00 8.1059526634338708e-01 5.9367018973306790e-02]
[ 1.6196837647520550e+00 3.7210606772052661e+00 9.6684702447707452e-02]
[ 3.0462155883295838e-01 -1.1005423660067151e+00 -1.5872570919645632e+00]
[ 2.9547334066569828e+00 1.8926399559177964e+00 2.7676253300138089e+00]]
Calling Model compute...
Model returned energy of 7.3617072538383965e-01 Hartree
Model returned forces (Hartree/Bohr):
[[-1.5591308207427896e+00 7.4557129705919400e-01 5.1820480090502918e-01]
[ 1.5490374746228095e+00 -7.3575087595519495e-01 -5.1142774673656033e-01]
[-6.4526510695589026e-02 5.7056148710963837e-02 -1.1326532063272494e-01]
[ 1.6658314599698042e-02 4.8302975377236025e-03 -5.9429600883919333e-03]
[ 5.7961542215871173e-02 -7.1706867352686582e-02 1.1243122655264803e-01]]
Cumulative norm of all forces: 2.5493985435201290e+00 Hartree/Bohr
Converting energy and forces returned by model back to Angstroms and eV...
Converted energy is 2.0032224540914548e+01 eV
Converted forces (eV/Angstrom):
[[-8.0173724620685931e+01 3.8338814844949169e+01 2.6647160361491640e+01]
[ 7.9654703932005674e+01 -3.7833828523867986e+01 -2.6298670249299875e+01]
[-3.3180863532524230e+00 2.9339449222679184e+00 -5.8243365499987547e+00]
[ 8.5660491704260300e-01 2.4838386841774604e-01 -3.0559927314596108e-01]
[ 2.9805021248900920e+00 -3.6873151117668557e+00 5.7814457109529513e+00]]
Cumulative norm of converted forces: 1.3109533469371377e+02 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.0498021058301674e-09 eV
Cumulative norm of difference in initial forces and converted forces: 1.3414386679289088e-08
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 (2019-09-09 21:13:12) ===