Skip to content

Commit 551b0a9

Browse files
committed
v1.70b correct the name of CONP package
1 parent 8270467 commit 551b0a9

35 files changed

+267
-131
lines changed

Fix_conp_Keywords.png

-1020 KB
Binary file not shown.

README.md

Lines changed: 46 additions & 46 deletions
Large diffs are not rendered by default.

examples/2nm_GRA/in.slitU_PCG

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ pair_coeff 5 6 6.009427739e-003 3.320379522
9494
pair_coeff 6 6 26.20203162e-003 4.012607826504
9595
###+++++++++++++++++++++++++++End of Force Field Setup+++++++++++++++++++++++++++####
9696

97-
kspace_style pppm_conp/GA 0.001 sv_SOL on
97+
kspace_style pppm_conp/ME 0.001 sv_SOL on
9898
kspace_modify slab 3
9999
#space_modify gewald 0.32508 mesh $(v_xsl) $(v_ysl) 2 slab 3
100100
#space_modify gewald 0.32508 mesh $(18*v_xsl) $(18*v_ysl) 30 slab 3
@@ -140,7 +140,7 @@ set group GA4 charge ${charge}
140140
# global output definition
141141
compute flow_temp flow temp
142142
compute flow_comtemp flow temp/com
143-
compute pe_all all pe/atom_GA coul kspace
143+
compute pe_all all pe/atom/ME coul kspace
144144
compute q all property/atom q
145145
compute q_GA4 GA4 reduce ave c_q
146146
#ompute coul_all all pe/atom coul kspace
@@ -208,9 +208,9 @@ variable U_cap equal 0.5
208208

209209
#ix conp all null_print
210210

211-
fix conp graphene conp/GA 1 inv metal 3 -${U_cap} metal 4 ${U_cap} neutrality on pair on units eV first on matrix a0_${sl}.binmat auto selfGG off debug 0 check_first 3 1e-12 check off Uchem_extract off
211+
fix conp graphene conp/ME 1 inv metal 3 -${U_cap} metal 4 ${U_cap} neutrality on pair on units eV first on matrix a0_${sl}.binmat auto selfGG off debug 0 check_first 3 1e-12 check off Uchem_extract off
212212

213-
# fix conp graphene conp/GA 1 pcg metal 3 -${U_cap} metal 4 ${U_cap} neutrality on pair on units eV first on tol 1e-6 tol_style rel_B max 100 printf_me -1 pcg_mat DC 0.079 1e-6 Uchem_extract off pshift_scale 1 PCG-DC_map_size 1
213+
# fix conp graphene conp/ME 1 pcg metal 3 -${U_cap} metal 4 ${U_cap} neutrality on pair on units eV first on tol 1e-6 tol_style rel_B max 100 printf_me -1 pcg_mat DC 0.079 1e-6 Uchem_extract off pshift_scale 1 PCG-DC_map_size 1
214214

215215
thermo_style custom step cpu c_flow_comtemp evdwl ecoul elong pe ke etotal press pxx pyy pzz c_q_GA4 f_conp[1]
216216

examples/GRA_nanochannel/in_conp_Q.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ pair_coeff 6 6 0.15131351 3.062909793
8282
###+++++++++++++++++++++++++++End of Force Field Setup+++++++++++++++++++++++++++####
8383

8484
#space_style pppm/cg 1e-4 1e-6
85-
kspace_style pppm_conp/GA 1e-4 sv_SOL on fixed on
85+
kspace_style pppm_conp/ME 1e-4 sv_SOL on fixed on
8686
#kspace_modify diff ad
8787

8888
neighbor 2.0 bin
@@ -141,7 +141,7 @@ compute Q1 GA1 reduce ave c_Q
141141
compute Q2 GA2 reduce ave c_Q
142142
compute Qsum all reduce sum c_Q
143143

144-
compute coul ele pe/atom_GA coul kspace
144+
compute coul ele pe/atom/ME coul kspace
145145
variable epot atom c_coul/q
146146
fix conp all null_print
147147

@@ -161,7 +161,7 @@ fix 9 flow temp/berendsen 298.0 298.0 100
161161
fix_modify 9 temp flow_comtemp
162162
run $(50*v_time_scale)
163163
unfix conp
164-
fix conp ele conp/GA 1 inv charged 1 v_GA_Q charged 2 -${GA_Q} pair on tol_style rel_B check_first 10000 0.01 selfGG off first on neutrality on matrix ./a.binmat none debug 0
164+
fix conp ele conp/ME 1 inv charged 1 v_GA_Q charged 2 -${GA_Q} pair on tol_style rel_B check_first 10000 0.01 selfGG off first on neutrality on matrix ./a.binmat none debug 0
165165
run $(50*v_time_scale)
166166
unfix 9
167167
#ndump 1

