Files
lammps/examples/gcmc/log.30Mar18.gcmc.co2.g++.1
2018-04-04 12:33:48 -04:00

197 lines
9.8 KiB
Groff

LAMMPS (30 Mar 2018)
using 1 OpenMP thread(s) per MPI task
# GCMC for CO2 molecular fluid, rigid/small/nvt dynamics
# Rigid CO2 TraPPE model
# [Potoff and J.I. Siepmann, Vapor-liquid equilibria of
# mixtures containing alkanes, carbon dioxide and
# nitrogen AIChE J., 47,1676-1682 (2001)].
# variables available on command line
variable mu index -8.1
variable disp index 0.5
variable temp index 338.0
variable lbox index 10.0
variable spacing index 5.0
# global model settings
units real
atom_style full
boundary p p p
pair_style lj/cut/coul/long 14
pair_modify mix arithmetic tail yes
kspace_style ewald 0.0001
bond_style harmonic
angle_style harmonic
# box, start molecules on simple cubic lattice
lattice sc ${spacing}
lattice sc 5.0
Lattice spacing in x,y,z = 5 5 5
region box block 0 ${lbox} 0 ${lbox} 0 ${lbox} units box
region box block 0 10.0 0 ${lbox} 0 ${lbox} units box
region box block 0 10.0 0 10.0 0 ${lbox} units box
region box block 0 10.0 0 10.0 0 10.0 units box
create_box 2 box bond/types 1 angle/types 1 extra/bond/per/atom 2 extra/angle/per/atom 1 extra/special/per/atom 2
Created orthogonal box = (0 0 0) to (10 10 10)
1 by 1 by 1 MPI processor grid
molecule co2mol CO2.txt
Read molecule co2mol:
3 atoms with max type 2
2 bonds with max type 1
1 angles with max type 1
0 dihedrals with max type 0
0 impropers with max type 0
create_atoms 0 box mol co2mol 464563 units box
Created 24 atoms
Time spent = 0.00241756 secs
# rigid CO2 TraPPE model
pair_coeff 1 1 0.053649 2.8
pair_coeff 2 2 0.156973 3.05
bond_coeff 1 0 1.16
angle_coeff 1 0 180
# masses
mass 1 12.0107
mass 2 15.9994
# MD settings
group co2 type 1 2
24 atoms in group co2
neighbor 2.0 bin
neigh_modify every 1 delay 10 check yes
velocity all create ${temp} 54654
velocity all create 338.0 54654
timestep 1.0
# rigid constraints with thermostat
fix myrigidnvt co2 rigid/nvt/small molecule temp ${temp} ${temp} 100 mol co2mol
fix myrigidnvt co2 rigid/nvt/small molecule temp 338.0 ${temp} 100 mol co2mol
fix myrigidnvt co2 rigid/nvt/small molecule temp 338.0 338.0 100 mol co2mol
8 rigid bodies with 24 atoms
1.16 = max distance from body owner to body atom
# dynamically update fix rigid/nvt/small temperature ndof
fix_modify myrigidnvt dynamic/dof yes
# gcmc
variable tfac equal 5.0/3.0 # (3 trans + 2 rot)/(3 trans)
fix mygcmc co2 gcmc 100 100 0 0 54341 ${temp} ${mu} ${disp} mol co2mol tfac_insert ${tfac} group co2 rigid myrigidnvt
fix mygcmc co2 gcmc 100 100 0 0 54341 338.0 ${mu} ${disp} mol co2mol tfac_insert ${tfac} group co2 rigid myrigidnvt
fix mygcmc co2 gcmc 100 100 0 0 54341 338.0 -8.1 ${disp} mol co2mol tfac_insert ${tfac} group co2 rigid myrigidnvt
fix mygcmc co2 gcmc 100 100 0 0 54341 338.0 -8.1 0.5 mol co2mol tfac_insert ${tfac} group co2 rigid myrigidnvt
fix mygcmc co2 gcmc 100 100 0 0 54341 338.0 -8.1 0.5 mol co2mol tfac_insert 1.66666666666667 group co2 rigid myrigidnvt
# atom counts
variable carbon atom "type==1"
variable oxygen atom "type==2"
group carbon dynamic co2 var carbon
dynamic group carbon defined
group oxygen dynamic co2 var oxygen
dynamic group oxygen defined
variable nC equal count(carbon)
variable nO equal count(oxygen)
# output
variable tacc equal f_mygcmc[2]/(f_mygcmc[1]+0.1)
variable iacc equal f_mygcmc[4]/(f_mygcmc[3]+0.1)
variable dacc equal f_mygcmc[6]/(f_mygcmc[5]+0.1)
variable racc equal f_mygcmc[8]/(f_mygcmc[7]+0.1)
# dynamically update default temperature ndof
compute_modify thermo_temp dynamic/dof yes
thermo_style custom step temp press pe ke density atoms v_iacc v_dacc v_tacc v_racc v_nC v_nO
thermo 1000
# run
run 20000
Ewald initialization ...
using 12-bit tables for long-range coulomb (../kspace.cpp:321)
G vector (1/distance) = 0.164636
estimated absolute RMS force accuracy = 0.0332064
estimated relative force accuracy = 0.0001
KSpace vectors: actual max1d max3d = 16 2 62
kxmax kymax kzmax = 2 2 2
WARNING: Fix gcmc using full_energy option (../fix_gcmc.cpp:485)
0 atoms in group FixGCMC:gcmc_exclusion_group:mygcmc
0 atoms in group FixGCMC:rotation_gas_atoms:mygcmc
WARNING: Neighbor exclusions used with KSpace solver may give inconsistent Coulombic energies (../neighbor.cpp:472)
Neighbor list info ...
update every 1 steps, delay 10 steps, check yes
max neighbors/atom: 2000, page size: 100000
master list distance cutoff = 16
ghost atom cutoff = 16
binsize = 8, bins = 2 2 2
1 neighbor lists, perpetual/occasional/extra = 1 0 0
(1) pair lj/cut/coul/long, 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) = 15.62 | 15.62 | 15.62 Mbytes
Step Temp Press PotEng KinEng Density Atoms v_iacc v_dacc v_tacc v_racc v_nC v_nO
0 364.27579 4238.8631 -9.6809388 13.391989 0.5846359 24 0 0 0 0 8 16
1000 330.05964 -376.0111 -13.936335 13.773831 0.65771539 27 0.21142067 0.21453147 0 0 9 18
2000 293.79769 -321.3209 -19.049256 13.720163 0.73079488 30 0.25170944 0.25426294 0 0 10 20
3000 348.9085 259.04079 -0.23347965 2.4267366 0.14615898 6 0.22016906 0.23200597 0 0 2 4
4000 360.54577 -329.12072 -16.584234 15.046059 0.65771539 27 0.19173099 0.19785362 0 0 9 18
5000 275.58628 -58.283006 -12.520856 11.500585 0.65771539 27 0.16490585 0.17329884 0 0 9 18
6000 338.59574 364.93514 -19.866569 17.494353 0.80387436 33 0.17971759 0.18331589 0 0 11 22
7000 286.11586 -1252.5069 -19.588667 13.361427 0.73079488 30 0.15729895 0.16220459 0 0 10 20
8000 454.86786 -642.89382 -20.818357 21.242037 0.73079488 30 0.15500235 0.15802382 0 0 10 20
9000 326.36695 -364.71382 -31.376162 18.48392 0.87695385 36 0.14203985 0.14510714 0 0 12 24
10000 348.46961 -387.75245 -21.068466 18.00451 0.80387436 33 0.14000907 0.14343389 0 0 11 22
11000 409.74257 -15.843895 -20.648252 21.170323 0.80387436 33 0.14689306 0.15117074 0 0 11 22
12000 523.93502 1003.0729 -6.0563102 14.055757 0.43847693 18 0.15337575 0.1580166 0 0 6 12
13000 278.14441 -717.1097 -2.3488496 4.6982087 0.29231795 12 0.15952356 0.16422306 0 0 4 8
14000 367.89375 1239.0841 -11.203323 13.524997 0.5846359 24 0.17002439 0.17460294 0 0 8 16
15000 197.05319 -471.14343 -9.3890758 6.2653668 0.51155641 21 0.17702612 0.18155802 0 0 7 14
16000 138.17147 -935.93437 -2.3846783 2.3338898 0.29231795 12 0.17884346 0.18268758 0 0 4 8
17000 245.61833 -166.1694 -5.0970057 5.3690384 0.36539744 15 0.18909252 0.19317817 0 0 5 10
18000 232.0142 -175.732 -14.320198 9.6822635 0.65771539 27 0.18977089 0.19280537 0 0 9 18
19000 362.01189 864.87258 -6.4515321 9.7117982 0.43847693 18 0.19207244 0.19488984 0 0 6 12
20000 441.19548 186.19779 -18.147268 20.603546 0.73079488 30 0.19713351 0.199073 0 0 10 20
Loop time of 16.4949 on 1 procs for 20000 steps with 30 atoms
Performance: 104.760 ns/day, 0.229 hours/ns, 1212.498 timesteps/s
99.4% CPU use with 1 MPI tasks x 1 OpenMP threads
MPI task timing breakdown:
Section | min time | avg time | max time |%varavg| %total
---------------------------------------------------------------
Pair | 1.8955 | 1.8955 | 1.8955 | 0.0 | 11.49
Bond | 0.026564 | 0.026564 | 0.026564 | 0.0 | 0.16
Kspace | 0.21215 | 0.21215 | 0.21215 | 0.0 | 1.29
Neigh | 0.088336 | 0.088336 | 0.088336 | 0.0 | 0.54
Comm | 0.19828 | 0.19828 | 0.19828 | 0.0 | 1.20
Output | 0.001025 | 0.001025 | 0.001025 | 0.0 | 0.01
Modify | 14.024 | 14.024 | 14.024 | 0.0 | 85.02
Other | | 0.0491 | | | 0.30
Nlocal: 30 ave 30 max 30 min
Histogram: 1 0 0 0 0 0 0 0 0 0
Nghost: 2094 ave 2094 max 2094 min
Histogram: 1 0 0 0 0 0 0 0 0 0
Neighs: 7664 ave 7664 max 7664 min
Histogram: 1 0 0 0 0 0 0 0 0 0
Total # of neighbors = 7664
Ave neighs/atom = 255.467
Ave special neighs/atom = 2
Neighbor list builds = 20076
Dangerous builds = 0
Total wall time: 0:00:16