Functions | Variables
ProblemParameters Namespace Reference

////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////// More...

Functions

Vector< double > Coeff (N_terms, 1.0)
 Coefficients in the exact solution. More...
 
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 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...
 

Variables

double K_squared =10.0
 Square of the wavenumber. More...
 
int N_fourier =3
 Fourier wave number. More...
 
unsigned Nterms_for_DtN =6
 Number of terms in computation of DtN boundary condition. More...
 
unsigned N_terms =6
 Number of terms in the exact solution. More...
 
unsigned El_multiplier =1
 Multiplier for number of elements. More...
 

Detailed Description

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

Namespace for the Fourier decomposed Helmholtz problem parameters

Function Documentation

◆ Coeff()

Vector< double > ProblemParameters::Coeff ( N_terms  ,
1.  0 
)

Coefficients in the exact solution.

Referenced by exact_minus_dudr(), and get_exact_u().

◆ exact_minus_dudr()

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.

Definition at line 302 of file sphere_scattering.cc.

References Coeff(), I(), K_squared, N_fourier, and N_terms.

Referenced by FourierDecomposedHelmholtzProblem< ELEMENT >::check_gamma(), and FourierDecomposedHelmholtzProblem< ELEMENT >::create_flux_elements_on_inner_boundary().

◆ get_exact_u()

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.

Definition at line 243 of file sphere_scattering.cc.

References Coeff(), I(), K_squared, N_fourier, and N_terms.

Referenced by FourierDecomposedHelmholtzProblem< ELEMENT >::doc_solution().

◆ I()

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

Imaginary unit.

Referenced by exact_minus_dudr(), and get_exact_u().

Variable Documentation

◆ El_multiplier

unsigned ProblemParameters::El_multiplier =1

Multiplier for number of elements.

Definition at line 363 of file sphere_scattering.cc.

Referenced by FourierDecomposedHelmholtzProblem< ELEMENT >::FourierDecomposedHelmholtzProblem(), and main().

◆ K_squared

double ProblemParameters::K_squared =10.0

◆ N_fourier

int ProblemParameters::N_fourier =3

◆ N_terms

unsigned ProblemParameters::N_terms =6

Number of terms in the exact solution.

Definition at line 234 of file sphere_scattering.cc.

Referenced by exact_minus_dudr(), and get_exact_u().

◆ Nterms_for_DtN

unsigned ProblemParameters::Nterms_for_DtN =6

Number of terms in computation of DtN boundary condition.

Definition at line 231 of file sphere_scattering.cc.

Referenced by FourierDecomposedHelmholtzProblem< ELEMENT >::FourierDecomposedHelmholtzProblem().