| 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 MatrixContainer &Energy, class MatrixContainer &EnergyFragments, class KeySetsContainer &KeySet, char *dir, char *prefix, char *msg, char *datum); 
 | 
|---|
| 22 | bool CreateDataForcesOrder(class MatrixContainer &Force, class MatrixContainer &ForceFragments, class KeySetsContainer &KeySet, char *dir, char *prefix, char *msg, char *datum, void (*CreateForce)(class MatrixContainer &, int));
 | 
|---|
| 23 | bool CreateDataFragment(class MatrixContainer &ForceFragments, class KeySetsContainer &KeySet, char *dir, char *prefix, char *msg, char *datum, void (*CreateForce)(class MatrixContainer &, int));
 | 
|---|
| 24 | bool CreateDataFragmentOrder(class MatrixContainer &Fragment, class KeySetsContainer &KeySet, char *dir, char *prefix, char *msg, char *datum, void (*CreateFragmentOrder)(class MatrixContainer &, class KeySetsContainer &, int));
 | 
|---|
| 25 | 
 | 
|---|
| 26 | void CreateEnergy(class MatrixContainer &Energy, int MatrixNumber);
 | 
|---|
| 27 | void CreateMaxFragmentOrder(class MatrixContainer &Matrix, class KeySetsContainer &KeySet, int BondOrder);
 | 
|---|
| 28 | void CreateMinFragmentOrder(class MatrixContainer &Matrix, class KeySetsContainer &KeySet, int BondOrder);
 | 
|---|
| 29 | void CreateMinimumForce(class MatrixContainer &Force, int MatrixNumber);
 | 
|---|
| 30 | void CreateMeanForce(class MatrixContainer &Force, int MatrixNumber);
 | 
|---|
| 31 | void CreateMaximumForce(class MatrixContainer &Force, int MatrixNumber);
 | 
|---|
| 32 | void CreateVectorSumForce(class MatrixContainer &Force, int MatrixNumber);
 | 
|---|
| 33 | 
 | 
|---|
| 34 | 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);
 | 
|---|
| 35 | 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 *));
 | 
|---|
| 36 | 
 | 
|---|
| 37 | void AbsEnergyPlotLine(ofstream &output, class MatrixContainer &Energy, const char *prefix, const char *xargument, const char *uses);
 | 
|---|
| 38 | void EnergyPlotLine(ofstream &output, class MatrixContainer &Energy, const char *prefix, const char *xargument, const char *uses);
 | 
|---|
| 39 | void ForceMagnitudePlotLine(ofstream &output, class MatrixContainer &Force, const char *prefix, const char *xargument, const char *uses);
 | 
|---|
| 40 | void AbsFirstForceValuePlotLine(ofstream &output, class MatrixContainer &Force, const char *prefix, const char *xargument, const char *uses);
 | 
|---|
| 41 | void BoxesForcePlotLine(ofstream &output, class MatrixContainer &Force, const char *prefix, const char *xargument, const char *uses);
 | 
|---|
| 42 | void BoxesFirstForceValuePlotLine(ofstream &output, class MatrixContainer &Force, const char *prefix, const char *xargument, const char *uses);
 | 
|---|
| 43 | 
 | 
|---|
| 44 | #endif /*DATACREATOR_HPP_*/
 | 
|---|