Dear all,
I am trying to run gcmc with a molecule, ethane. I already tried with monatomic gas such as CH4 using molecule command and worked well.
However, I changed it into ethane (C2H6) and it did not work properly. This is first time to try gcmc with the molecules and I might miss something.
The results showed no change in the number of molecules, only reduction converging to zero, or lost atoms.
I am attaching three files, a input file and two data files.
I would appreciate any help.
Best regards,
Seunghwan Baek
- Input file
variable t equal 353
variable p equal 137.90
variable seed equal 31798.0000
variable phi equal 0.4999
variable x equal 50.0
units metal
atom_style full
boundary p p p
pair_style lj/cut 14.0
bond_style harmonic
read_data C2_bulk_10.txt
molecule ethane C2H6.txt
special_bonds lj 1.0 0.0 0.0 angle no dihedral no
group gas type 1
region cv block 0.0 $x 0.0 $x 0.0 $x units box side in
pair_modify mix arithmetic
pair_modify tail yes
neighbor 1.5 bin
neigh_modify every 1 delay 0
velocity gas create t {seed} mom yes rot yes dist gaussian
minimize 1.0e-8 1.0e-8 100000 1000000
compute allperatom gas stress/atom NULL
compute allp gas reduce sum c_allperatom[1] c_allperatom[2] c_allperatom[3]
variable allpress equal -(c_allp[1]+c_allp[2]+c_allp[3])/(3*vol)
compute mdtemp gas temp
compute_modify mdtemp dynamic yes
fix sh gas shake 1.0e-8 200 0 b 1 t 1 m 15.035 mol ethane
fix GC gas gcmc 100 200 500 0 ${seed} $t -4.607 0.05 mol ethane shake sh region cv pressure p fugacity_coeff {phi} group gas full_energy
variable nm equal count(gas)/2
thermo_style custom step vol v_nm c_mdtemp v_allpress etotal
thermo_modify format float %24.8g
thermo 1
timestep 0.0001
run 1000
- Data file - initial configuration
LAMMPS data file. C2_test.
20 atoms
10 bonds
0 angles
0 dihedrals
0 impropers
1 atom types
1 bond types
0 angle types
0 dihedral types
0 improper types
0.0000 50 xlo xhi
0.0000 50 ylo yhi
0.0000 50 zlo zhi
Masses
1 15.035000 # CH3(sp3)
Pair Coeffs
1 0.00844 3.7500 # CH3(sp3)
Bond Coeffs
1 13.44 1.54 # CH3-CH3
Atoms
1 1 1 0 2.22600000000000 1.00100000000000 1.00100000000000
2 1 1 0 1.00100000000000 1.90600000000000 1.26200000000000
3 2 1 0 12.2280000000000 1.00100000000000 1.00100000000000
4 2 1 0 11.0030000000000 1.90600000000000 1.26200000000000
5 3 1 0 17.2290000000000 1.00100000000000 1.00100000000000
6 3 1 0 16.0040000000000 1.90600000000000 1.26200000000000
7 4 1 0 22.2300000000000 1.00100000000000 1.00100000000000
8 4 1 0 21.0050000000000 1.90600000000000 1.26200000000000
9 5 1 0 27.2310000000000 1.00100000000000 1.00100000000000
10 5 1 0 26.0060000000000 1.90600000000000 1.26200000000000
11 6 1 0 32.2320000000000 1.00100000000000 1.00100000000000
12 6 1 0 31.0070000000000 1.90600000000000 1.26200000000000
13 7 1 0 37.2330000000000 1.00100000000000 1.00100000000000
14 7 1 0 36.0080000000000 1.90600000000000 1.26200000000000
15 8 1 0 42.2340000000000 1.00100000000000 1.00100000000000
16 8 1 0 41.0090000000000 1.90600000000000 1.26200000000000
17 9 1 0 2.22600000000000 6.80200000000000 1.00100000000000
18 9 1 0 1.00100000000000 7.70700000000000 1.26200000000000
19 10 1 0 12.2280000000000 6.80200000000000 1.00100000000000
20 10 1 0 11.0030000000000 7.70700000000000 1.26200000000000
Bonds
1 1 1 2
2 1 3 4
3 1 5 6
4 1 7 8
5 1 9 10
6 1 11 12
7 1 13 14
8 1 15 16
9 1 17 18
10 1 19 20
- Molecule information
LAMMPS C2H6 molecule file
2 atoms
1 bonds
0 angles
0 dihedrals
0 impropers
30.070 mass
0.0 0.0 0.0 com
0.0 0.0 0.0 0.0 0.0 0.0 inertia
Coords
1 2.22600000000000 1.00100000000000 1.00100000000000
2 1.00100000000000 1.90600000000000 1.26200000000000
Types
1 1
2 1
Masses
1 15.035
2 15.035
Bonds
1 1 1 2
Special Bond Counts
1 1 0 0
2 1 0 0
Special Bonds
1 2
2 1
Shake Flags
1 2
2 2
Shake Atoms
1 1 2
2 1 2
Shake Bond Types
1 1
2 1
C2_bulk_10.txt (1.61 KB)
C2H6.txt (485 Bytes)
main.in (1.41 KB)