Model Extended KIM ID = === Verification check vc-unit-conversion start (2021-08-05 18:44:16) === !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!! !!!!! !!!!! 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 : EAM_Dynamo_LandaWynblattSiegel_2000_AlPb__MO_699137396381_005 Supported species : Al Pb Model computes energy : True Model computes forces : True Model native length unit : A Model native energy unit : eV Influence distance : 5.687316 Angstroms Model cutoffs : [5.687316] Angstroms Smallest model cutoff : 5.687316 Angstroms Parameters for random cluster generation Random seed: 11 Min. distance between atoms (dmin) : 5.6873160000000000e-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 Al atoms with a diameter 5.118584 Angstroms and a minimum separation of 0.568732 Angstroms between all atoms Cluster positions (Angstroms): [[-4.4880509884940052e+00 1.3844235887732133e+00 5.6552446180292182e-01] [-2.9364639053298278e+00 6.4379557710084490e-01 4.7150811049130742e-02] [ 1.2863944404132346e+00 2.9553619488986649e+00 7.6789473604915878e-02] [ 2.4193826488883657e-01 -8.7407900966827878e-01 -1.2606403441490703e+00] [ 2.3467251508868823e+00 1.5031832571151995e+00 2.1981191113696319e+00]] Calling Model compute... Model returned energy of -1.4829915710626678e+00 eV Model returned forces (eV/Angstrom): [[-6.1453859077841848e+00 2.9334034608113244e+00 2.0499944805156698e+00] [ 6.9687704345234138e+00 -3.2254281897210939e+00 -2.3459430459003903e+00] [-1.5653937028470899e-02 -6.1345711651816870e-01 2.2922213246794926e-01] [-5.7201814165863296e-01 7.4297545123122033e-01 5.1537561047206260e-01] [-2.3571244805212530e-01 1.6250639419671797e-01 -4.4864917755529099e-01]] Cumulative norm of all forces: 1.0812071950934099e+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.4811872013096519e+00 2.6161814231603704e+00 1.0686863495461101e+00] [-5.5491125557261167e+00 1.2165973209229595e+00 8.9102119433684221e-02] [ 2.4309331805362553e+00 5.5848246823612007e+00 1.4511107436233794e-01] [ 4.5719705969089303e-01 -1.6517699394987440e+00 -2.3822649920114585e+00] [ 4.4346678247904388e+00 2.8406046709701758e+00 4.1538431096474540e+00]] Calling Model compute... Model returned energy of -5.4498938860524961e-02 Hartree Model returned forces (Hartree/Bohr): [[-1.1950873703991745e-01 5.7045618955520884e-02 3.9866048281020826e-02] [ 1.3552101785765630e-01 -6.2724596168688987e-02 -4.5621331970057050e-02] [-3.0442062907801897e-04 -1.1929842376598590e-02 4.4576610751396713e-03] [-1.1123982561770877e-02 1.4448573150765875e-02 1.0022460628660570e-02] [-4.5838776268899428e-03 3.1602464390008177e-03 -8.7248380147640185e-03]] Cumulative norm of all forces: 2.1026133802340011e-01 Hartree/Bohr Converting energy and forces returned by model back to Angstroms and eV... Converted energy is -1.4829915709109169e+00 eV Converted forces (eV/Angstrom): [[-6.1453859071553607e+00 2.9334034605111659e+00 2.0499944803059047e+00] [ 6.9687704338103371e+00 -3.2254281893910535e+00 -2.3459430456603423e+00] [-1.5653937026868271e-02 -6.1345711645539480e-01 2.2922213244449557e-01] [-5.7201814160010100e-01 7.4297545115519259e-01 5.1537561041932567e-01] [-2.3571244802800631e-01 1.6250639418008994e-01 -4.4864917750938349e-01]] Cumulative norm of converted forces: 1.0812071949827756e+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.5175083412088952e-10 eV Cumulative norm of difference in initial forces and converted forces: 1.106341150756518e-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:44:16) ===