!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!! !!!!! !!!!! 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_Mendelev_2015_Na__MO_094065024556_000 Supported species : Na Model computes energy : True Model computes forces : True Model native length unit : A Model native energy unit : eV Influence distance : 9.2 Angstroms Model cutoffs : [9.2] Angstroms Smallest model cutoff : 9.2 Angstroms Parameters for random cluster generation Random seed: 11 Min. distance between atoms (dmin) : 9.1999999999999993e-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 Na atoms with a diameter 8.280000 Angstroms and a minimum separation of 0.920000 Angstroms between all atoms Cluster positions (Angstroms): [[-7.2600272420496514e+00 2.2394917069340901e+00 9.1481202180200305e-01] [-4.7501260575347697e+00 1.0414260978865555e+00 7.6272790478321029e-02] [ 2.0809163499622243e+00 4.7806961895325877e+00 1.2421732099380906e-01] [ 3.9136774481623610e-01 -1.4139405809257242e+00 -2.0392556288715884e+00] [ 3.7961441544938448e+00 2.4316014734296170e+00 3.5557538608019348e+00]] Calling Model compute... Model returned energy of -1.4165530684845087e+00 eV Model returned forces (eV/Angstrom): [[-3.4135007400211176e-01 1.6293861488154551e-01 1.1404778202082891e-01] [ 4.0871080028590134e-01 -1.9273960527188336e-01 -1.4079999366583446e-01] [ 8.9880347734390673e-02 -1.6856540584726820e-01 1.9029149301378470e-01] [-5.3547201592517760e-02 6.4733503802826067e-02 4.2715316977965150e-02] [-1.0369387242566247e-01 1.3363289243477999e-01 -2.0625459834674431e-01]] Cumulative norm of all forces: 7.2995243344903049e-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.3719463144310746e+01 4.2320259843264214e+00 1.7287441766598186e+00] [-8.9764373058715705e+00 1.9680101039736895e+00 1.4413468475989286e-01] [ 3.9323619895454285e+00 9.0342064829390605e+00 2.3473671660472342e-01] [ 7.3957785168895418e-01 -2.6719604543493709e+00 -3.8536346365324907e+00] [ 7.1736727813386896e+00 4.5950608288559343e+00 6.7194009632586935e+00]] Calling Model compute... Model returned energy of -5.2057368752748016e-02 Hartree Model returned forces (Hartree/Bohr): [[-6.6382025221233421e-03 3.1686517936752169e-03 2.2178764028876587e-03] [ 7.9481601789842850e-03 -3.7481888280503487e-03 -2.7381241260891372e-03] [ 1.7478945998882917e-03 -3.2780754640503425e-03 3.7005806210984368e-03] [-1.0413273519955409e-03 1.2588663103882836e-03 8.3068071898140282e-04] [-2.0165249047536934e-03 2.5987461880371912e-03 -4.0110136168783617e-03]] Cumulative norm of all forces: 1.4195315758805031e-02 Hartree/Bohr Converting energy and forces returned by model back to Angstroms and eV... Converted energy is -1.4165530683395591e+00 eV Converted forces (eV/Angstrom): [[-3.4135007396717898e-01 1.6293861486487085e-01 1.1404778200915761e-01] [ 4.0871080024407558e-01 -1.9273960525215916e-01 -1.4079999365142565e-01] [ 8.9880347725193280e-02 -1.6856540583001930e-01 1.9029149299431233e-01] [-5.3547201587038268e-02 6.4733503796202185e-02 4.2715316973594236e-02] [-1.0369387241505162e-01 1.3363289242110546e-01 -2.0625459832563856e-01]] Cumulative norm of converted forces: 7.2995243337433136e-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.449496078720358e-10 eV Cumulative norm of difference in initial forces and converted forces: 7.469903529680567e-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