We are making a topology file using the perl command for Charmm2lammps conversion. In that case, for POPC, it only takes the top & par lipid file and by master file also. If we add water then we cann’t make it. Then we created master file by adding parameter file of lipid, carbohydrades, protein & cgenff. If we add the parameters of water then it is showing-
Info: using wp_edited.pdb instead of wp_edited.crd
Info: lx not set: will use extremes
Info: ly not set: will use extremes
Info: lz not set: will use extremes
Info: creating PSF index
Info: converting atoms
Info: converting bonds
Warning: bond parameter 1 for [ ] was not found
Info: converting angles
Warning: angle parameter 1 for [ ] was not found
Info: converting dihedrals
Info: converting impropers
Info: conversion complete,
if we took the par & top file of water ions in the old version and made the pgn file only for water then it is working but when we copy those parameters in the master file along with others and we made the pgn file for POPC and water then again it is not working.
Your post is missing a lot of information – “it is not working” could be anything from “the simulation gives an area per lipid that is too small” to “the simulation crashed my computer and nearly burned down the office”.
At a bare minimum, giving us an error message tells us very concretely when something “is not working” and enables both us and yourself to investigate further. For example, the one error message you have included shows quite clearly that the Perl script you are using fails to find the bond and angle parameters of water, which in turn could have any number of causes (improper CHARMM input, or no force constants due to using a rigid water model, or …).
In any case, this sounds like a problem of either your CHARMM input or the Perl script. I’m not familiar with either and I doubt most of the forum users here are either. You may have better luck on the CHARMM forums, or on “Science Talk” or other online forums, and always ask your supervisor for advice and instructions. All the best!
It is not working means sometime in the data file which is generated, it is not taking all the atom types of POPC or sometime in case of PAH4 , it is not counting the coordinate of the PHE portion. Actually we are trying to make topology file for a water desalination system using bio-membrane (PAH4)…
the water and POPC combined data file…
" 18 atom types
22 bond types
42 angle types
88 dihedral types
1 improper types
I think this is the key here. The charmm2lammps script predates CGENFF by a long margin and thus cannot handle that the names are longer and thus does not process the types correctly.
You can try renaming the types in psf and force field file to see if you can make it work, but my hopes are not very high that this will work sufficiently well.
If you have a procedure that works entirely without water, I’d suggest using that first for the data file. Then generate a water-only data file and add that to the first data file in LAMMPS using the read_data command with add option.
The real problem is, however, can charmm2lammps.pl properly parse the atom types and find them in the provided force field files?
As already pointed out, the converter tool predates some recent development and changes in CHARMM and thus you have to make certain that your input does conform with the expectations of the converter, not psfgen.
You have not provided any details or evidence in that respect, so there is no advice beyond what was already given.