parametrize
Force field parametrization for molecular species.
attributeparameter_set_types= {'gromacs': GromacsSingleMoleculeParameterSet}attributeDISPATCH_ENGINE_PARAMETRIZE= {'gromacs': {'cgenff': parametrize_cgenff_gromacs, 'smirnoff': parametrize_smirnoff_gromacs}}attributeDISPATCH_TOPOLOGY_BUILD= {'gromacs': generate_gromacs_topology}func_replace_moleculetype(itp_path, new_name) → Noneparamitp_pathPathparamnew_namestrReturns
Nonefunc_extract_defaults_block(top_path) → strparamtop_pathPathReturns
strfunc_build_smirnoff_parameter_itp(top_path, atomtypes_path, out_path) → Noneparamtop_pathPathparamatomtypes_pathPathparamout_pathPathReturns
Nonefuncretrieve_or_deposit_parameters(engine, parametrization)Return a decorator that caches parametrization results in the local parameter store.
paramenginestrSimulation engine (e.g., "gromacs")
paramparametrizationstrForce field scheme (e.g., "cgenff", "smirnoff")
Returns
Nonefuncparametrize_cgenff_gromacs(species) → GromacsSingleMoleculeParameterSetParametrize a species using CGenFF for GROMACS.
paramspeciesSingleMoleculeSpeciesMolecule to parametrize
Parameter set with paths to ITP and forcefield files
funcparametrize_smirnoff_gromacs(species, smirnoff_config=None) → GromacsSingleMoleculeParameterSetParametrize a molecule using OpenFF SMIRNOFF force field.
Uses OpenFF Interchange to generate GROMACS ITP files.
paramspeciesSingleMoleculeSpeciesThe molecule species to parametrize.
paramsmirnoff_configSmirnoffConfig= NoneConfiguration for SMIRNOFF parametrization. If None, uses defaults.
The parameter set containing paths to generated ITP files.
funcgenerate_gromacs_topology(u, species, parameters, system_name) → strWrite a GROMACS topology file from species and their parameters.
paramumda.UniverseUniverse with the system structure
paramspecieslistList of species objects
paramparameterslist[GromacsSingleMoleculeParameterSet]Matching parameter sets for each species
paramsystem_namestrName for the [ system ] section
Returns
str