Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lmp file has no pair coefficient generated from cif file #34

Closed
jiamingl98 opened this issue Jul 20, 2021 · 1 comment
Closed

lmp file has no pair coefficient generated from cif file #34

jiamingl98 opened this issue Jul 20, 2021 · 1 comment
Assignees
Labels

Comments

@jiamingl98
Copy link

jiamingl98 commented Jul 20, 2021

For lammps file generation, the lmp output file do not have pair coefficients.

Output file:
LAMMPS (7 Aug 2019)
units real
dimension 3
atom_style charge
boundary p p p

pair_style lj/cut 12.0
#bond_style harmonic
#angle_style cosine/periodic
#dihedral_style harmonic
pair_modify tail yes mix arithmetic
#special_bonds lj/coul 0.0 0.0 1.0

read_data 1525727.lmp
orthogonal box = (0 0 0) to (32.49 32.49 25.78)
1 by 1 by 1 MPI processor grid
reading atoms ...
1500 atoms
read_data CPU = 0.00899792 secs
variable dt equal 1.00
variable tdamp equal 100*${dt}
variable tdamp equal 100*1
fix 1 all langevin 298.00 298.00 ${tdamp} 2907865
fix 1 all langevin 298.00 298.00 100 2907865
fix 2 all nve
thermo 0
run 1000
ERROR: All pair coeffs are not set (../pair.cpp:230)
Last command: run 1000

@pierrehirel pierrehirel self-assigned this Jul 21, 2021
@pierrehirel
Copy link
Owner

pierrehirel commented Jul 21, 2021

Sir,

A simple "hello" when starting a discussion is always appreciated.

As you can see from your log file, LAMMPS reads perfectly the data file:

read_data 1525727.lmp
orthogonal box = (0 0 0) to (32.49 32.49 25.78)
1 by 1 by 1 MPI processor grid
reading atoms ...
1500 atoms

The error message is not related to the input data file. The error message is: "All pair coeffs are not set", and it is produced by the module "pair.cpp". This is a clear indication that the error comes from your definition of the potential parameters, apparently because you have no "pair_coeff" line.

If you had typed the error message in Google, you would have found multiple threads in the LAMMPS forum discussing this type of error.

Since this discussion is unrelated to Atomsk I close this thread. I recommend that you ask your questions to the LAMMPS community.

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants