MDStressLab++
Loading...
Searching...
No Matches
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
26template<typename TMethod>
27class Method
28{
29public:
30 virtual ~Method();
31
47 double operator()(const Vector3d& vec) const;
48
73 double bondFunction(const Vector3d& vec1, const Vector3d& vec2) const;
74
81 double getAveragingDomainSize() const;
82
83protected:
85private:
91 Method();
92
98 Method(double);
99
107 Method(const Method<TMethod>& method);
108
112 friend TMethod;
113};
114
115#include "Method.cpp"
116#endif /* METHOD_H_ */
double getAveragingDomainSize() const
Gets the spatial size of the averaging domain, i.e. the support of the weighting function.
Definition Method.cpp:40
double bondFunction(const Vector3d &vec1, const Vector3d &vec2) const
The bond function gives the weight associated to a bond formed by two atoms.
Definition Method.cpp:33
virtual ~Method()
Definition Method.cpp:45
double operator()(const Vector3d &vec) const
The pointwise weighting function .
Definition Method.cpp:26
double averagingDomainSize
Definition Method.h:84
Eigen::Matrix< double, 1, DIM, Eigen::RowMajor > Vector3d
Definition typedef.h:60