Call smina --print_atom_types to see the available atom types. Nitrogen has four different types: Nitrogen, NitrogenXSDonor, NitrogenXSDonorAcceptor, NitrogenXSAcceptor. These are non-overalapping so if you want all nitrogens you need four terms. Fe is Iron.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I think the problem is not on the atom types as "100.0 atom_type_gaussian(t1=N,t2=Fe,o=0,_w=3,_c=8)" works perfectly.
I tried this and also didn't work:
"Error with scoring function specification.
Unknown term [atom_type_lennard_jones(t1=Nitrogen,t2=Iron,o=0,_w=3,_c=8)]"
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Also, you can see the name of the terms with smina --print_terms
The format is atom_type_lennard_jones(t1=,t2=,o=0,_^=100,_c=8)
Where o is the offset, _^ is the cap and _c is the cutoff.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
My fault. This is what happens when you think a code change is simple enough you don't have to test it - you are wrong. I've pushed the fixes (988094a). Main problem was a typo in the regular expression matching the term name, but there was a second issue that is fixed as well.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is there a possibility to add a LJ potential for a specific type of atom or for specific atom pairs?
No, but it was easy enough to add. I've pushed a commit ([7bbb14]). Let me know how it works.
Related
Commit: [7bbb14]
Thanks a lot for the effort.
I tried it but adding the function with this sintax didn't work:
100.0 atom_type_lennard_jones(t1=N,t2=Fe,o=0,_w=3,_c=8)
Call
smina --print_atom_types
to see the available atom types. Nitrogen has four different types: Nitrogen, NitrogenXSDonor, NitrogenXSDonorAcceptor, NitrogenXSAcceptor. These are non-overalapping so if you want all nitrogens you need four terms. Fe is Iron.I think the problem is not on the atom types as "100.0 atom_type_gaussian(t1=N,t2=Fe,o=0,_w=3,_c=8)" works perfectly.
I tried this and also didn't work:
"Error with scoring function specification.
Unknown term [atom_type_lennard_jones(t1=Nitrogen,t2=Iron,o=0,_w=3,_c=8)]"
Did you rebuild smina with the code changes I committed?
Also, you can see the name of the terms with
smina --print_terms
The format is
atom_type_lennard_jones(t1=,t2=,o=0,_^=100,_c=8)
Where o is the offset, _^ is the cap and _c is the cutoff.
Yes! The version I have is from 30 April 2020
Okay, that's true I changed cap by w. Anyway I changed it and gave me the same error:
Error with scoring function specification.
Unknown term [atom_type_lennard_jones(t1=Nitrogen,t2=Iron,o=0,_^=100,_c=8)]
When printing terms the function: atom_type_lennard_jones(t1=,t2=,o=0,_^=100,_c=8)
appears
When printing terms the function: atom_type_lennard_jones(t1=,t2=,o=0,_^=100,_c=8)
appears
Is it possible that w and ^ variables are the same in the code or some problem related to this?
My fault. This is what happens when you think a code change is simple enough you don't have to test it - you are wrong. I've pushed the fixes (988094a). Main problem was a typo in the regular expression matching the term name, but there was a second issue that is fixed as well.
Now, it works perfectly. Thank you very much