OpenMD 3.1
Molecular Dynamics in the Open
Loading...
Searching...
No Matches
OpenMD::ChebyshevU Class Reference

A collection of Chebyshev Polynomials. More...

#include <ChebyshevU.hpp>

Public Member Functions

 ChebyshevU (int maxPower)
 
RealType evaluate (int n, RealType x)
 Calculates the value of the nth Chebyshev Polynomial evaluated at the given x value.
 
RealType evaluateDerivative (int n, RealType x)
 Returns the first derivative of the nth Chebyshev Polynomial.
 
const DoublePolynomialgetChebyshevPolynomial (int n) const
 Returns the nth Chebyshev Polynomial.
 

Protected Member Functions

void GeneratePolynomials (int maxPower)
 

Protected Attributes

std::vector< DoublePolynomialpolyList_
 

Detailed Description

A collection of Chebyshev Polynomials.

Todo
document

Definition at line 67 of file ChebyshevU.hpp.

Constructor & Destructor Documentation

◆ ChebyshevU()

OpenMD::ChebyshevU::ChebyshevU ( int maxPower)

Definition at line 48 of file ChebyshevU.cpp.

◆ ~ChebyshevU()

virtual OpenMD::ChebyshevU::~ChebyshevU ( )
inlinevirtual

Definition at line 70 of file ChebyshevU.hpp.

Member Function Documentation

◆ evaluate()

RealType OpenMD::ChebyshevU::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 81 of file ChebyshevU.hpp.

◆ evaluateDerivative()

RealType OpenMD::ChebyshevU::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 93 of file ChebyshevU.hpp.

◆ GeneratePolynomials()

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

Definition at line 53 of file ChebyshevU.cpp.

◆ getChebyshevPolynomial()

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

Returns the nth Chebyshev Polynomial.

Returns
the nth Chebyshev Polynomial
Parameters
n

Definition at line 103 of file ChebyshevU.hpp.

Member Data Documentation

◆ polyList_

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

Definition at line 109 of file ChebyshevU.hpp.


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