Functions | Variables
PlanarWave Namespace Reference

Namespace to test representation of planar wave in spherical polars. More...

Functions

std::complex< double > I (0.0, 1.0)
 Imaginary unit. More...
 
void 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 plot ()
 Plot. More...
 

Variables

unsigned N_terms =100
 Number of terms in series. More...
 
double K =3.0*MathematicalConstants::Pi
 Wave number. More...
 

Detailed Description

Namespace to test representation of planar wave in spherical polars.

////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////

Namespace to test representation of planar wave in spherical polars

Function Documentation

◆ get_exact_u()

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.

Definition at line 121 of file sphere_scattering.cc.

References ProblemParameters::I(), K, and ProblemParameters::N_terms.

◆ I()

std::complex< double > PlanarWave::I ( 0.  0,
1.  0 
)

Imaginary unit.

◆ plot()

void PlanarWave::plot ( )

Plot.

Definition at line 180 of file sphere_scattering.cc.

References ProblemParameters::get_exact_u(), and ProblemParameters::I().

Variable Documentation

◆ K

double PlanarWave::K =3.0*MathematicalConstants::Pi

Wave number.

Definition at line 115 of file sphere_scattering.cc.

Referenced by get_exact_u().

◆ N_terms

unsigned PlanarWave::N_terms =100

Number of terms in series.

Definition at line 112 of file sphere_scattering.cc.