stable
        v1.7.0
      
      
        
          | Last change
 on this file 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:
            1.3 KB | 
      
      
| Line |  | 
|---|
| 1 | /* | 
|---|
| 2 | * EvaluateStabilityAction.def | 
|---|
| 3 | * | 
|---|
| 4 | *  Created on: Apr 18, 2021 | 
|---|
| 5 | *      Author: heber | 
|---|
| 6 | */ | 
|---|
| 7 |  | 
|---|
| 8 | // all includes and forward declarations necessary for non-integral types below | 
|---|
| 9 | #include <boost/filesystem/path.hpp> | 
|---|
| 10 |  | 
|---|
| 11 | // i.e. there is an integer with variable name Z that can be found in | 
|---|
| 12 | // ValueStorage by the token "Z" -> first column: int, Z, "Z" | 
|---|
| 13 | // "undefine" if no parameters are required, use (NOPARAM_DEFAULT) for each (undefined) default value | 
|---|
| 14 | #define paramtypes (boost::filesystem::path) | 
|---|
| 15 | #define paramtokens ("evaluate-stability") | 
|---|
| 16 | #define paramdescriptions ("name of the output csv file") | 
|---|
| 17 | #define paramdefaults (PARAM_DEFAULT("BondFragment_Stability.csv")) | 
|---|
| 18 | #define paramreferences (outputFilename) | 
|---|
| 19 | #define paramvalids \ | 
|---|
| 20 | (DummyValidator< boost::filesystem::path >()) | 
|---|
| 21 |  | 
|---|
| 22 | #undef statetypes | 
|---|
| 23 | #undef statereferences | 
|---|
| 24 |  | 
|---|
| 25 | // some defines for all the names, you may use ACTION, STATE and PARAMS | 
|---|
| 26 | #define CATEGORY Fragmentation | 
|---|
| 27 | #define MENUNAME "fragmentation" | 
|---|
| 28 | #define MENUPOSITION 13 | 
|---|
| 29 | #define ACTIONNAME EvaluateStability | 
|---|
| 30 | #define TOKEN "evaluate-stability" | 
|---|
| 31 |  | 
|---|
| 32 |  | 
|---|
| 33 | // finally the information stored in the ActionTrait specialization | 
|---|
| 34 | #define DESCRIPTION "evaluates the stability of the currently selected molecule by removing each bond and evaluating the energy of the products through the homology container." | 
|---|
| 35 | #undef SHORTFORM | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.