Changeset 9a1e35c


Ignore:
Timestamp:
May 8, 2017, 1:59:04 PM (8 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
ForceAnnealing_goodresults, ForceAnnealing_tocheck
Children:
9eed14
Parents:
ce254c
git-author:
Frederik Heber <heber@…> (03/22/17 15:42:35)
git-committer:
Frederik Heber <frederik.heber@…> (05/08/17 13:59:04)
Message:

Added RotateAroundBondAction.

  • TESTS: added regression test.
  • DOCU: added explanation to userguide.
Files:
8 added
6 edited

Legend:

Unmodified
Added
Removed
  • doc/userguide/userguide.xml

    rce254c r9a1e35c  
    10551055          <para>As before, this is actually just an operation on all of the molecule&apos;s atoms, namely translating them.</para>
    10561056        </section>
     1057        <section xml:id="molecule.rotate-around-bond">
     1058          <title xml:id="molecule.rotate-around-bond.title">Rotate around bond </title>
     1059          <para>This rotates parts of a molecule around a given bond, i.e. the
     1060          bond vector becomes the rotation axis but only atoms on the side of
     1061          second atom get rotated. This naturally does not work for bonds in a
     1062          cycle.</para>
     1063          <programlisting>
     1064  ... --rotate-around-bond &quot;90&quot; \
     1065      --bond-side 0\
     1066   </programlisting>
     1067        </section>
    10571068        <section xml:id="molecule.rotate-around-self">
    10581069          <title xml:id="molecule.rotate-around-self.title">Rotate around self </title>
  • src/Actions/GlobalListOfActions.hpp

    rce254c r9a1e35c  
    8383  (MoleculeLoad) \
    8484  (MoleculeRemove) \
     85  (MoleculeRotateAroundBond) \
    8586  (MoleculeRotateAroundSelfByAngle) \
    8687  (MoleculeRotateToPrincipalAxisSystem) \
  • src/Actions/Makefile.am

    rce254c r9a1e35c  
    317317  Actions/MoleculeAction/LoadAction.cpp \
    318318  Actions/MoleculeAction/RemoveAction.cpp \
     319  Actions/MoleculeAction/RotateAroundBondAction.cpp \
    319320  Actions/MoleculeAction/RotateAroundSelfByAngleAction.cpp \
    320321  Actions/MoleculeAction/RotateToPrincipalAxisSystemAction.cpp \
     
    335336  Actions/MoleculeAction/LoadAction.hpp \
    336337  Actions/MoleculeAction/RemoveAction.hpp \
     338  Actions/MoleculeAction/RotateAroundBondAction.hpp \
    337339  Actions/MoleculeAction/RotateAroundSelfByAngleAction.hpp \
    338340  Actions/MoleculeAction/RotateToPrincipalAxisSystemAction.hpp \
     
    353355  Actions/MoleculeAction/LoadAction.def \
    354356  Actions/MoleculeAction/RemoveAction.def \
     357  Actions/MoleculeAction/RotateAroundBondAction.def \
    355358  Actions/MoleculeAction/RotateAroundSelfByAngleAction.def \
    356359  Actions/MoleculeAction/RotateToPrincipalAxisSystemAction.def \
  • tests/Python/AllActions/options.dat

    rce254c r9a1e35c  
    3333bond-degree     "1"
    3434bond-file       "bond.dat"
     35bondside        "1"
    3536bond-table      "table.dat"
    3637calculate-bounding-box  ""
     
    159160repeat-box      "1 1 1"
    160161reset   1
     162rotate-around-bond      "90."
    161163rotate-around-origin    "180."
    162164rotate-around-origin    "20."
  • tests/regression/Makefile.am

    rce254c r9a1e35c  
    133133        $(srcdir)/Molecules/LinearInterpolationofTrajectories/testsuite-molecules-linear-interpolation-of-trajectories.at \
    134134        $(srcdir)/Molecules/Remove/testsuite-molecules-remove.at \
     135        $(srcdir)/Molecules/RotateAroundBond/testsuite-molecules-rotate-around-bond.at \
    135136        $(srcdir)/Molecules/RotateAroundOrigin/testsuite-molecules-rotate-around-origin.at \
    136137        $(srcdir)/Molecules/RotateAroundSelf/testsuite-molecules-rotate-around-self.at \
  • tests/regression/Molecules/testsuite-molecules.at

    rce254c r9a1e35c  
    6060m4_include([Molecules/RotateToPrincipalAxisSystem/testsuite-molecules-rotate-to-principal-axis-system.at])
    6161
     62# rotate around one of its bond
     63m4_include([Molecules/RotateAroundBond/testsuite-molecules-rotate-around-bond.at])
     64
    6265# Rotate around origin
    6366m4_include([Molecules/RotateAroundOrigin/testsuite-molecules-rotate-around-origin.at])
Note: See TracChangeset for help on using the changeset viewer.