| [14de469] | 1 | /** \file datacreator.cpp | 
|---|
|  | 2 | * | 
|---|
| [6ac7ee] | 3 | * Definitions of assisting functions in creating data and plot files. | 
|---|
|  | 4 | * | 
|---|
| [14de469] | 5 | */ | 
|---|
|  | 6 |  | 
|---|
|  | 7 | #ifndef DATACREATOR_HPP_ | 
|---|
|  | 8 | #define DATACREATOR_HPP_ | 
|---|
|  | 9 |  | 
|---|
| [56f73b] | 10 | // include config.h | 
|---|
|  | 11 | #ifdef HAVE_CONFIG_H | 
|---|
|  | 12 | #include <config.h> | 
|---|
|  | 13 | #endif | 
|---|
|  | 14 |  | 
|---|
|  | 15 |  | 
|---|
| [14de469] | 16 | using namespace std; | 
|---|
|  | 17 |  | 
|---|
| [986ed3] | 18 | #include <iosfwd> | 
|---|
| [14de469] | 19 |  | 
|---|
| [f66195] | 20 | /****************************************** forward declarations *****************************/ | 
|---|
| [14de469] | 21 |  | 
|---|
| [f66195] | 22 | class EnergyMatrix; | 
|---|
|  | 23 | class ForceMatrix; | 
|---|
|  | 24 | class HessianMatrix; | 
|---|
|  | 25 | class KeySetsContainer; | 
|---|
|  | 26 | class MatrixContainer; | 
|---|
|  | 27 |  | 
|---|
|  | 28 | /********************************************** declarations *******************************/ | 
|---|
| [14de469] | 29 |  | 
|---|
|  | 30 | bool OpenOutputFile(ofstream &output, const char *dir, const char *filename); | 
|---|
| [19f3d6] | 31 | bool AppendOutputFile(ofstream &output, const char *dir, const char *filename); | 
|---|
| [14de469] | 32 |  | 
|---|
| [1c6081] | 33 | bool CreateDataEnergyOrder(class EnergyMatrix &Fragments, class KeySetsContainer &KeySet, const char *dir, const char *prefix, const char *msg, const char *datum); | 
|---|
|  | 34 | bool CreateDataDeltaEnergyOrder(class EnergyMatrix &Energy, class EnergyMatrix &Fragments, class KeySetsContainer &KeySet, const char *dir, const char *prefix, const char *msg, const char *datum); | 
|---|
|  | 35 | bool CreateDataForcesOrder(class ForceMatrix &Fragments, class KeySetsContainer &KeySet, const char *dir, const char *prefix, const char *msg, const char *datum, void (*CreateForce)(class MatrixContainer &, int)); | 
|---|
|  | 36 | bool CreateDataForcesOrderPerAtom(class ForceMatrix &Fragments, class KeySetsContainer &KeySet, const char *dir, const char *prefix, const char *msg, const char *datum); | 
|---|
|  | 37 | bool CreateDataDeltaForcesOrder(class ForceMatrix &Force, class ForceMatrix &Fragments, class KeySetsContainer &KeySet, const char *dir, const char *prefix, const char *msg, const char *datum, void (*CreateForce)(class MatrixContainer &, int)); | 
|---|
| [36ec71] | 38 | bool CreateDataDeltaForcesOrderPerAtom(class ForceMatrix &Force, class ForceMatrix &Fragments, class KeySetsContainer &KeySet, const char *dir, const char *prefix, const char *msg, const char *datum); | 
|---|
|  | 39 | bool CreateDataHessianOrderPerAtom(class HessianMatrix &Fragments, class KeySetsContainer &KeySet, const char *dir, const char *prefix, const char *msg, const char *datum); | 
|---|
|  | 40 | bool CreateDataDeltaHessianOrderPerAtom(class HessianMatrix &Hessian, class HessianMatrix &Fragments, class KeySetsContainer &KeySet, const char *dir, const char *prefix, const char *msg, const char *datum); | 
|---|
|  | 41 | bool CreateDataDeltaFrobeniusOrderPerAtom(class HessianMatrix &Hessian, class HessianMatrix &Fragments, class KeySetsContainer &KeySet, const char *dir, const char *prefix, const char *msg, const char *datum); | 
|---|
| [1c6081] | 42 | bool CreateDataFragment(class MatrixContainer &ForceFragments, class KeySetsContainer &KeySet, const char *dir, const char *prefix, const char *msg, const char *datum, void (*CreateForce)(class MatrixContainer &, int)); | 
|---|
|  | 43 | bool CreateDataFragmentOrder(class MatrixContainer &Fragment, class KeySetsContainer &KeySet, const char *dir, const char *prefix, const char *msg, const char *datum, void (*CreateFragmentOrder)(class MatrixContainer &, class KeySetsContainer &, int)); | 
|---|
| [14de469] | 44 |  | 
|---|
|  | 45 | void CreateEnergy(class MatrixContainer &Energy, int MatrixNumber); | 
|---|
|  | 46 | void CreateMaxFragmentOrder(class MatrixContainer &Matrix, class KeySetsContainer &KeySet, int BondOrder); | 
|---|
|  | 47 | void CreateMinFragmentOrder(class MatrixContainer &Matrix, class KeySetsContainer &KeySet, int BondOrder); | 
|---|
|  | 48 | void CreateMinimumForce(class MatrixContainer &Force, int MatrixNumber); | 
|---|
|  | 49 | void CreateMeanForce(class MatrixContainer &Force, int MatrixNumber); | 
|---|
|  | 50 | void CreateMaximumForce(class MatrixContainer &Force, int MatrixNumber); | 
|---|
| [390248] | 51 | void CreateSameForce(class MatrixContainer &Force, int MatrixNumber); | 
|---|
| [14de469] | 52 | void CreateVectorSumForce(class MatrixContainer &Force, int MatrixNumber); | 
|---|
|  | 53 |  | 
|---|
|  | 54 | void CreatePlotHeader(ofstream &output, const char *prefix, const int keycolumns, const char *key, const char *logscale, const char *extraline, const int mxtics, const int xtics, const char *xlabel, const char *ylabel); | 
|---|
|  | 55 | bool CreatePlotOrder(class MatrixContainer &Matrix, const class KeySetsContainer &KeySet, const char *dir, const char *prefix, const int keycolumns, const char *key, const char *logscale, const char *extraline, const int mxtics, const int xtics, const char *xlabel, const char *ylabel, const char *xrange, const char *yrange, const char *xargument, const char *uses, void (*CreatePlotLines)(ofstream &, class MatrixContainer &, const char *, const char *, const char *)); | 
|---|
|  | 56 |  | 
|---|
|  | 57 | void AbsEnergyPlotLine(ofstream &output, class MatrixContainer &Energy, const char *prefix, const char *xargument, const char *uses); | 
|---|
|  | 58 | void EnergyPlotLine(ofstream &output, class MatrixContainer &Energy, const char *prefix, const char *xargument, const char *uses); | 
|---|
|  | 59 | void ForceMagnitudePlotLine(ofstream &output, class MatrixContainer &Force, const char *prefix, const char *xargument, const char *uses); | 
|---|
|  | 60 | void AbsFirstForceValuePlotLine(ofstream &output, class MatrixContainer &Force, const char *prefix, const char *xargument, const char *uses); | 
|---|
|  | 61 | void BoxesForcePlotLine(ofstream &output, class MatrixContainer &Force, const char *prefix, const char *xargument, const char *uses); | 
|---|
|  | 62 | void BoxesFirstForceValuePlotLine(ofstream &output, class MatrixContainer &Force, const char *prefix, const char *xargument, const char *uses); | 
|---|
|  | 63 |  | 
|---|
|  | 64 | #endif /*DATACREATOR_HPP_*/ | 
|---|