计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
smirnoff-force-fields【效率与协作】Load, modify, inspect, serialize, label, and apply SMIRNOFF OFFXML force fields with OpenFF Toolkit ForceField APIs.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a task centers on OpenFF Toolkit SMIRNOFF force fields: loading .offxml files, discovering installed force fields, inspecting or modifying parameter handlers, labeling molecules with assigned parameters, serializing edited force fields, combining sources, creating Interchange/OpenMM systems, or diagnosing SMIRNOFF parsing and handler errors.
references/api-reference.md for the verified ForceField signatures, handler concepts, label shapes, serialization APIs, and Interchange/OpenMM boundary.references/workflows.md for copy-ready recipes: load installed or local .offxml, inspect available force fields, label molecules, edit a parameter, serialize/reload, and apply a force field.references/plugins-and-custom-parameters.md for custom ParameterHandler classes and entry-point plugin loading with load_plugins=True.references/troubleshooting.md when parsing, handler registration, force-field package discovery, charge assignment, virtual-site, Interchange, or OpenMM conversion fails.scripts/smoke_smirnoff_workflow.py for a safe local smoke probe that builds a molecule/topology, loads a force field, optionally labels parameters, and attempts Interchange if installed.../molecules-and-io/SKILL.md.../topology-and-systems/SKILL.md.../toolkit-backends/SKILL.md.from openff.toolkit import ForceField, Molecule, Topology
from openff.toolkit.typing.engines.smirnoff import get_available_force_fields
print(get_available_force_fields())
force_field = ForceField("openff-2.3.0.offxml")
molecule = Molecule.from_smiles("CCO")
topology = Topology.from_molecules([molecule])
labels = force_field.label_molecules(topology)
print(force_field.registered_parameter_handlers)
print(labels[0].keys())
If ForceField("openff-2.3.0.offxml") cannot find the file, inspect get_available_force_fields() and install or point to a local .offxml file rather than changing the molecule/topology workflow.