Changeset 5fa1e86


Ignore:
Timestamp:
Apr 23, 2021, 8:51:24 PM (5 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
Candidate_v1.7.0, stable
Children:
e70818
Parents:
51d384a
git-author:
Frederik Heber <frederik.heber@…> (10/07/20 22:21:33)
git-committer:
Frederik Heber <frederik.heber@…> (04/23/21 20:51:24)
Message:

Added BondifyAction.

  • this allows to add non-hydrogen bonds and is complementary to saturate bonds where hydrogens are added.
  • we generate all possible candidate sets taken from non-hydrogen atoms in vicinity with hydrogens and pick one at random.
  • DOCU: added to userguide.
  • TEST: added regression test case.
Files:
6 added
5 edited

Legend:

Unmodified
Added
Removed
  • doc/userguide/userguide.xml

    r51d384a r5fa1e86  
    10541054          atoms) are taken into account and left intact.</para>
    10551055        </section>
     1056        <section xml:id="atoms.bondify-atom">
     1057          <title xml:id="atoms.bondify-atom.title">Bonding atoms</title>
     1058          <para>This action is to an extend the opposite of
     1059        <link linkend='atoms.saturate-atom'>saturate-atom</link>. Instead of
     1060          adding hydrogens to saturate an atom with unoccupied valence orbitals
     1061          MoleCuilder looks for other non-hydrogen atoms in the vicinity that
     1062          have bonds with hydrogen atoms. If these non-hydrogen atoms are
     1063          within suitable bonding distance, the hydrogen bond with the hydrogen
     1064          atom is removed and a bond between the two non-hydrogen atoms is
     1065          added. Hence, while saturate-atom adds more hydrogens, bondify-atom
     1066          will try to remove hydrogens and saturate atom valencies by
     1067          additional bonds.</para>
     1068          <note>The typical bond distances between the two non-hydrogen atoms
     1069          is taken from bond table, loaded through
     1070        <link linkend='bond.create-adjacency'>bond-table</link>.</note>
     1071          <para>The action is called as follows:
     1072          <programlisting>
     1073  ... --bondify-atoms
     1074   </programlisting>
     1075          and will work on a single, currrently selected atom.
     1076          </para>
     1077        </section>
    10561078        <section xml:id="atoms.translate-atom">
    10571079          <title xml:id="atoms.translate-atom.title">Translating atoms</title>
  • src/Actions/GlobalListOfActions.hpp

    r51d384a r5fa1e86  
    3131  (AnalysisSurfaceCorrelation) \
    3232  (AtomAdd) \
     33  (AtomBondify) \
    3334  (AtomChangeElement) \
    3435  (AtomMirror) \
  • src/Actions/Makefile.am

    r51d384a r5fa1e86  
    150150ATOMACTIONSOURCE = \
    151151  Actions/AtomAction/AddAction.cpp \
     152  Actions/AtomAction/BondifyAction.cpp \
    152153  Actions/AtomAction/ChangeElementAction.cpp \
    153154  Actions/AtomAction/MirrorAction.cpp \
     
    161162ATOMACTIONHEADER = \
    162163  Actions/AtomAction/AddAction.hpp \
     164  Actions/AtomAction/BondifyAction.hpp \
    163165  Actions/AtomAction/ChangeElementAction.hpp \
    164166  Actions/AtomAction/MirrorAction.hpp \
     
    172174ATOMACTIONDEFS = \
    173175  Actions/AtomAction/AddAction.def \
     176  Actions/AtomAction/BondifyAction.def \
    174177  Actions/AtomAction/ChangeElementAction.def \
    175178  Actions/AtomAction/MirrorAction.def \
  • tests/regression/Bond/testsuite-bond.at

    r51d384a r5fa1e86  
    3333m4_include([Bond/SetDegree/testsuite-bond-set-degree_multiple.at])
    3434
     35# bondify
     36# m4_include(Bond/Bondify/testsuite-bond-bondify.at)
  • tests/regression/Makefile.am

    r51d384a r5fa1e86  
    8181        $(srcdir)/Bond/Add/testsuite-bond-add_multiple.at \
    8282        $(srcdir)/Bond/AdjacencyMatcher/testsuite-bond-adjacencymatcher.at \
     83        $(srcdir)/Bond/Bondify/testsuite-bond-bondify.at \
    8384        $(srcdir)/Bond/Remove/testsuite-bond-remove.at \
    8485        $(srcdir)/Bond/Remove/testsuite-bond-remove_multiple.at \
Note: See TracChangeset for help on using the changeset viewer.