Functions | |
void | gll_nodes (const unsigned &Nnode, Vector< double > &x) |
Calculates the Gauss Lobatto Legendre abscissas for degree p = NNode-1. More... | |
void | gll_nodes (const unsigned &Nnode, Vector< double > &x, Vector< double > &w) |
void | gl_nodes (const unsigned &Nnode, Vector< double > &x) |
void | gl_nodes (const unsigned &Nnode, Vector< double > &x, Vector< double > &w) |
double | legendre (const unsigned &p, const double &x) |
Calculates Legendre polynomial of degree p at x using the three term recurrence relation ![]() | |
void | legendre_vector (const unsigned &p, const double &x, Vector< double > &polys) |
Calculates Legendre polynomial of degree p at x using three term recursive formula. Returns all polynomials up to order p in the vector. More... | |
double | dlegendre (const unsigned &p, const double &x) |
Calculates first derivative of Legendre polynomial of degree p at x using three term recursive formula. ![]() | |
double | ddlegendre (const unsigned &p, const double &x) |
Calculates second derivative of Legendre polynomial of degree p at x using three term recursive formula. More... | |
double | jacobi (const int &alpha, const int &beta, const unsigned &p, const double &x) |
Calculate the Jacobi polnomials. More... | |
void | jacobi (const int &alpha, const int &beta, const unsigned &p, const double &x, Vector< double > &polys) |
Calculate the Jacobi polnomials all in one goe. More... | |
Variables | |
const double | eps = 1.0e-15 |
|
inline |
Calculates second derivative of Legendre polynomial of degree p at x using three term recursive formula.
Definition at line 137 of file orthpoly.h.
References i.
Referenced by gll_nodes(), oomph::PRefineableQElement< 3, INITIAL_NNODE_1D >::oc_hang_helper(), oomph::OneDimensionalLegendreDShape< NNODE_1D >::OneDimensionalLegendreDShape(), oomph::OneDLegendreDShapeParam::OneDLegendreDShapeParam(), and oomph::PRefineableQElement< 2, INITIAL_NNODE_1D >::quad_hang_helper().
|
inline |
Calculates first derivative of Legendre polynomial of degree p at x using three term recursive formula. .
Definition at line 118 of file orthpoly.h.
Referenced by gl_nodes(), gll_nodes(), oomph::PRefineableQElement< 3, INITIAL_NNODE_1D >::oc_hang_helper(), oomph::OneDimensionalLegendreDShape< NNODE_1D >::OneDimensionalLegendreDShape(), oomph::OneDimensionalLegendreShape< NNODE_1D >::OneDimensionalLegendreShape(), oomph::OneDimensionalModalDShape::OneDimensionalModalDShape(), oomph::OneDLegendreDShapeParam::OneDLegendreDShapeParam(), oomph::OneDLegendreShapeParam::OneDLegendreShapeParam(), and oomph::PRefineableQElement< 2, INITIAL_NNODE_1D >::quad_hang_helper().
void oomph::Orthpoly::gl_nodes | ( | const unsigned & | Nnode, |
Vector< double > & | x | ||
) |
Definition at line 96 of file orthpoly.cc.
References dlegendre(), eps, legendre(), and oomph::MathematicalConstants::Pi.
Referenced by oomph::GaussLegendre< 1, NPTS_1D >::GaussLegendre(), oomph::GaussLegendre< 2, NPTS_1D >::GaussLegendre(), oomph::GaussLegendre< 3, NPTS_1D >::GaussLegendre(), gl_nodes(), jacobi(), and oomph::RuntimeCalculatedGaussLegendre::RuntimeCalculatedGaussLegendre().
void oomph::Orthpoly::gl_nodes | ( | const unsigned & | Nnode, |
Vector< double > & | x, | ||
Vector< double > & | w | ||
) |
Definition at line 133 of file orthpoly.cc.
References dlegendre(), gl_nodes(), and i.
void oomph::Orthpoly::gll_nodes | ( | const unsigned & | Nnode, |
Vector< double > & | x | ||
) |
Calculates the Gauss Lobatto Legendre abscissas for degree p = NNode-1.
Definition at line 38 of file orthpoly.cc.
References ddlegendre(), dlegendre(), eps, and oomph::MathematicalConstants::Pi.
Referenced by oomph::OneDLegendreShapeParam::calculate_nodal_positions(), oomph::OneDimensionalLegendreShape< NNODE_1D >::calculate_nodal_positions(), oomph::GaussLobattoLegendre< 1, NPTS_1D >::GaussLobattoLegendre(), oomph::GaussLobattoLegendre< 2, NPTS_1D >::GaussLobattoLegendre(), oomph::GaussLobattoLegendre< 3, NPTS_1D >::GaussLobattoLegendre(), oomph::PRefineableQElement< 1, INITIAL_NNODE_1D >::get_node_at_local_coordinate(), oomph::PRefineableQElement< 2, INITIAL_NNODE_1D >::get_node_at_local_coordinate(), oomph::PRefineableQElement< 3, INITIAL_NNODE_1D >::get_node_at_local_coordinate(), gll_nodes(), jacobi(), oomph::PRefineableQElement< 3, INITIAL_NNODE_1D >::oc_hang_helper(), and oomph::PRefineableQElement< 2, INITIAL_NNODE_1D >::quad_hang_helper().
void oomph::Orthpoly::gll_nodes | ( | const unsigned & | Nnode, |
Vector< double > & | x, | ||
Vector< double > & | w | ||
) |
Definition at line 82 of file orthpoly.cc.
References gll_nodes(), i, and legendre().
|
inline |
Calculate the Jacobi polnomials.
Definition at line 155 of file orthpoly.h.
|
inline |
Calculate the Jacobi polnomials all in one goe.
Definition at line 178 of file orthpoly.h.
References gl_nodes(), and gll_nodes().
|
inline |
Calculates Legendre polynomial of degree p at x using the three term recurrence relation .
Definition at line 62 of file orthpoly.h.
Referenced by gl_nodes(), gll_nodes(), oomph::OneDimensionalLegendreDShape< NNODE_1D >::OneDimensionalLegendreDShape(), oomph::OneDimensionalLegendreShape< NNODE_1D >::OneDimensionalLegendreShape(), oomph::OneDimensionalModalDShape::OneDimensionalModalDShape(), oomph::OneDimensionalModalShape::OneDimensionalModalShape(), oomph::OneDLegendreDShapeParam::OneDLegendreDShapeParam(), and oomph::OneDLegendreShapeParam::OneDLegendreShapeParam().
|
inline |
Calculates Legendre polynomial of degree p at x using three term recursive formula. Returns all polynomials up to order p in the vector.
Definition at line 90 of file orthpoly.h.
const double oomph::Orthpoly::eps = 1.0e-15 |
Definition at line 57 of file orthpoly.h.
Referenced by oomph::HerschelBulkleyMenDutRegConstitutiveEquation< DIM >::dviscosity_dinvariant(), gl_nodes(), gll_nodes(), oomph::OneDimensionalLegendreDShape< NNODE_1D >::OneDimensionalLegendreDShape(), oomph::OneDimensionalLegendreShape< NNODE_1D >::OneDimensionalLegendreShape(), oomph::OneDLegendreDShapeParam::OneDLegendreDShapeParam(), oomph::OneDLegendreShapeParam::OneDLegendreShapeParam(), and oomph::HerschelBulkleyMenDutRegConstitutiveEquation< DIM >::viscosity().