Ignore:
Timestamp:
Aug 20, 2014, 1:04:08 PM (11 years ago)
Author:
Frederik Heber <heber@…>
Children:
11cc05
Parents:
972412
git-author:
Frederik Heber <heber@…> (05/29/14 11:29:27)
git-committer:
Frederik Heber <heber@…> (08/20/14 13:04:08)
Message:

Reimplemented SaturatedFragment::saturateAtom() and added ::setHydrogenReplacement().

  • this is now based on an ideal distribution of electrons around an atom via the VSPER model which we match as closely as possible with the still bound neighboring atoms and fill all remaining vacant spots with hydrogens.
  • SaturatedFragment sets father simply to the _given_ atom.
  • TEST: dimethyl_bromomalonate marked as XFAIL.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/Fragmentation/Exporters/SaturatedFragment.hpp

    r972412 r97dff0  
    2525class atom;
    2626class HydrogenPool;
     27class Vector;
    2728
    2829/** The SaturatedFragment class acts as a wrapper to a KeySet by adding a list
     
    110111  atom * const getHydrogenReplacement(atom * const replacement);
    111112
     113  /** Sets a saturation hydrogen at the given position in place of \a _father.
     114   *
     115   * \param _OwnerAtom atom "owning" the hydrogen (i.e. the one getting saturated)
     116   * \param _position new position relative to \a _OwnerAtom
     117   * \param _distance scale factor to the distance (default 1.)
     118   * \param _father bond partner of \a _OwnerAtom that is replaced
     119   */
     120  void setHydrogenReplacement(
     121      const atom * const _OwnerAtom,
     122      const Vector &_position,
     123      const double _distance,
     124      atom * const _father);
     125
    112126  /** Leases and adds a Hydrogen atom in replacement for the given atom \a *partner in bond with a *origin.
    113127   * Here, we have to distinguish between single, double or triple bonds as stated by \a BondDegree, that each demand
Note: See TracChangeset for help on using the changeset viewer.