Classes | Namespaces | Functions | Variables
sphere_scattering.cc File Reference

Go to the source code of this file.

Classes

class  AnnularQuadMesh< ELEMENT >
 ////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////// More...
 
class  FourierDecomposedHelmholtzProblem< ELEMENT >
 ////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////// More...
 

Namespaces

 PlanarWave
 Namespace to test representation of planar wave in spherical polars.
 
 ProblemParameters
 ////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////
 

Functions

std::complex< double > PlanarWave::I (0.0, 1.0)
 Imaginary unit. More...
 
void PlanarWave::get_exact_u (const Vector< double > &x, Vector< double > &u)
 Exact solution as a Vector of size 2, containing real and imag parts. More...
 
void PlanarWave::plot ()
 Plot. More...
 
Vector< double > ProblemParameters::Coeff (N_terms, 1.0)
 Coefficients in the exact solution. More...
 
std::complex< double > ProblemParameters::I (0.0, 1.0)
 Imaginary unit. More...
 
void ProblemParameters::get_exact_u (const Vector< double > &x, Vector< double > &u)
 Exact solution as a Vector of size 2, containing real and imag parts. More...
 
void ProblemParameters::exact_minus_dudr (const Vector< double > &x, std::complex< double > &flux)
 Get -du/dr (spherical r) for exact solution. Equal to prescribed flux on inner boundary. More...
 
int main (int argc, char **argv)
 Driver code for Fourier decomposed Helmholtz problem. More...
 

Variables

unsigned PlanarWave::N_terms =100
 Number of terms in series. More...
 
double PlanarWave::K =3.0*MathematicalConstants::Pi
 Wave number. More...
 
double ProblemParameters::K_squared =10.0
 Square of the wavenumber. More...
 
int ProblemParameters::N_fourier =3
 Fourier wave number. More...
 
unsigned ProblemParameters::Nterms_for_DtN =6
 Number of terms in computation of DtN boundary condition. More...
 
unsigned ProblemParameters::N_terms =6
 Number of terms in the exact solution. More...
 
unsigned ProblemParameters::El_multiplier =1
 Multiplier for number of elements. More...
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Driver code for Fourier decomposed Helmholtz problem.

Definition at line 732 of file sphere_scattering.cc.

References FourierDecomposedHelmholtzProblem< ELEMENT >::doc_solution(), ProblemParameters::El_multiplier, and ProblemParameters::N_fourier.