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