38 |
|
* University of Notre Dame has been advised of the possibility of |
39 |
|
* such damages. |
40 |
|
*/ |
41 |
< |
#ifndef APPLICATIONS_STATICPROPS_P2ORDERPARAMETER_HPP |
42 |
< |
#define APPLICATIONS_STATICPROPS_P2ORDERPARAMETER_HPP |
41 |
> |
#ifndef APPLICATIONS_STATICPROPS_BONDORDERPARAMETER_HPP |
42 |
> |
#define APPLICATIONS_STATICPROPS_BONDORDERPARAMETER_HPP |
43 |
|
#include "selection/SelectionEvaluator.hpp" |
44 |
|
#include "selection/SelectionManager.hpp" |
45 |
|
#include "applications/staticProps/StaticAnalyser.hpp" |
46 |
+ |
#include "math/Vector3.hpp" |
47 |
|
|
48 |
|
namespace oopse { |
49 |
|
|
50 |
< |
class P2OrderParameter : public StaticAnalyser{ |
50 |
> |
class BondOrderParameter : public StaticAnalyser{ |
51 |
|
public: |
52 |
< |
P2OrderParameter(SimInfo* info, const std::string& filename, const std::string& sele1, const std::string& sele2); |
52 |
> |
BondOrderParameter(SimInfo* info, const std::string& filename, const std::string& sele1, |
53 |
> |
const std::string& sele2, double rCut, int lNumber ); |
54 |
|
virtual void process(); |
55 |
|
|
56 |
|
private: |
65 |
|
Snapshot* currentSnapshot_; |
66 |
|
|
67 |
|
std::string selectionScript1_; |
68 |
< |
std::string selectionScript2_; |
67 |
< |
SelectionManager seleMan1_; |
68 |
< |
SelectionManager seleMan2_; |
68 |
> |
SelectionManager seleMan1_; |
69 |
|
SelectionEvaluator evaluator1_; |
70 |
< |
SelectionEvaluator evaluator2_; |
70 |
> |
|
71 |
> |
std::vector<Vector3d> neighbors_; |
72 |
|
std::vector<std::pair<StuntDouble*, StuntDouble*> > sdPairs_; /**< each pair is used to define a vector, vector = first - second */ |
73 |
|
std::vector<OrderParam> orderParams_; |
74 |
|
|
75 |
+ |
double rCut_; |
76 |
+ |
int lNumber_; |
77 |
|
}; |
78 |
|
} |
79 |
|
|