ERROR: Number of element to type mappings does not match number of atom types (src/MANYBODY/pair_eam_alloy.cpp:50)
Last command: pair_coeff * * eam/alloy Cu01.eam.alloy Cu
Thank you for your response. However, my include PARM1.lammps file opened by this code defined 9 atom types for me. Below is the contents of the PARM1.lammps file.
mass 1 63.546 # Cu_ion (GROMOS 54A7)
mass 2 35.5 # Cl_ion (GROMOS 54A7)
mass 3 1.008 # PEG H (GROMOS 54A7)
mass 4 1.008 # PEG H (GROMOS 54A7)
mass 5 12.011 # PEG C (GROMOS 54A7)
mass 6 15.9994 # PEG O (GROMOS 54A7)
mass 7 15.9994 # PEG O (GROMOS 54A7)
mass 8 15.9994 # H2O O (SPC/Fw)
mass 9 1.008 # H2O H (SPC/Fw)
pair_coeff 1 1 0.2526 2.8492 # PEG O (GROMOS 54A7)
pair_coeff 2 2 0.0663 3.5812 # PEG C (GROMOS 54A7)
pair_coeff 3 3 0.0283 2.3734 # PEG H (GROMOS 54A7)
pair_coeff 4 4 0.0 0.0 # PEG H (GROMOS 54A7)
pair_coeff 5 5 0.2450 2.8114 # PEG C (GROMOS 54A7)
pair_coeff 6 6 0.1195 3.1000 # PEG O (GROMOS 54A7)
pair_coeff 7 7 0.1195 3.1000 # PEG O (GROMOS 54A7)
pair_coeff 8 8 0.155 3.165 # H2O O (SPC/Fw)
pair_coeff 9 9 0.0 0.0 # H2O H (SPC/Fw)
The fact that you include parameter settings from some other place where they are meaningful does not automatically make them meaningful for your simulation.
In fact, your whole approach to your simulation is full or errors and misunderstanding (on your side), that I am wondering, whether you have actually followed and worked through the tutorials that you are referring to. Many things that you do make no sense and are in conflict with the LAMMPS documentation. Plus your system set up is overly complex and convoluted and thus error prone and hard to debug from the outside.
My recommendation is to start over and build your input in stages and only include what you need and include each command for a reason and study the corresponding documentation first.
E.g. the error you see from pair style eam/alloy is a fundamental one and just plain wrong.
Also, you cannot use two pair_style commands at the same time. If you use pair style a second time, then it will wipe out the settings from the first command. To combine different pair styles, you must use pair style hybrid, but that again is an advanced topic and not suitable for somebody with your limited training and understanding of both how LAMMPS works and how MD simulations need to be set up in general.
Yes, I’m a beginner and just started with LAMMPS, so I don’t know which tutorials to start with, if you have any recommendations, please recommend them. Thank you.