xnn.ffnn.models.charmmlib.to_forcefield#
- xnn.ffnn.models.charmmlib.to_forcefield(lib, name=None, version='1.0')[source]#
Write a
CharmmLibraryas an in-memory.frcfile.The inverse of
from_forcefield(): atom types,nonbond(12-6)andnonbond_1-4(12-6)inrmin-epsform (rmin = 2 Rmin/2, the like-pair minimum) with arithmetic combination, the pair overrides, the bonded tables, the templates and fragments, a#metadatawith the Coulomb constant and the 1,4 scaling, and a#define.- Parameters:
lib (CharmmLibrary) – 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: