11template<
typename TMethod>
15template<
typename TMethod>
19template<
typename TMethod>
25template<
typename TMethod>
28 const TMethod& tMethod=
static_cast<const TMethod&
>(*this);
32template<
typename TMethod>
35 const TMethod& tMethod=
static_cast<const TMethod&
>(*this);
36 return tMethod.bondFunction(vec1, vec2);
39template<
typename TMethod>
42 return averagingDomainSize;
44template<
typename TMethod>
double getAveragingDomainSize() const
Gets the spatial size of the averaging domain, i.e. the support of the weighting function.
double bondFunction(const Vector3d &vec1, const Vector3d &vec2) const
The bond function gives the weight associated to a bond formed by two atoms.
double operator()(const Vector3d &vec) const
The weighting function used to compute stress.
Eigen::Matrix< double, 1, DIM, Eigen::RowMajor > Vector3d