Files
lammps/examples/python/log.4May17.pair_python_coulomb.g++.4
Axel Kohlmeyer 67962b15fc a bunch refactoring changes in the python pair style and the examples
- make all python potential classes derived from LAMMPSPairPotential
  which contains shared functionality. We currently don't check
  for supported atom types. may want to add that again later.
- keep track of skipped atom types in the C++ code.
- add test against units setting. must set self.units='...' in constructor
- make compute_force method consistent with Pair::single() in LAMMPS and return force/r instead of force.
- rename potentials.py to py_pot.py
- update test runs. some small tweaks.
2017-05-17 20:55:48 -04:00

179 lines
6.1 KiB
Groff

LAMMPS (4 May 2017)
using 1 OpenMP thread(s) per MPI task
units real
atom_style full
read_data data.spce
orthogonal box = (0.02645 0.02645 0.02641) to (35.5328 35.5328 35.4736)
2 by 2 by 1 MPI processor grid
reading atoms ...
4500 atoms
scanning bonds ...
2 = max bonds/atom
scanning angles ...
1 = max angles/atom
reading bonds ...
3000 bonds
reading angles ...
1500 angles
2 = max # of 1-2 neighbors
1 = max # of 1-3 neighbors
1 = max # of 1-4 neighbors
2 = max # of special neighbors
pair_style hybrid/overlay coul/long 12.0 python 12.0
kspace_style pppm 1.0e-6
pair_coeff * * coul/long
pair_coeff * * python py_pot.LJCutSPCE OW NULL
pair_modify table 0
bond_style harmonic
angle_style harmonic
dihedral_style none
improper_style none
bond_coeff 1 1000.00 1.000
angle_coeff 1 100.0 109.47
special_bonds lj/coul 0.0 0.0 1.0
2 = max # of 1-2 neighbors
1 = max # of 1-3 neighbors
2 = max # of special neighbors
neighbor 2.0 bin
fix 1 all shake 0.0001 20 0 b 1 a 1
0 = # of size 2 clusters
0 = # of size 3 clusters
0 = # of size 4 clusters
1500 = # of frozen angles
fix 2 all nvt temp 300.0 300.0 100.0
# create combined lj/coul table for all atom types
# generate tabulated potential from python variant
pair_write 1 1 2000 rsq 0.1 12 spce.table OW-OW -0.8472 -0.8472
PPPM initialization ...
WARNING: Using polynomial approximation for long-range coulomb (../kspace.cpp:321)
G vector (1/distance) = 0.279652
grid = 40 40 40
stencil order = 5
estimated absolute RMS force accuracy = 0.000394206
estimated relative force accuracy = 1.18714e-06
using double precision FFTs
3d grid and FFT values/proc = 34263 16000
Neighbor list info ...
update every 1 steps, delay 10 steps, check yes
max neighbors/atom: 2000, page size: 100000
master list distance cutoff = 14
ghost atom cutoff = 14
binsize = 7, bins = 6 6 6
2 neighbor lists, perpetual/occasional/extra = 2 0 0
(1) pair coul/long, perpetual
attributes: half, newton on
pair build: half/bin/newton
stencil: half/bin/3d/newton
bin: standard
(2) pair python, perpetual, skip from (1)
attributes: half, newton on
pair build: skip
stencil: none
bin: none
pair_write 1 2 2000 rsq 0.1 12 spce.table OW-HW -0.8472 0.4236
PPPM initialization ...
WARNING: Using polynomial approximation for long-range coulomb (../kspace.cpp:321)
G vector (1/distance) = 0.279652
grid = 40 40 40
stencil order = 5
estimated absolute RMS force accuracy = 0.000394206
estimated relative force accuracy = 1.18714e-06
using double precision FFTs
3d grid and FFT values/proc = 34263 16000
pair_write 2 2 2000 rsq 0.1 12 spce.table HW-HW 0.4236 0.4236
PPPM initialization ...
WARNING: Using polynomial approximation for long-range coulomb (../kspace.cpp:321)
G vector (1/distance) = 0.279652
grid = 40 40 40
stencil order = 5
estimated absolute RMS force accuracy = 0.000394206
estimated relative force accuracy = 1.18714e-06
using double precision FFTs
3d grid and FFT values/proc = 34263 16000
# switch to tabulated potential
pair_style table linear 2000 pppm
pair_coeff 1 1 spce.table OW-OW
pair_coeff 1 2 spce.table OW-HW
pair_coeff 2 2 spce.table HW-HW
thermo 10
run 100
PPPM initialization ...
WARNING: Using 12-bit tables for long-range coulomb (../kspace.cpp:321)
G vector (1/distance) = 0.279652
grid = 40 40 40
stencil order = 5
estimated absolute RMS force accuracy = 0.000394674
estimated relative force accuracy = 1.18855e-06
using double precision FFTs
3d grid and FFT values/proc = 34263 16000
Neighbor list info ...
update every 1 steps, delay 10 steps, check yes
max neighbors/atom: 2000, page size: 100000
master list distance cutoff = 14
ghost atom cutoff = 14
binsize = 7, bins = 6 6 6
1 neighbor lists, perpetual/occasional/extra = 1 0 0
(1) pair table, perpetual
attributes: half, newton on
pair build: half/bin/newton
stencil: half/bin/3d/newton
bin: standard
Per MPI rank memory allocation (min/avg/max) = 13.05 | 13.05 | 13.05 Mbytes
Step Temp E_pair E_mol TotEng Press
0 0 -100272.97 0 -100272.97 -1282.0708
10 120.61568 -101350.63 0 -100272.39 -4077.5051
20 136.11379 -101465.43 0 -100248.65 -5136.5677
30 137.01602 -101455.3 0 -100230.46 -5347.8311
40 153.424 -101582.46 0 -100210.93 -5223.1676
50 167.73654 -101686.24 0 -100186.77 -4468.6687
60 163.11642 -101618.16 0 -100159.99 -3291.7815
70 169.64512 -101647.89 0 -100131.35 -2611.638
80 182.9979 -101737.01 0 -100101.11 -2390.6293
90 191.33873 -101778.71 0 -100068.24 -2239.386
100 194.7458 -101775.84 0 -100034.92 -1951.9128
Loop time of 2.35848 on 4 procs for 100 steps with 4500 atoms
Performance: 3.663 ns/day, 6.551 hours/ns, 42.400 timesteps/s
99.0% CPU use with 4 MPI tasks x 1 OpenMP threads
MPI task timing breakdown:
Section | min time | avg time | max time |%varavg| %total
---------------------------------------------------------------
Pair | 1.5061 | 1.5612 | 1.6879 | 5.9 | 66.20
Bond | 9.5129e-05 | 0.00012672 | 0.00014567 | 0.0 | 0.01
Kspace | 0.52033 | 0.64456 | 0.69933 | 9.1 | 27.33
Neigh | 0.066265 | 0.066342 | 0.06644 | 0.0 | 2.81
Comm | 0.03394 | 0.036139 | 0.038043 | 0.8 | 1.53
Output | 0.00040889 | 0.00044978 | 0.00056887 | 0.0 | 0.02
Modify | 0.04557 | 0.045813 | 0.046082 | 0.1 | 1.94
Other | | 0.003826 | | | 0.16
Nlocal: 1125 ave 1154 max 1092 min
Histogram: 1 0 0 0 1 0 0 1 0 1
Nghost: 12256.2 ave 12296 max 12213 min
Histogram: 1 0 1 0 0 0 0 0 1 1
Neighs: 650442 ave 678824 max 626375 min
Histogram: 1 0 0 0 2 0 0 0 0 1
Total # of neighbors = 2601766
Ave neighs/atom = 578.17
Ave special neighs/atom = 2
Neighbor list builds = 3
Dangerous builds = 0
shell rm spce.table
Total wall time: 0:00:02