Model Extended KIM ID = === Verification check vc-unit-conversion start (2019-09-09 23:04:41) === !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!! !!!!! !!!!! 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 : Morse_Shifted_GirifalcoWeizer_1959HighCutoff_W__MO_646516726498_003 Supported species : W Model computes energy : True Model computes forces : True Model native length unit : A Model native energy unit : eV Influence distance : 10.0478 Angstroms Model cutoffs : [10.0478] Angstroms Smallest model cutoff : 10.0478 Angstroms Parameters for random cluster generation Random seed: 11 Min. distance between atoms (dmin) : 1.0047800000000000e+00 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 W atoms with a diameter 9.043020 Angstroms and a minimum separation of 1.004780 Angstroms between all atoms Cluster positions (Angstroms): [[-7.9290545350724440e+00 2.4458657361882992e+00 9.9911393833284412e-01] [-5.1878605000975941e+00 1.1373957767765799e+00 8.3301493931312406e-02] [ 2.2726773153424391e+00 5.2212477362158189e+00 1.3566421716104290e-01] [ 4.2743313330049754e-01 -1.5442382792419012e+00 -2.2271774682365160e+00] [ 4.1459670908177459e+00 2.6556788352963161e+00 3.8834243089745311e+00]] Calling Model compute... Model returned energy of -1.1107030501030291e+00 eV Model returned forces (eV/Angstrom): [[ 3.5673366120506983e-01 -1.7028176121583741e-01 -1.1919076332113719e-01] [-3.4100534771560392e-01 1.6387929680054558e-01 1.1317609841408530e-01] [ 6.7141249730329464e-02 -1.0138650508015505e-01 1.3753372468605896e-01] [-1.2441371922140629e-02 1.3192744933535267e-02 9.1158930884521362e-03] [-7.0428191297654763e-02 9.4596224561911621e-02 -1.4063495286745920e-01]] Cumulative norm of all forces: 6.2786345606104299e-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: [[-1.4983741497978858e+01 4.6220163788385893e+00 1.8880517106785353e+00] [-9.8036355176017800e+00 2.1493665133377000e+00 1.5741700929678823e-01] [ 4.2947376954950611e+00 9.8667282499212057e+00 2.5636821533705872e-01] [ 8.0773155850002976e-01 -2.9181874188273489e+00 -4.2087554457555605e+00] [ 7.8347423230798805e+00 5.0185056734976810e+00 7.3386083694163817e+00]] Calling Model compute... Model returned energy of -4.0817587099559967e-02 Hartree Model returned forces (Hartree/Bohr): [[ 6.9373656837794055e-03 -3.3114532641571794e-03 -2.3178914725745514e-03] [-6.6314986627168150e-03 3.1869451457580814e-03 2.2009248544408396e-03] [ 1.3056895171366942e-03 -1.9716537507714189e-03 2.6746053029488366e-03] [-2.4194618007236372e-04 2.5655805977936618e-04 1.7727590851729572e-04] [-1.3696103581269210e-03 1.8396038093911509e-03 -2.7349145933324207e-03]] Cumulative norm of all forces: 1.2210001095672100e-02 Hartree/Bohr Converting energy and forces returned by model back to Angstroms and eV... Converted energy is -1.1107030499893762e+00 eV Converted forces (eV/Angstrom): [[ 3.5673366116856609e-01 -1.7028176119841293e-01 -1.1919076330894070e-01] [-3.4100534768070950e-01 1.6387929678377622e-01 1.1317609840250424e-01] [ 6.7141249723459306e-02 -1.0138650506978077e-01 1.3753372467198596e-01] [-1.2441371920867588e-02 1.3192744932185325e-02 9.1158930875193580e-03] [-7.0428191290448278e-02 9.4596224552232155e-02 -1.4063495285306885e-01]] Cumulative norm of converted forces: 6.2786345599679561e-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.136528648970625e-10 eV Cumulative norm of difference in initial forces and converted forces: 6.424747432589002e-11 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 23:04:41) ===