CGFunctions::Linear< Coordinates > Class Template Reference

A specialisation of Polynomials for PolynomialType::Linear. See Polynomial for details. More...

#include <Linear.h>

+ Inheritance diagram for CGFunctions::Linear< Coordinates >:

Public Member Functions

 Linear ()
 Default constructor, simply sets the PolynomialType. More...
 
- Public Member Functions inherited from CGFunctions::Polynomial< Coordinates >
 Polynomial ()
 Default constructor, sets all parameters to zero. More...
 
 Polynomial (const Polynomial &p)=default
 Copy constructor. It copies all objects the class contains. More...
 
 ~Polynomial ()=default
 Destructor, it simply destructs the PolynomialCoordinates and all the objects it contains. More...
 
void write (std::ostream &os) const
 Writes class content into an output stream, usually a stat file. More...
 
void setPolynomialType (PolynomialType polynomialType)
 
void setWidth (Mdouble width)
 Set the cutoff radius. More...
 
Mdouble getWidth () const
 
void setStandardDeviation (Mdouble std)
 Set the standard deviation. More...
 
void setCutoff (Mdouble cutoff)
 
Mdouble getCutoff () const
 
void computeCoefficients ()
 
Mdouble evaluateCGFunction (const Vec3D &position, const Coordinates &r)
 Evaluates the coarse-graining function. More...
 
Mdouble evaluateCGIntegral (const BaseInteraction &i, const Coordinates &r, IntegralType type=IntegralType::I_TO_P)
 Evaluates the line integral needed for the calculation of stresses. More...
 
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. More...
 
std::vector< MdoublegetCoefficients ()
 
Vec3D evaluateCGFunctionDerivatives (const Vec3D &position, const Coordinates &r)
 
Mdouble evaluateCGFunctionDerivativeWithFD (const Vec3D &position, const Coordinates &r, const int i)
 
Mdouble getEps () const
 Returns the finite difference step size used to evaluate derivatives of the CG function. More...
 
void setEps (Mdouble eps)
 Sets the finite difference step size used to evaluate derivatives of the CG function. More...
 

Additional Inherited Members

- Public Types inherited from CGFunctions::Polynomial< Coordinates >
typedef Coordinates CoordinatesType
 
- Protected Attributes inherited from CGFunctions::Polynomial< Coordinates >
std::vector< Mdoublecoefficients_
 
PolynomialType polynomialType_
 
Mdouble normalLength_
 
Vec3D normal_
 
unsigned currentInteraction_
 
Mdouble cutoff_
 
Mdouble eps_
 

Detailed Description

template<class Coordinates>
class CGFunctions::Linear< Coordinates >

A specialisation of Polynomials for PolynomialType::Linear. See Polynomial for details.

Constructor & Destructor Documentation

◆ Linear()

template<class Coordinates >
CGFunctions::Linear< Coordinates >::Linear ( )
inline

Default constructor, simply sets the PolynomialType.

46  : Polynomial<Coordinates>()
47  {
49  }
void setPolynomialType(PolynomialType polynomialType)

References CGFunctions::LINEAR, and CGFunctions::Polynomial< Coordinates >::setPolynomialType().


The documentation for this class was generated from the following file: