Peano
Loading...
Searching...
No Matches
harmonics.h File Reference
#include <cstddef>
#include <utility>
#include <vector>
Include dependency graph for harmonics.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  exahype2::ccz4::ahf::ModeValues
 Y_lm and its first/second rho- and sigma-derivatives at one (rho, sigma). More...
struct  exahype2::ccz4::ahf::SpectralBasis
 Spectral basis plus collocation grid and precomputed design matrices. More...
struct  exahype2::ccz4::ahf::SynthesizedField
 h and its angular derivatives at every collocation point (each (nPoints,)). More...

Namespaces

namespace  exahype2
 This file is part of the ExaHyPE 2 project within Peano 4.
namespace  exahype2::ccz4
namespace  exahype2::ccz4::ahf

Functions

std::vector< std::pair< int, int > > exahype2::ccz4::ahf::EnumerateModes (int lmax)
 Ordered list of (l, m) modes, l = 0..lmax, m = -l..l.
std::pair< std::vector< double >, std::vector< double > > exahype2::ccz4::ahf::GaussLegendre (int n)
 Gauss-Legendre nodes and weights on [-1, 1] (integrates d mu).
ModeValues exahype2::ccz4::ahf::EvalMode (int l, int m, double rho, double sigma)
 Evaluate the real Y_lm and its rho/sigma derivatives at (rho, sigma).
double exahype2::ccz4::ahf::EvalModeValue (int l, int m, double rho, double sigma)
 The real Y_lm at (rho, sigma), without any derivatives.
SpectralBasis exahype2::ccz4::ahf::BuildSpectralBasis (int lmax, int nSigma=-1, int nRho=-1)
 Construct a SpectralBasis for the given lmax.
SynthesizedField exahype2::ccz4::ahf::Synthesize (const SpectralBasis &basis, const std::vector< double > &coefficients)
 Synthesis (coefficients -> point values): h = Y a, hRho = Yrho a, etc.
std::vector< double > exahype2::ccz4::ahf::Project (const SpectralBasis &basis, const std::vector< double > &field)
 Analysis (point values -> coefficients): a = Y^T (weight .
std::vector< double > exahype2::ccz4::ahf::SphereCoefficients (const SpectralBasis &basis, double radius)
 Coefficient vector for a coordinate sphere h = radius (only a_00 != 0, since Y_00 = 1/sqrt(4 pi) so a_00 = radius sqrt(4 pi)).