Changeset 999eaf
- Timestamp:
- Apr 28, 2021, 10:02:49 PM (5 years ago)
- Branches:
- Candidate_v1.7.0, Candidate_v1.7.1, stable
- Children:
- 6b7765
- Parents:
- 5aa337
- git-author:
- Frederik Heber <frederik.heber@…> (04/18/21 08:23:36)
- git-committer:
- Frederik Heber <frederik.heber@…> (04/28/21 22:02:49)
- Files:
-
- 8 added
- 10 edited
-
doc/userguide/userguide.xml (modified) (1 diff)
-
src/Actions/FragmentationAction/EvaluateStabilityAction.cpp (added)
-
src/Actions/FragmentationAction/EvaluateStabilityAction.def (added)
-
src/Actions/FragmentationAction/EvaluateStabilityAction.hpp (added)
-
src/Actions/GlobalListOfActions.hpp (modified) (1 diff)
-
src/Actions/Makefile.am (modified) (3 diffs)
-
src/Fragmentation/Evaluation/StabilityEvaluator.cpp (added)
-
src/Fragmentation/Evaluation/StabilityEvaluator.hpp (added)
-
src/Fragmentation/Homology/HomologyGraph.cpp (modified) (1 diff)
-
src/Fragmentation/Homology/HomologyGraph.hpp (modified) (3 diffs)
-
src/Fragmentation/Homology/HomologyGraph_getFromKeyset.cpp (modified) (2 diffs)
-
src/Fragmentation/Homology/HomologyGraph_getFromKeysetStub.cpp (modified) (1 diff)
-
src/Fragmentation/Makefile.am (modified) (2 diffs)
-
tests/regression/Fragmentation/EvaluateStability/pre/C3H8.data (added)
-
tests/regression/Fragmentation/EvaluateStability/pre/homology-6-31G.dat (added)
-
tests/regression/Fragmentation/EvaluateStability/testsuite-fragmentation-evaluate-stability.at (added)
-
tests/regression/Fragmentation/testsuite-fragmentation.at (modified) (1 diff)
-
tests/regression/Makefile.am (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
doc/userguide/userguide.xml
r5aa337 r999eaf 2291 2291 <filename>homologies.dat</filename>.</para> 2292 2292 </section> 2293 <section xml:id="homology.evaluate-stability"> 2294 <title xml:id="homology.evaluate-stability.title">Evaluate Stability</title> 2295 <para>The homologies can be used to quickly get an approximation on 2296 the ground state energy of a molecule. 2297 <warning>This does not accurately take the current geometry into account.</warning> 2298 In other words, it will produce the equilibrium energy for the given 2299 molecule. 2300 Using this, there is an action that evaluates the stability of a molecule 2301 by removing each bond, saturating the ends and comparing the ground 2302 state energy of the two products to the educt plus the ground state 2303 energy of as many hydrogen molecules to match the cut bond's degree. 2304 <programlisting>... --evaluate-stability output.csv</programlisting> 2305 This writes a table of educt and product names along with their summed 2306 energies. The comparison between educt and product energy in each row 2307 yields whether this molecule is overall stable. 2308 <note>Be aware that this calculation is based on saturation, i.e. hydrogens 2309 are added to saturate dangling bonds. These additional atoms need to 2310 be compensated and for this reason there is an additional educt, a 2311 number of hydrogen molecules.</note> 2312 </para> 2313 </section> 2293 2314 <section xml:id="atomfragments"> 2294 2315 <title xml:id="atomfragments.title">AtomFragments</title> -
src/Actions/GlobalListOfActions.hpp
r5aa337 r999eaf 65 65 (FragmentationClearFragmentationResults) \ 66 66 (FragmentationClearFragmentationState) \ 67 (FragmentationEvaluateStability) \ 67 68 (FragmentationFragmentation) \ 68 69 (FragmentationFragmentationAutomation) \ -
src/Actions/Makefile.am
r5aa337 r999eaf 268 268 Actions/FragmentationAction/ClearFragmentationResultsAction.cpp \ 269 269 Actions/FragmentationAction/ClearFragmentationStateAction.cpp \ 270 Actions/FragmentationAction/EvaluateStabilityAction.cpp \ 270 271 Actions/FragmentationAction/FragmentationAction.cpp \ 271 272 Actions/FragmentationAction/FragmentationAutomationAction.cpp \ … … 280 281 Actions/FragmentationAction/ClearFragmentationResultsAction.hpp \ 281 282 Actions/FragmentationAction/ClearFragmentationStateAction.hpp \ 283 Actions/FragmentationAction/EvaluateStabilityAction.hpp \ 282 284 Actions/FragmentationAction/FragmentationAction.hpp \ 283 285 Actions/FragmentationAction/FragmentationAutomationAction.hpp \ … … 292 294 Actions/FragmentationAction/ClearFragmentationResultsAction.def \ 293 295 Actions/FragmentationAction/ClearFragmentationStateAction.def \ 296 Actions/FragmentationAction/EvaluateStabilityAction.def \ 294 297 Actions/FragmentationAction/FragmentationAction.def \ 295 298 Actions/FragmentationAction/FragmentationAutomationAction.def \ -
src/Fragmentation/Homology/HomologyGraph.cpp
r5aa337 r999eaf 55 55 nodes(detail::getNodesFromIndexSet(index)), 56 56 edges(detail::getEdgesFromIndexSet(index)) 57 {} 58 59 HomologyGraph::HomologyGraph(const AtomIdSet::atomIdSet &index) : 60 nodes(detail::getNodesFromAtomIds(index)), 61 edges(detail::getEdgesFromAtomIds(index)) 57 62 {} 58 63 -
src/Fragmentation/Homology/HomologyGraph.hpp
r5aa337 r999eaf 21 21 #include <iosfwd> 22 22 23 #include "AtomIdSet.hpp" 23 24 #include "Fragmentation/Homology/FragmentEdge.hpp" 24 25 #include "Fragmentation/Homology/FragmentNode.hpp" … … 79 80 explicit HomologyGraph(const IndexSet &index); 80 81 82 /** Constructor for class HomologyGraph from a AtomIdSet (i.e. from atoms in the World). 83 * 84 * @param index global ids of atoms to pick 85 */ 86 explicit HomologyGraph(const AtomIdSet::atomIdSet &index); 87 81 88 /** Destructor for class HomologyGraph. 82 89 * … … 200 207 const HomologyGraph::nodes_t getNodesFromIndexSet(const IndexSet &keyset); 201 208 const HomologyGraph::edges_t getEdgesFromIndexSet(const IndexSet &keyset); 209 const HomologyGraph::nodes_t getNodesFromAtomIds(const AtomIdSet::atomIdSet &keyset); 210 const HomologyGraph::edges_t getEdgesFromAtomIds(const AtomIdSet::atomIdSet &keyset); 202 211 }; 203 212 -
src/Fragmentation/Homology/HomologyGraph_getFromKeyset.cpp
r5aa337 r999eaf 135 135 return getNodesFromSet<size_t>(keyset); 136 136 } 137 const HomologyGraph::nodes_t getNodesFromAtomIds(const AtomIdSet::atomIdSet &keyset) { 138 return getNodesFromSet<atomId_t>(keyset); 139 } 137 140 const HomologyGraph::edges_t getEdgesFromKeySet(const KeySet &keyset) { 138 141 return getEdgesFromSet<int>(keyset); … … 141 144 return getEdgesFromSet<size_t>(keyset); 142 145 } 146 const HomologyGraph::edges_t getEdgesFromAtomIds(const AtomIdSet::atomIdSet &keyset) { 147 return getEdgesFromSet<atomId_t>(keyset); 148 } 143 149 }; /* namespace detail */ 144 150 -
src/Fragmentation/Homology/HomologyGraph_getFromKeysetStub.cpp
r5aa337 r999eaf 63 63 } 64 64 65 const HomologyGraph::nodes_t getNodesFromAtomIds(const AtomIdSet::atomIdSet &keyset) 66 { 67 return HomologyGraph::nodes_t(); 68 } 69 70 const HomologyGraph::edges_t getEdgesFromAtomIds(const AtomIdSet::atomIdSet &keyset) 71 { 72 return HomologyGraph::edges_t(); 73 } 65 74 }; /* namespace detail */ -
src/Fragmentation/Makefile.am
r5aa337 r999eaf 3 3 4 4 FRAGMENTATIONSOURCE = \ 5 Fragmentation/Evaluation/StabilityEvaluator.cpp \ 5 6 Fragmentation/Exporters/ExportGraph_ToAtomFragments.cpp \ 6 7 Fragmentation/Exporters/ExportGraph_ToFiles.cpp \ … … 36 37 37 38 FRAGMENTATIONHEADER = \ 39 Fragmentation/Evaluation/StabilityEvaluator.hpp \ 38 40 Fragmentation/Exporters/ExportGraph_ToAtomFragments.hpp \ 39 41 Fragmentation/Exporters/ExportGraph_ToFiles.hpp \ -
tests/regression/Fragmentation/testsuite-fragmentation.at
r5aa337 r999eaf 39 39 # parse/save state of FragmentationResultsContainer 40 40 m4_include([Fragmentation/ParseSaveFragmentResults/testsuite-fragmentation-parse-save-fragment-results.at]) 41 42 # evaluate stability of a molecule from homology graphs 43 m4_include([Fragmentation/EvaluateStability/testsuite-fragmentation-evaluate-stability.at]) -
tests/regression/Makefile.am
r5aa337 r999eaf 124 124 $(srcdir)/Fragmentation/AnalyseFragmentationResults/testsuite-fragmentation-analyse-fragment-results.at \ 125 125 $(srcdir)/Fragmentation/DiffFragmentResultContainer/testsuite-fragmentation-difffragmenresultcontainer.at \ 126 $(srcdir)/Fragmentation/EvaluateStability/testsuite-fragmentation-evaluate-stability.at \ 126 127 $(srcdir)/Fragmentation/FragmentationAutomation/testsuite-fragmentation-fragmentation-automation.at \ 127 128 $(srcdir)/Fragmentation/FragmentMolecule/testsuite-fragmentation-fragment-molecule.at \
Note:
See TracChangeset
for help on using the changeset viewer.
