UFFOptimizeMoleculesConfs#
- nvmolkit.uffOptimization.UFFOptimizeMoleculesConfs(
- molecules: list['Mol'],
- maxIters: int = 1000,
- vdwThreshold: float | Sequence[float] = 10.0,
- ignoreInterfragInteractions: bool | Sequence[bool] = True,
- hardwareOptions: HardwareOptions | None = None,
- output: Literal[CoordinateOutput.RDKIT_CONFORMERS] = CoordinateOutput.RDKIT_CONFORMERS,
- targetGpu: int = -1,
- nvmolkit.uffOptimization.UFFOptimizeMoleculesConfs(
- molecules: list['Mol'],
- maxIters: int = 1000,
- vdwThreshold: float | Sequence[float] = 10.0,
- ignoreInterfragInteractions: bool | Sequence[bool] = True,
- hardwareOptions: HardwareOptions | None = None,
- *,
- output: Literal[CoordinateOutput.DEVICE],
- targetGpu: int = -1,
Optimize conformers for multiple molecules using the UFF force field.
- Parameters:
molecules – List of RDKit molecules to optimize. Each molecule should already contain conformers.
maxIters – Maximum number of UFF minimization iterations.
vdwThreshold – Van der Waals threshold used when constructing the UFF force field. May be provided as a scalar or per-molecule sequence.
ignoreInterfragInteractions – If
True, omit non-bonded terms between fragments. May be provided as a scalar or per-molecule sequence.hardwareOptions – Configures CPU and GPU batching, threading, and device selection. Defaults are chosen automatically when omitted.
output –
RDKIT_CONFORMERS(default) writes optimized coordinates back into RDKit conformers and returns nested host energy lists.DEVICEkeeps optimized coordinates and energies on GPU and returns aDevice3DResult.targetGpu – In DEVICE mode, the GPU to consolidate the result onto.
-1selects the first configured execution GPU.
- Returns:
list of lists of optimized conformer energies. For
DEVICE: aDevice3DResultwithvalues(positions),energies,converged, and CSR indices.- Return type:
For
RDKIT_CONFORMERS- Raises:
ValueError – If molecules contains
Noneentries or molecules lacking UFF atom types.e.args[1]contains keys"none"and"no_params".