1 | /** \file datacreator.cpp
|
---|
2 | *
|
---|
3 | * Definitions of assisting functions in creating data and plot files.
|
---|
4 | *
|
---|
5 | */
|
---|
6 |
|
---|
7 | #ifndef DATACREATOR_HPP_
|
---|
8 | #define DATACREATOR_HPP_
|
---|
9 |
|
---|
10 | using namespace std;
|
---|
11 |
|
---|
12 | //============================ INCLUDES ===========================
|
---|
13 |
|
---|
14 | #include "helpers.hpp"
|
---|
15 | #include "parser.hpp"
|
---|
16 |
|
---|
17 | //=========================== FUNCTIONS============================
|
---|
18 |
|
---|
19 | bool OpenOutputFile(ofstream &output, const char *dir, const char *filename);
|
---|
20 |
|
---|
21 | bool CreateDataEnergyOrder(class EnergyMatrix &Fragments, class KeySetsContainer &KeySet, char *dir, char *prefix, char *msg, char *datum);
|
---|
22 | bool CreateDataDeltaEnergyOrder(class EnergyMatrix &Energy, class EnergyMatrix &Fragments, class KeySetsContainer &KeySet, char *dir, char *prefix, char *msg, char *datum);
|
---|
23 | bool CreateDataForcesOrder(class ForceMatrix &Fragments, class KeySetsContainer &KeySet, char *dir, char *prefix, char *msg, char *datum, void (*CreateForce)(class MatrixContainer &, int));
|
---|
24 | bool CreateDataForcesOrderPerAtom(class ForceMatrix &Fragments, class KeySetsContainer &KeySet, char *dir, char *prefix, char *msg, char *datum);
|
---|
25 | bool CreateDataDeltaForcesOrder(class ForceMatrix &Force, class ForceMatrix &Fragments, class KeySetsContainer &KeySet, char *dir, char *prefix, char *msg, char *datum, void (*CreateForce)(class MatrixContainer &, int));
|
---|
26 | bool CreateDataDeltaForcesOrderPerAtom(class ForceMatrix &Force, class ForceMatrix &Fragments, class KeySetsContainer &KeySet, char *dir, char *prefix, char *msg, char *datum);
|
---|
27 | bool CreateDataFragment(class MatrixContainer &ForceFragments, class KeySetsContainer &KeySet, char *dir, char *prefix, char *msg, char *datum, void (*CreateForce)(class MatrixContainer &, int));
|
---|
28 | bool CreateDataFragmentOrder(class MatrixContainer &Fragment, class KeySetsContainer &KeySet, char *dir, char *prefix, char *msg, char *datum, void (*CreateFragmentOrder)(class MatrixContainer &, class KeySetsContainer &, int));
|
---|
29 |
|
---|
30 | void CreateEnergy(class MatrixContainer &Energy, int MatrixNumber);
|
---|
31 | void CreateMaxFragmentOrder(class MatrixContainer &Matrix, class KeySetsContainer &KeySet, int BondOrder);
|
---|
32 | void CreateMinFragmentOrder(class MatrixContainer &Matrix, class KeySetsContainer &KeySet, int BondOrder);
|
---|
33 | void CreateMinimumForce(class MatrixContainer &Force, int MatrixNumber);
|
---|
34 | void CreateMeanForce(class MatrixContainer &Force, int MatrixNumber);
|
---|
35 | void CreateMaximumForce(class MatrixContainer &Force, int MatrixNumber);
|
---|
36 | void CreateSameForce(class MatrixContainer &Force, int MatrixNumber);
|
---|
37 | void CreateVectorSumForce(class MatrixContainer &Force, int MatrixNumber);
|
---|
38 |
|
---|
39 | 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);
|
---|
40 | 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 *));
|
---|
41 |
|
---|
42 | void AbsEnergyPlotLine(ofstream &output, class MatrixContainer &Energy, const char *prefix, const char *xargument, const char *uses);
|
---|
43 | void EnergyPlotLine(ofstream &output, class MatrixContainer &Energy, const char *prefix, const char *xargument, const char *uses);
|
---|
44 | void ForceMagnitudePlotLine(ofstream &output, class MatrixContainer &Force, const char *prefix, const char *xargument, const char *uses);
|
---|
45 | void AbsFirstForceValuePlotLine(ofstream &output, class MatrixContainer &Force, const char *prefix, const char *xargument, const char *uses);
|
---|
46 | void BoxesForcePlotLine(ofstream &output, class MatrixContainer &Force, const char *prefix, const char *xargument, const char *uses);
|
---|
47 | void BoxesFirstForceValuePlotLine(ofstream &output, class MatrixContainer &Force, const char *prefix, const char *xargument, const char *uses);
|
---|
48 |
|
---|
49 | #endif /*DATACREATOR_HPP_*/
|
---|