source: src/Actions/GlobalListOfActions.hpp@ 6b7765

Candidate_v1.7.0 stable
Last change on this file since 6b7765 was 999eaf, checked in by Frederik Heber <frederik.heber@…>, 5 years ago

Added EvaluateStabilityAction to estimate a molecule's stability.

  • removes every bond and checks the energies of the products against the educt equipped with enough hydrogen molecules to compensate for the cut bond times its degree.
  • outputs a CSV file with entries per bond.
  • extended HomologyGraph to allow direct use of AtomIdSet, i.e. atomic ids coming from a selection in the World or from the molecule.
  • DOCU: Added subsection on this action to section homology.
  • TEST: Added regression test case.
  • Property mode set to 100644
File size: 5.9 KB
RevLine 
[83e90c]1/*
2 * GlobalListOfActions.hpp
3 *
4 * Created on: Sep 21, 2011
5 * Author: heber
6 */
7
8#ifndef GLOBALLISTOFACTIONS_HPP_
9#define GLOBALLISTOFACTIONS_HPP_
10
11// include config.h
12#ifdef HAVE_CONFIG_H
13#include <config.h>
14#endif
15
[004d5c]16#include <boost/preprocessor/seq/push_back.hpp>
[975b83]17#include <boost/preprocessor/seq/remove.hpp>
[004d5c]18
19// this is global list of actions valid for all cases
[442495]20// PLEASE adhere to the alphabetical ordering of the list of Actions
21// NOTE that Redo must remain at the front due to technical reasons
[004d5c]22#define GLOBALLISTOFACTIONS_initial \
23 (Redo) \
[f4b626a]24 (AnalysisAverageMoleculeForce) \
[442495]25 (AnalysisDipoleAngularCorrelation) \
26 (AnalysisDipoleCorrelation) \
27 (AnalysisMolecularVolume) \
28 (AnalysisPairCorrelation) \
29 (AnalysisPointCorrelation) \
30 (AnalysisPrincipalAxisSystem) \
31 (AnalysisSurfaceCorrelation) \
32 (AtomAdd) \
[5fa1e86]33 (AtomBondify) \
[442495]34 (AtomChangeElement) \
[bbf6dc]35 (AtomMirror) \
[310445]36 (AtomRandomPerturbation) \
[442495]37 (AtomRemove) \
38 (AtomRotateAroundOriginByAngle) \
[2fcef3]39 (AtomSaturate) \
[442495]40 (AtomSaveSelectedAtoms) \
41 (AtomTranslate) \
[c7fe90]42 (AtomTranslateToOrigin) \
[442495]43 (BondAdd) \
44 (BondRemove) \
[2d1280]45 (BondSetDegree) \
[f3db60]46 (CommandDryRun) \
[442495]47 (CommandElementDb) \
48 (CommandBondLengthTable) \
49 (CommandFastParsing) \
50 (CommandHelp) \
51 (CommandHelpRedistribute) \
[f3db60]52 (CommandNoDryRun) \
[442495]53 (CommandSetRandomNumbersEngine) \
54 (CommandSetRandomNumbersDistribution) \
55 (CommandStoreSession) \
[0ec9f5]56 (CommandUndoMark) \
[442495]57 (CommandVerbose) \
58 (CommandVersion) \
59 (CommandWarranty) \
60 (FillRegularGrid) \
61 (FillSurface) \
[aa55d0]62 (FillSuspendInMolecule) \
[6801f4]63 (FillVolume) \
[442495]64 (FragmentationAnalyseFragmentationResults) \
65 (FragmentationClearFragmentationResults) \
[addb51]66 (FragmentationClearFragmentationState) \
[999eaf]67 (FragmentationEvaluateStability) \
[442495]68 (FragmentationFragmentation) \
69 (FragmentationFragmentationAutomation) \
70 (FragmentationMolecularDynamics) \
71 (FragmentationParseFragmentJobs) \
[73a5f7]72 (FragmentationParseFragmentResults) \
73 (FragmentationSaveFragmentResults) \
[442495]74 (FragmentationStoreSaturatedFragment) \
[e5f61ba]75 (FragmentationStructuralOptimization) \
[987145]76 (GeometryDistanceToVector) \
77 (GeometryInputToVector) \
78 (GeometryPlaneToVector) \
79 (GeometryPositionToVector) \
[836972]80 (GeometryRemove) \
[f5ea10]81 (GraphChemicalSpaceEvaluator) \
[22b786]82 (GraphUpdateMolecules) \
[343c5a]83 (GraphCorrectBondDegree) \
[004d5c]84 (GraphCreateAdjacency) \
85 (GraphDepthFirstSearch) \
[560cbf]86 (GraphDestroyAdjacency) \
[5061d9]87 (GraphPrintSelectedAtomsAsGraphString) \
[22b786]88 (GraphSubgraphDissection) \
[442495]89 (MoleculeBondFile) \
90 (MoleculeChangeName) \
91 (MoleculeChangeBondAngle) \
[004d5c]92 (MoleculeCopy) \
[1a48d2]93 (MoleculeForceAnnealing) \
[442495]94 (MoleculeLinearInterpolationofTrajectories) \
95 (MoleculeLoad) \
[867473]96 (MoleculeRemove) \
[788dce]97 (MoleculeRotateAroundBond) \
[004d5c]98 (MoleculeRotateAroundSelfByAngle) \
[442495]99 (MoleculeRotateToPrincipalAxisSystem) \
100 (MoleculeSaveAdjacency) \
[004d5c]101 (MoleculeSaveBonds) \
[442495]102 (MoleculeSaveSelectedMolecules) \
[d40189]103 (MoleculeSaveEnergies) \
[3a51bd]104 (MoleculeStretchBond) \
[066442]105 (MoleculeTranslate) \
[442495]106 (MoleculeVerletIntegration) \
[50d49d]107 (PotentialFitPartialCharges) \
[78202b]108 (PotentialParseAtomFragments) \
[442495]109 (PotentialParseHomologies) \
[2082637]110 (PotentialParseParticleParameters) \
[f1eabd]111 (PotentialParsePotentials) \
[78202b]112 (PotentialSaveAtomFragments) \
[442495]113 (PotentialSaveHomologies) \
[2082637]114 (PotentialSaveParticleParameters) \
[0ea063]115 (PotentialSavePotentials) \
[004d5c]116 (ParserSaveSelectedAtomsAsExtTypes) \
117 (ParserSetParserParameters) \
118 (ParserSetOutputFormats) \
[442495]119 (ParserSetTremoloAtomdata) \
[004d5c]120 (Undo) \
[442495]121 (SelectionAllAtoms) \
122 (SelectionAllAtomsInsideVolume) \
123 (SelectionAllAtomsOfMolecule) \
[004d5c]124 (SelectionAllMolecules) \
[442495]125 (SelectionAllShapes) \
[4de4f6]126 (SelectionAtomBondNeighbors) \
[442495]127 (SelectionAtomByElement) \
128 (SelectionAtomById) \
[3f6aac]129 (SelectionAtomByName) \
[442495]130 (SelectionAtomByOrder) \
[0ad4781]131 (SelectionAtomByRandom) \
[442495]132 (SelectionClearAllAtoms) \
[004d5c]133 (SelectionClearAllMolecules) \
[442495]134 (SelectionInvertAtoms) \
[ebc499]135 (SelectionInvertMolecules) \
[442495]136 (SelectionMoleculeOfAtom) \
[004d5c]137 (SelectionMoleculeByFormula) \
[442495]138 (SelectionMoleculeById) \
139 (SelectionMoleculeByName) \
140 (SelectionMoleculeByOrder) \
[004d5c]141 (SelectionNotAllAtoms) \
[eff536]142 (SelectionNotAllAtomsInsideVolume) \
[004d5c]143 (SelectionNotAllAtomsOfMolecule) \
[442495]144 (SelectionNotAllMolecules) \
[a27dcb]145 (SelectionNotAllShapes) \
[442495]146 (SelectionNotAtomByElement) \
[3f6aac]147 (SelectionNotAtomById) \
148 (SelectionNotAtomByName) \
[442495]149 (SelectionNotAtomByOrder) \
150 (SelectionNotMoleculeOfAtom) \
151 (SelectionNotMoleculeByFormula) \
152 (SelectionNotMoleculeById) \
153 (SelectionNotMoleculeByName) \
154 (SelectionNotMoleculeByOrder) \
[2c004d]155 (SelectionNotShapeByName) \
[3213f2]156 (SelectionPopAtoms) \
157 (SelectionPushAtoms) \
[a84e8d]158 (SelectionPopMolecules) \
159 (SelectionPushMolecules) \
[442495]160 (SelectionShapeByName) \
[d475a6]161 (ShapeCombineShapes) \
[f20da5]162 (ShapeCreateShape) \
[0b5057]163 (ShapeRemoveShape) \
[a2bbb1]164 (ShapeRotateShape) \
[29ea65]165 (ShapeStretchShape) \
[442495]166 (ShapeTranslateShape) \
167 (TesselationConvexEnvelope) \
168 (TesselationNonConvexEnvelope) \
169 (WorldAddEmptyBoundary) \
170 (WorldBoundInBox) \
171 (WorldCenterInBox) \
172 (WorldCenterOnEdge) \
173 (WorldChangeBox) \
174 (WorldInput) \
175 (WorldOutput) \
176 (WorldOutputAs) \
177 (WorldRepeatBox) \
178 (WorldScaleBox) \
179 (WorldSetBoundaryConditions) \
180 (WorldSetDefaultName) \
[72e40d0]181 (WorldSetWorldTime) \
182 (WorldStepWorldTime)
[004d5c]183
[786d28]184// extend list of actions in case levmar is available
[48d20d]185#ifdef HAVE_LEVMAR
186#define GLOBALLISTOFACTIONS_LEVMAR \
187 BOOST_PP_SEQ_PUSH_BACK( \
[98d166]188 BOOST_PP_SEQ_PUSH_BACK( \
189 GLOBALLISTOFACTIONS_initial, \
190 PotentialFitPotential \
191 ), \
192 PotentialFitCompoundPotential \
[48d20d]193 )
194#else
195#define GLOBALLISTOFACTIONS_LEVMAR \
[786d28]196 GLOBALLISTOFACTIONS_initial
[48d20d]197#endif /* HAVE_LEVMAR */
198
199// define final list
[0d4168]200#ifdef HAVE_PYTHON
201#define GLOBALLISTOFACTIONS_PYTHON \
202 BOOST_PP_SEQ_PUSH_BACK( \
203 GLOBALLISTOFACTIONS_LEVMAR, \
204 CommandLoadSession \
205 )
206#else
207#define GLOBALLISTOFACTIONS_PYTHON \
208 GLOBALLISTOFACTIONS_LEVMAR
209#endif
210
211#define GLOBALLISTOFACTIONS GLOBALLISTOFACTIONS_PYTHON
212
213// define python list
214// skips CommandLoadSession as this causes dangerous infinite loops
215#define GLOBALLISTOFPYTHONACTIONS \
216 GLOBALLISTOFACTIONS_LEVMAR
[48d20d]217
[83e90c]218#endif /* GLOBALLISTOFACTIONS_HPP_ */
219
Note: See TracBrowser for help on using the repository browser.