5#ifndef OILAB_DISLOCATIONDIPOLE_H
6#define OILAB_DISLOCATIONDIPOLE_H
14 template <
typename T>
int sgn(T val)
const {
15 return (T(0) < val) - (val < T(0));
29 const Vector2d &shift_in,
const int &nImages_in);
34 static std::pair<Vector2d, double>
static std::pair< Vector2d, double > localPosition(const Vector2d &A, const Vector2d &B, const Vector2d &x)
Vector2d solidAngleGradient(const Vector2d &x, const int &branch) const
double solidAngle(const Vector2d &x, const int &branch) const
Vector2d displacement(const Vector2d &x, const int &branch) const
DislocationDipole(const Matrix2d &end_in, const Vector2d &b_in, const Vector2d &shift_in, const int &nImages_in)