SpECTRE  v2026.06.30
Loading...
Searching...
No Matches
BallTestFunctions::ProductOfPolynomials Class Reference

Product of polynomials regular on a ball. More...

#include <BallTestFunctions.hpp>

Public Member Functions

 ProductOfPolynomials (size_t pow_x, size_t pow_y, size_t pow_z)
DataVector operator() (const DataVector &r, const DataVector &theta, const DataVector &phi) const
double operator() (double r, double theta, double phi) const
DataVector df_dr (const DataVector &r, const DataVector &theta, const DataVector &phi) const
DataVector df_dth (const DataVector &r, const DataVector &theta, const DataVector &phi) const
DataVector df_dph (const DataVector &r, const DataVector &theta, const DataVector &phi) const
double definite_integral () const

Detailed Description

Product of polynomials regular on a ball.

Details

Computes \(x^{k_x} y^{k_y} z^{k_z}\) where \(x = r \sin \theta \cos \phi\), \(y = r \sin \theta \sin \phi\) and \(z = r \cos \theta\). The function and its first derivatives are exactly representable by spherical harmonics of order \((L, M)\) if \(L > k_x + k_y + k_z\) and \(M > k_x + k_y\). The \(\phi\) derivative is the Pfaffian derivative.


The documentation for this class was generated from the following file:
  • tests/Unit/Helpers/NumericalAlgorithms/Spectral/BallTestFunctions.hpp