xnn.ffnn.models.amberlib.to_forcefield#
- xnn.ffnn.models.amberlib.to_forcefield(lib, name=None, version='1.0')[source]#
Write an
AmberLibraryas an in-memory.frcfile.The inverse of
from_forcefield(): atom types, equivalences,nonbond(12-6)inrmin-epsform (rmin = 2 R*, the like-pair minimum) with arithmetic combination, the four bonded tables, the templates and fragments, a#metadatawith the 1,4 scaling factors, and a#define.- Parameters:
lib (AmberLibrary) – The library.
name (str, optional) – The
#definename; defaultlib.name.version (str, optional) – Version stamp of every row.
- Returns:
Save it with
.write(path).- Return type: