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
24template<typename TMethod>
25class Method
26{
27public:
28 virtual ~Method();
29
39 double operator()(const Vector3d& vec) const;
40
65 double bondFunction(const Vector3d& vec1, const Vector3d& vec2) const;
66
73 double getAveragingDomainSize() const;
74
75protected:
77private:
83 Method();
84
90 Method(double);
91
99 Method(const Method<TMethod>& method);
100
104 friend TMethod;
105};
106
107#include "Method.cpp"
108#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 weighting function used to compute stress.
Definition Method.cpp:26
double averagingDomainSize
Definition Method.h:76
Eigen::Matrix< double, 1, DIM, Eigen::RowMajor > Vector3d
Definition typedef.h:60