MDStressLab++
Method.h
Go to the documentation of this file.
1 /*
2  * Method.h
3  *
4  * Created on: Aug 26, 2022
5  * Author: Nikhil
6  */
7 
8 #ifndef METHOD_H_
9 #define METHOD_H_
10 
11 #include "typedef.h"
12 
13 template<typename TMethod>
14 class Method
15 {
16 public:
17  virtual ~Method();
18 
19  double operator()(const Vector3d& vec) const;
20  double bondFunction(const Vector3d& vec1, const Vector3d& vec2) const;
21  double getAveragingDomainSize() const;
22 
23 protected:
25 private:
26  Method();
27  Method(double);
28  Method(const Method<TMethod>& method);
29  friend TMethod;
30 };
31 
32 #include "Method.cpp"
33 #endif /* METHOD_H_ */
double averagingDomainSize
Definition: Method.h:24
double getAveragingDomainSize() const
Definition: Method.cpp:40
double bondFunction(const Vector3d &vec1, const Vector3d &vec2) const
Definition: Method.cpp:33
double operator()(const Vector3d &vec) const
Definition: Method.cpp:26
Definition: Method.h:14
Eigen::Matrix< double, 1, DIM, Eigen::RowMajor > Vector3d
Definition: typedef.h:60
virtual ~Method()
Definition: Method.cpp:45