[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 |
|
---|
[6ac7ee] | 22 | bool CreateDataEnergyOrder(class EnergyMatrix &Fragments, class KeySetsContainer &KeySet, char *dir, char *prefix, char *msg, char *datum);
|
---|
| 23 | bool CreateDataDeltaEnergyOrder(class EnergyMatrix &Energy, class EnergyMatrix &Fragments, class KeySetsContainer &KeySet, char *dir, char *prefix, char *msg, char *datum);
|
---|
[390248] | 24 | bool CreateDataForcesOrder(class ForceMatrix &Fragments, class KeySetsContainer &KeySet, char *dir, char *prefix, char *msg, char *datum, void (*CreateForce)(class MatrixContainer &, int));
|
---|
| 25 | bool CreateDataForcesOrderPerAtom(class ForceMatrix &Fragments, class KeySetsContainer &KeySet, char *dir, char *prefix, char *msg, char *datum);
|
---|
| 26 | bool CreateDataDeltaForcesOrder(class ForceMatrix &Force, class ForceMatrix &Fragments, class KeySetsContainer &KeySet, char *dir, char *prefix, char *msg, char *datum, void (*CreateForce)(class MatrixContainer &, int));
|
---|
[6ac7ee] | 27 | bool CreateDataDeltaForcesOrderPerAtom(class ForceMatrix &Force, class ForceMatrix &Fragments, class KeySetsContainer &KeySet, char *dir, char *prefix, char *msg, char *datum);
|
---|
[14de469] | 28 | bool CreateDataFragment(class MatrixContainer &ForceFragments, class KeySetsContainer &KeySet, char *dir, char *prefix, char *msg, char *datum, void (*CreateForce)(class MatrixContainer &, int));
|
---|
| 29 | bool CreateDataFragmentOrder(class MatrixContainer &Fragment, class KeySetsContainer &KeySet, char *dir, char *prefix, char *msg, char *datum, void (*CreateFragmentOrder)(class MatrixContainer &, class KeySetsContainer &, int));
|
---|
| 30 |
|
---|
| 31 | void CreateEnergy(class MatrixContainer &Energy, int MatrixNumber);
|
---|
| 32 | void CreateMaxFragmentOrder(class MatrixContainer &Matrix, class KeySetsContainer &KeySet, int BondOrder);
|
---|
| 33 | void CreateMinFragmentOrder(class MatrixContainer &Matrix, class KeySetsContainer &KeySet, int BondOrder);
|
---|
| 34 | void CreateMinimumForce(class MatrixContainer &Force, int MatrixNumber);
|
---|
| 35 | void CreateMeanForce(class MatrixContainer &Force, int MatrixNumber);
|
---|
| 36 | void CreateMaximumForce(class MatrixContainer &Force, int MatrixNumber);
|
---|
[390248] | 37 | void CreateSameForce(class MatrixContainer &Force, int MatrixNumber);
|
---|
[14de469] | 38 | void CreateVectorSumForce(class MatrixContainer &Force, int MatrixNumber);
|
---|
| 39 |
|
---|
| 40 | 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);
|
---|
| 41 | 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 *));
|
---|
| 42 |
|
---|
| 43 | void AbsEnergyPlotLine(ofstream &output, class MatrixContainer &Energy, const char *prefix, const char *xargument, const char *uses);
|
---|
| 44 | void EnergyPlotLine(ofstream &output, class MatrixContainer &Energy, const char *prefix, const char *xargument, const char *uses);
|
---|
| 45 | void ForceMagnitudePlotLine(ofstream &output, class MatrixContainer &Force, const char *prefix, const char *xargument, const char *uses);
|
---|
| 46 | void AbsFirstForceValuePlotLine(ofstream &output, class MatrixContainer &Force, const char *prefix, const char *xargument, const char *uses);
|
---|
| 47 | void BoxesForcePlotLine(ofstream &output, class MatrixContainer &Force, const char *prefix, const char *xargument, const char *uses);
|
---|
| 48 | void BoxesFirstForceValuePlotLine(ofstream &output, class MatrixContainer &Force, const char *prefix, const char *xargument, const char *uses);
|
---|
| 49 |
|
---|
| 50 | #endif /*DATACREATOR_HPP_*/
|
---|