Functions | Variables
PlanarWave Namespace Reference

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

Functions

std::complex< doubleI (0.0, 1.0)
 Imaginary unit.
 
void get_exact_u (const Vector< double > &x, Vector< double > &u)
 Exact solution as a Vector of size 2, containing real and imag parts.
 
void plot ()
 Plot.
 

Variables

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

Detailed Description

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 I(), K, and N_terms.

Referenced by plot().

◆ I()

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

Imaginary unit.

Referenced by get_exact_u(), and plot().

◆ plot()

void PlanarWave::plot ( )

Plot.

Definition at line 180 of file sphere_scattering.cc.

References get_exact_u(), and 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.

Referenced by get_exact_u().