32 lines
966 B
Plaintext
32 lines
966 B
Plaintext
variable tag string equal
|
|
log log.lammps_${tag}
|
|
atom_style full
|
|
units real
|
|
bond_style harmonic
|
|
angle_style harmonic
|
|
|
|
include "p3m3dc.settings"
|
|
boundary p p f
|
|
pair_style lj/cut/coul/long 16 16
|
|
#processors * * 2
|
|
|
|
read_data "cap.data"
|
|
include "cgil.settings"
|
|
|
|
#dump alldump all custom 1000 all_${tag}.lammpstrj id mol type x y z q
|
|
fix fxnvt electrolyte nvt temp 500.0 500.0 100.
|
|
variable vtop equal 1.0
|
|
variable vbot equal -v_vtop
|
|
fix fxupdate bot electrode/conp v_vbot 1.979 couple top v_vtop symm on
|
|
variable q atom q
|
|
compute qtop top reduce sum v_q
|
|
compute qbot bot reduce sum v_q
|
|
compute qall ele reduce sum v_q
|
|
compute ctemp electrolyte temp
|
|
|
|
fix print all print 10 "$(step:%8.3g) $(c_qtop:%20.15e) $(c_qbot:%20.15e)" file ${tag}.csv screen no title "#Fix electrode equal-style variable test setting = equal"
|
|
|
|
thermo 10
|
|
thermo_style custom step c_ctemp epair etotal c_qtop c_qbot c_qall
|
|
run 50
|