Model Extended KIM ID = === Verification check vc-unit-conversion start (2021-08-05 18:43:27) === !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!! !!!!! !!!!! 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 : EAM_Dynamo_FoilesBaskesDaw_1986Universal3_Pd__MO_786012902615_000 Supported species : Pd Model computes energy : True Model computes forces : True Model native length unit : A Model native energy unit : eV Influence distance : 5.300000000000011 Angstroms Model cutoffs : [5.3] Angstroms Smallest model cutoff : 5.300000000000011 Angstroms Parameters for random cluster generation Random seed: 11 Min. distance between atoms (dmin) : 5.3000000000000114e-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 Pd atoms with a diameter 4.770000 Angstroms and a minimum separation of 0.530000 Angstroms between all atoms Cluster positions (Angstroms): [[-4.1824069981373082e+00 1.2901419616033374e+00 5.2701127342941589e-01] [-2.7364856635798191e+00 5.9995199117377795e-01 4.3939759732076346e-02] [ 1.1987887668260668e+00 2.7540967178829097e+00 7.1559978398607546e-02] [ 2.2546185299196259e-01 -8.1455272596808193e-01 -1.1747885688064610e+00] [ 2.1869091324801548e+00 1.4008138923018478e+00 2.0484234198098150e+00]] Calling Model compute... Model returned energy of -4.6718767037207227e+00 eV Model returned forces (eV/Angstrom): [[-6.1870820508117745e+00 2.9533139674163555e+00 2.0665054992915333e+00] [ 6.6303832031043868e+00 -3.1198762554023087e+00 -2.2302072740191834e+00] [ 5.2137986276650083e-01 -1.1908562829631095e+00 1.1869959930260989e+00] [-2.6993114257870904e-01 5.3440931621611498e-01 3.4827021441188644e-01] [-6.9474987248040343e-01 8.2300925473294773e-01 -1.3715644327103356e+00]] Cumulative norm of all forces: 1.0796379969914435e+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: [[-7.9036037679181641e+00 2.4380149692315309e+00 9.9590697133663675e-01] [-5.1712084479477634e+00 1.1337449512022368e+00 8.3034111872547167e-02] [ 2.2653824504990023e+00 5.2044885173453395e+00 1.3522876065272138e-01] [ 4.2606115369037667e-01 -1.5392815660925756e+00 -2.2200286493067654e+00] [ 4.1326593196842545e+00 2.6471546079278814e+00 3.8709592505729522e+00]] Calling Model compute... Model returned energy of -1.7168831422119249e-01 Hartree Model returned forces (Hartree/Bohr): [[-1.2031959797971969e-01 5.7432816689541769e-02 4.0187136497569838e-02] [ 1.2894043345430298e-01 -6.0671937710479823e-02 -4.3370629388409063e-02] [ 1.0139224753704126e-02 -2.3158469217157186e-02 2.3083398524786896e-02] [-5.2493253347135945e-03 1.0392607299479065e-02 6.7727778365009109e-03] [-1.3510734893573819e-02 1.6004982938616179e-02 -2.6672683470448585e-02]] Cumulative norm of all forces: 2.0995617755642507e-01 Hartree/Bohr Converting energy and forces returned by model back to Angstroms and eV... Converted energy is -4.6718767032426740e+00 eV Converted forces (eV/Angstrom): [[-6.1870820501784358e+00 2.9533139671140400e+00 2.0665054990799954e+00] [ 6.6303832024256870e+00 -3.1198762550829495e+00 -2.2302072737908945e+00] [ 5.2137986271315018e-01 -1.1908562828412543e+00 1.1869959929046392e+00] [-2.6993114255108863e-01 5.3440931616143117e-01 3.4827021437624944e-01] [-6.9474987240931252e-01 8.2300925464873276e-01 -1.3715644325699896e+00]] Cumulative norm of converted forces: 1.0796379968809305e+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: 4.780487117272969e-10 eV Cumulative norm of difference in initial forces and converted forces: 1.1051308077025257e-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:43:27) ===