votca 2026-dev
Loading...
Searching...
No Matches
votca::xtp::FragmentSaturator Class Reference

Saturates the external bonds of a mapped QMMolecule (bonds that exist at the MD level but cross the segment boundary) with H atoms. More...

#include <fragmentsaturator.h>

Classes

struct  SaturationResult

Static Public Member Functions

static SaturationResult SaturateExternalBonds (const QMMolecule &mol, double bond_length_angstrom=kDefaultCHBondLengthAngstrom)
static QMMolecule RelaxNewAtoms (const QMMolecule &mol, Index n_original_atoms, Index n_steps=500)

Static Public Attributes

static constexpr double kDefaultCHBondLengthAngstrom = 1.09

Detailed Description

Saturates the external bonds of a mapped QMMolecule (bonds that exist at the MD level but cross the segment boundary) with H atoms.

SaturateExternalBonds places each H at a fixed bond length along the external-bond direction stored on the QMAtom by SegmentMapper (already transformed into the mapped frame; see QMAtom::getExternalBondDirection() and Md2QmEngine::map()). This placement alone has errors of about 0.08 Angstrom for distorted MD geometries, so RelaxNewAtoms subsequently relaxes the added H atoms with all other atoms fixed.

Definition at line 43 of file fragmentsaturator.h.

Member Function Documentation

◆ RelaxNewAtoms()

QMMolecule votca::xtp::FragmentSaturator::RelaxNewAtoms ( const QMMolecule & mol,
Index n_original_atoms,
Index n_steps = 500 )
static

Definition at line 76 of file fragmentsaturator.cc.

◆ SaturateExternalBonds()

FragmentSaturator::SaturationResult votca::xtp::FragmentSaturator::SaturateExternalBonds ( const QMMolecule & mol,
double bond_length_angstrom = kDefaultCHBondLengthAngstrom )
static

Definition at line 38 of file fragmentsaturator.cc.

Member Data Documentation

◆ kDefaultCHBondLengthAngstrom

double votca::xtp::FragmentSaturator::kDefaultCHBondLengthAngstrom = 1.09
staticconstexpr

Definition at line 47 of file fragmentsaturator.h.


The documentation for this class was generated from the following files: