OpenMD  2.5
Molecular Dynamics in the Open
OpenMD::ChebyshevT Class Reference

#include <ChebyshevT.hpp>

Public Member Functions

 ChebyshevT (int maxPower)
 
virtual ~ChebyshevT ()
 
RealType evaluate (int n, RealType x)
 
RealType evaluateDerivative (int n, RealType x)
 
const DoublePolynomialgetChebyshevPolynomial (int n) const
 

Protected Member Functions

void GeneratePolynomials (int maxPower)
 

Protected Attributes

std::vector< DoublePolynomialpolyList_
 

Private Member Functions

void GenerateFirstTwoTerms ()
 

Private Attributes

int maxPower_
 

Detailed Description

A collection of Chebyshev Polynomials.

Todo:
document

Definition at line 65 of file ChebyshevT.hpp.

Constructor & Destructor Documentation

◆ ChebyshevT()

OpenMD::ChebyshevT::ChebyshevT ( int  maxPower)

Definition at line 46 of file ChebyshevT.cpp.

References GeneratePolynomials(), and maxPower_.

◆ ~ChebyshevT()

virtual OpenMD::ChebyshevT::~ChebyshevT ( )
inlinevirtual

Definition at line 68 of file ChebyshevT.hpp.

Member Function Documentation

◆ evaluate()

RealType OpenMD::ChebyshevT::evaluate ( int  n,
RealType  x 
)
inline

Calculates the value of the nth Chebyshev Polynomial evaluated at the given x value.

Returns
The value of the nth Chebyshev Polynomial evaluates at the given x value
Parameters
n
xthe value of the independent variable for the nth Chebyshev Polynomial function

Definition at line 76 of file ChebyshevT.hpp.

References polyList_.

◆ evaluateDerivative()

RealType OpenMD::ChebyshevT::evaluateDerivative ( int  n,
RealType  x 
)
inline

Returns the first derivative of the nth Chebyshev Polynomial.

Returns
the first derivative of the nth Chebyshev Polynomial
Parameters
n
xthe value of the independent variable for the nth Chebyshev Polynomial function

Definition at line 87 of file ChebyshevT.hpp.

References polyList_.

◆ GenerateFirstTwoTerms()

void OpenMD::ChebyshevT::GenerateFirstTwoTerms ( )
private

Definition at line 70 of file ChebyshevT.cpp.

References polyList_, and OpenMD::Polynomial< Real >::setCoefficient().

Referenced by GeneratePolynomials().

◆ GeneratePolynomials()

void OpenMD::ChebyshevT::GeneratePolynomials ( int  maxPower)
protected

◆ getChebyshevPolynomial()

const DoublePolynomial& OpenMD::ChebyshevT::getChebyshevPolynomial ( int  n) const
inline

Returns the nth Chebyshev Polynomial

Returns
the nth Chebyshev Polynomial
Parameters
n

Definition at line 97 of file ChebyshevT.hpp.

References polyList_.

Referenced by OpenMD::CharmmTorsionType::CharmmTorsionType(), and OpenMD::ImproperCosineInversionType::ImproperCosineInversionType().

Member Data Documentation

◆ maxPower_

int OpenMD::ChebyshevT::maxPower_
private

Definition at line 111 of file ChebyshevT.hpp.

Referenced by ChebyshevT().

◆ polyList_

std::vector<DoublePolynomial> OpenMD::ChebyshevT::polyList_
protected

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