lammpsä¸OMP_NUM_THREADS environment is not set. Defaulting to 1 thread. (src/comm.cpp:98)
using 1 OpenMP thread(s) per MPI task
Loaded 1 plugins from C:\Users\admin\AppData\Local\LAMMPS 64-bit 29Aug2024-MSMPI\plugins
WARNING: Detected non-ASCII characters in input. Will try to continue by replacing with ASCII equivalents where known. (src/input.cpp:478)
Reading data file ...
orthogonal box = (0.87811699 0.96610753 1.7003048) to (33.491883 36.847892 64.850595)
2 by 3 by 5 MPI processor grid
ERROR: Must define pair_style before Pair Coeffs (src/read_data.cpp:782)
Last command: read_data songchi-nvt-100ps-300-300
This error message indicates that there's an issue with the order of commands in your LAMMPS input script. Let's break down the problem and provide a solution:
To resolve this issue, follow these steps:
Example of correct order:
units metal
dimension 3
boundary p p p
atom_style full
pair_style lj/cut 10.0 # Or whatever pair style you're using
read_data songchi-nvt-100ps-300-300
# Additional pair_coeff commands if needed
# pair_coeff 1 1 0.2 2.5Separate pair_style and read_data: Sometimes, it helps to separate these commands with a run 0 command:
pair_style lj/cut 10.0
run 0
read_data songchi-nvt-100ps-300-300By following these steps, you should be able to resolve the "Must define pair_style before Pair Coeffs" error. If the problem persists, double-check both your input script and data file for any inconsistencies or errors.
This error message indicates that there's an issue with the order of commands in your LAMMPS input script. Specifically, it's trying to read pair coefficients before the pair style has been defined. Let's break down the problem and provide a solution:
To resolve this issue, follow these steps:
Reorder your input script: Make sure you define the pair_style before reading the data file. Here's a general order to follow:
units [your_units]
dimension 3
boundary p p p
atom_style [your_atom_style]
pair_style [your_pair_style]
read_data songchi-nvt-100ps-300-300
# Additional commands...Separate pair_style and read_data: Sometimes, it helps to separate these commands with a run 0 command:
pair_style [your_pair_style]
run 0
read_data songchi-nvt-100ps-300-300By following these steps, you should be able to resolve the "Must define pair_style before Pair Coeffs" error. If you continue to have issues, you may want to share your complete input script (with any sensitive information removed) for further assistance.