examples/GRA_nanochannel/in_conp_U.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ pair_coeff 6 6 0.15131351 3.062909793
8282
###+++++++++++++++++++++++++++End of Force Field Setup+++++++++++++++++++++++++++####
8383

8484
#space_style pppm/cg 1e-4 1e-6
85-
kspace_style pppm_conp/GA 1e-4 sv_SOL on fixed on
85+
kspace_style pppm_conp/ME 1e-4 sv_SOL on fixed on
8686
#kspace_modify diff ad
8787

8888
neighbor 2.0 bin
@@ -141,7 +141,7 @@ compute Q1 GA1 reduce ave c_Q
141141
compute Q2 GA2 reduce ave c_Q
142142
compute Qsum all reduce sum c_Q
143143

144-
compute coul ele pe/atom_GA coul kspace
144+
compute coul ele pe/atom/ME coul kspace
145145
variable epot atom c_coul/q
146146
fix conp all null_print
147147

@@ -161,7 +161,7 @@ fix 9 flow temp/berendsen 298.0 298.0 100
161161
fix_modify 9 temp flow_comtemp
162162
run $(50*v_time_scale)
163163
unfix conp
164-
fix conp ele conp/GA 1 inv metal 1 v_U metal 2 -${U} pair on tol_style rel_B selfGG on first off neutrality off matrix ./a.binmat none debug 0 units eV
164+
fix conp ele conp/ME 1 inv metal 1 v_U metal 2 -${U} pair on tol_style rel_B selfGG on first off neutrality off matrix ./a.binmat none debug 0 units eV
165165
run $(50*v_time_scale)
166166
unfix 9
167167
#ndump 1

examples/graphene_disk/in_GRA.txt

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# water flow in a (20,20)@(25,25), ~ 30 nm long DWCNT
2+
# mpiexec -np 12 -localonly ./lmp_mpi.exe -in cont.acc -log log.txt
3+
shell shutdown -a
4+
# System and potential definition
5+
units real
6+
timestep 1 # 1.0e-3 # 1fs = 10^-15s
7+
boundary p p p
8+
atom_style full
9+
bond_style harmonic
10+
angle_style harmonic
11+
#rocessors 4 2 3
12+
#rocessors 2 2 1
13+
14+
#--------------Create Atoms----------------
15+
variable radiu equal 15
16+
variable dist equal 5
17+
variable boxLen equal 10
18+
# copy https://www.ericnhahn.com/tutorials/lammps-tutorials/crumpled-graphene
19+
variable sixth equal "1/6"
20+
variable twothirds equal "2/3"
21+
variable alattice equal "2.4595"
22+
variable a1lattice equal "1"
23+
variable a2lattice equal "1.73203"
24+
25+
lattice custom ${alattice} a1 ${a1lattice} 0 0 a2 0 ${a2lattice} 0 &
26+
basis 0 0 0 basis 0.5 ${sixth} 0 &
27+
basis 0.5 0.5 0 basis 0 ${twothirds} 0
28+
29+
region BOX block -${boxLen} ${boxLen} -${boxLen} ${boxLen} -0.5 30 units lattice
30+
region GRA cylinder z 0 0 ${radiu} -0.5 0.5 units box
31+
32+
33+
create_box 2 BOX
34+
create_atoms 1 region GRA
35+
create_atoms 2 single 0 0 ${dist} units box
36+
mass * 12.0107
37+
#------------------
38+
39+
pair_style lj/cut/point/long 10 10 point 1 2.934 point 2 0.3
40+
pair_coeff * * 0.000000000000e+000 0.000000000000
41+
#space_style pppm/cg 1e-4 1e-6
42+
kspace_style pppm_conp/ME 1e-4 sv_SOL on fixed on
43+
#kspace_modify diff ad
44+
45+
neighbor 2.0 bin
46+
neigh_modify every 1 delay 0 check yes
47+
48+
group ele type 1
49+
group ions type 2
50+
set group ele charge 1
51+
set group ions charge -1
52+
compute coul all pe/atom/ME coul kspace
53+
variable epot atom c_coul/q
54+
fix conp all null_print
55+
compute Q all property/atom q
56+
compute Qsum ele reduce sum c_Q
57+
58+
thermo_style custom step cpu evdwl ecoul elong pe ke etotal c_Qsum f_conp
59+
60+
thermo 1
61+
thermo_modify flush yes
62+
63+
reset_timestep 0
64+
write_dump all atom init.lammpstrj
65+
66+
dump 1 all custom 1 ele.lammpstrj id type xu yu zu q v_epot c_coul
67+
unfix conp
68+
fix conp all conp/ME 1 cg metal 1 0 metal 2 1 pair on tol_style rel_B selfGG on first off neutrality on matrix ./a0.binmat none debug 0 units eV
69+
run 10
70+
71+
run 10

makefile

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

misc/CPM_figure.png

194 KB
Loading

misc/Fix_conp_Keywords.png

1.79 MB
Loading

misc/snapshot.ovito

40.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)