| [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 | 
 | 
|---|
 | 10 | using namespace std;
 | 
|---|
 | 11 | 
 | 
|---|
 | 12 | //============================ INCLUDES ===========================
 | 
|---|
 | 13 | 
 | 
|---|
| [6ac7ee] | 14 | #include "helpers.hpp"
 | 
|---|
| [14de469] | 15 | #include "parser.hpp"
 | 
|---|
 | 16 | 
 | 
|---|
 | 17 | //=========================== FUNCTIONS============================
 | 
|---|
 | 18 | 
 | 
|---|
 | 19 | bool OpenOutputFile(ofstream &output, const char *dir, const char *filename);
 | 
|---|
| [19f3d6] | 20 | bool AppendOutputFile(ofstream &output, const char *dir, const char *filename);
 | 
|---|
| [14de469] | 21 | 
 | 
|---|
| [1c6081] | 22 | bool CreateDataEnergyOrder(class EnergyMatrix &Fragments, class KeySetsContainer &KeySet, const char *dir, const char *prefix, const char *msg, const char *datum);
 | 
|---|
 | 23 | bool CreateDataDeltaEnergyOrder(class EnergyMatrix &Energy, class EnergyMatrix &Fragments, class KeySetsContainer &KeySet, const char *dir, const char *prefix, const char *msg, const char *datum);
 | 
|---|
 | 24 | 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));
 | 
|---|
 | 25 | bool CreateDataForcesOrderPerAtom(class ForceMatrix &Fragments, class KeySetsContainer &KeySet, const char *dir, const char *prefix, const char *msg, const char *datum);
 | 
|---|
 | 26 | 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] | 27 | bool CreateDataDeltaForcesOrderPerAtom(class ForceMatrix &Force, class ForceMatrix &Fragments, class KeySetsContainer &KeySet, const char *dir, const char *prefix, const char *msg, const char *datum); 
 | 
|---|
 | 28 | bool CreateDataHessianOrderPerAtom(class HessianMatrix &Fragments, class KeySetsContainer &KeySet, const char *dir, const char *prefix, const char *msg, const char *datum); 
 | 
|---|
 | 29 | bool CreateDataDeltaHessianOrderPerAtom(class HessianMatrix &Hessian, class HessianMatrix &Fragments, class KeySetsContainer &KeySet, const char *dir, const char *prefix, const char *msg, const char *datum); 
 | 
|---|
 | 30 | bool CreateDataDeltaFrobeniusOrderPerAtom(class HessianMatrix &Hessian, class HessianMatrix &Fragments, class KeySetsContainer &KeySet, const char *dir, const char *prefix, const char *msg, const char *datum); 
 | 
|---|
| [1c6081] | 31 | 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));
 | 
|---|
 | 32 | 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] | 33 | 
 | 
|---|
 | 34 | void CreateEnergy(class MatrixContainer &Energy, int MatrixNumber);
 | 
|---|
 | 35 | void CreateMaxFragmentOrder(class MatrixContainer &Matrix, class KeySetsContainer &KeySet, int BondOrder);
 | 
|---|
 | 36 | void CreateMinFragmentOrder(class MatrixContainer &Matrix, class KeySetsContainer &KeySet, int BondOrder);
 | 
|---|
 | 37 | void CreateMinimumForce(class MatrixContainer &Force, int MatrixNumber);
 | 
|---|
 | 38 | void CreateMeanForce(class MatrixContainer &Force, int MatrixNumber);
 | 
|---|
 | 39 | void CreateMaximumForce(class MatrixContainer &Force, int MatrixNumber);
 | 
|---|
| [390248] | 40 | void CreateSameForce(class MatrixContainer &Force, int MatrixNumber);
 | 
|---|
| [14de469] | 41 | void CreateVectorSumForce(class MatrixContainer &Force, int MatrixNumber);
 | 
|---|
 | 42 | 
 | 
|---|
 | 43 | 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);
 | 
|---|
 | 44 | 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 *));
 | 
|---|
 | 45 | 
 | 
|---|
 | 46 | void AbsEnergyPlotLine(ofstream &output, class MatrixContainer &Energy, const char *prefix, const char *xargument, const char *uses);
 | 
|---|
 | 47 | void EnergyPlotLine(ofstream &output, class MatrixContainer &Energy, const char *prefix, const char *xargument, const char *uses);
 | 
|---|
 | 48 | void ForceMagnitudePlotLine(ofstream &output, class MatrixContainer &Force, const char *prefix, const char *xargument, const char *uses);
 | 
|---|
 | 49 | void AbsFirstForceValuePlotLine(ofstream &output, class MatrixContainer &Force, const char *prefix, const char *xargument, const char *uses);
 | 
|---|
 | 50 | void BoxesForcePlotLine(ofstream &output, class MatrixContainer &Force, const char *prefix, const char *xargument, const char *uses);
 | 
|---|
 | 51 | void BoxesFirstForceValuePlotLine(ofstream &output, class MatrixContainer &Force, const char *prefix, const char *xargument, const char *uses);
 | 
|---|
 | 52 | 
 | 
|---|
 | 53 | #endif /*DATACREATOR_HPP_*/
 | 
|---|