79 template<
class Coordinates>
IntegralType
Specifies the two points between which a line integral is computed.
Definition: IntegralType.h:34
Stores information about interactions between two interactable objects; often particles but could be ...
Definition: BaseInteraction.h:60
Definition: BaseParticle.h:54
Defines the position of the CGPoint (e.g. x, y, z) and the parameters of a polynomial coarse-graining...
Definition: Polynomial.h:81
Mdouble evaluateCGFunction(const Vec3D &position, const Coordinates &r)
Evaluates the coarse-graining function.
void setCutoff(Mdouble cutoff)
void computeCoefficients()
unsigned currentInteraction_
Definition: Polynomial.h:201
void setStandardDeviation(Mdouble std)
Set the standard deviation.
PolynomialType polynomialType_
Definition: Polynomial.h:195
~Polynomial()=default
Destructor, it simply destructs the PolynomialCoordinates and all the objects it contains.
Mdouble getCutoff() const
Mdouble evaluateCGFunctionDerivativeWithFD(const Vec3D &position, const Coordinates &r, const int i)
Mdouble eps_
Definition: Polynomial.h:212
void setWidth(Mdouble width)
Set the cutoff radius.
std::vector< Mdouble > getCoefficients()
Mdouble getEps() const
Returns the finite difference step size used to evaluate derivatives of the CG function.
void setPolynomialType(PolynomialType polynomialType)
Polynomial()
Default constructor, sets all parameters to zero.
Mdouble normalLength_
Definition: Polynomial.h:197
Vec3D normal_
Definition: Polynomial.h:199
Polynomial(const Polynomial &p)=default
Copy constructor. It copies all objects the class contains.
Vec3D evaluateCGFunctionDerivatives(const Vec3D &position, const Coordinates &r)
void setEps(Mdouble eps)
Sets the finite difference step size used to evaluate derivatives of the CG function.
void write(std::ostream &os) const
Writes class content into an output stream, usually a stat file.
Mdouble cutoff_
Definition: Polynomial.h:207
Coordinates CoordinatesType
Definition: Polynomial.h:84
std::vector< Mdouble > coefficients_
Definition: Polynomial.h:188
Mdouble evaluateCGIntegral(const BaseInteraction &i, const Coordinates &r, IntegralType type=IntegralType::I_TO_P)
Evaluates the line integral needed for the calculation of stresses.
Mdouble evaluateCGIntegral1D(const BaseInteraction &i, const Coordinates &r, IntegralType type=IntegralType::I_TO_P)
Evaluates the line integral needed for the calculation of stresses for 1D CGCoordinates.
Template argument; use a member class of CGCoordinates to instantiate.
The DPMBase header includes quite a few header files, defining all the handlers, which are essential....
Definition: DPMBase.h:77
Contains base classes of CGPoint; CGPoint is always templated with one of these classes; these classe...
Definition: Gauss.h:48
PolynomialType
PolynomialType is used to define how files are opened random fixed-particle bottom.
Definition: Polynomial.h:49
std::istream & operator>>(std::istream &is, PolynomialType &type)
std::ostream & operator<<(std::ostream &os, PolynomialType type)
const std::complex< Mdouble > i
Definition: ExtendedMath.h:51