I’ve never run a simulation in nano units. There could be
any number of problems with the model as you defined it
in the script you sent.
Your original email said:
I’m not sure if qelectron is the offender, but the attached sctipt behaves… weird, like the particles are actually charged for >about 1 e (in the file the charge is set to 0.00000000000000000008).
Also, slightly larger charge results in energies on the order of 10e+40 and crashes everything.
Same simulation behaved correctly in lj units.
Can you post two scripts, one for nano, one for LJ units.
Preferably simpler than the one you sent. E.g. no
minimzation, smaller number of particles. Just initialize
the system and run a couple timesteps of dynamics.
Show me that the temp, energy, pressure
is identical (or not) at each step for the 2 cases, once you
do the unit conversion for the output.
In fact, for the issue you are focusing on with
charge, you should be able to run a system
with 2 particles, separated by some distance.
I am guessing your two scripts will not be
for identical systems. Attached are 2 scripts
that do this test for an Au lattice. The
output is not exactly identical b/c they
were written for an old version of LAMMPS and
the conversion factors in the current code
are now more precise. But it’s very close. They illustrate
how to do the comparison I’m talking about.
You’ll also note that none of the numeric
values in the real-units scripts are nice round
LJ-like values. Many of the numbers in
your nano-units script are, as if they were copied
from a LJ-units script.
That makes me guess you are not in fact
running the same system with your 2 scripts.
Steve
in.au.lj (446 Bytes)
in.au.real (585 Bytes)