Classes | Functions | Variables
GlobalParameters Namespace Reference

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

Classes

class  TestPMLMapping
 

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 for scattered field (vector returns real and impaginary parts). More...
 
void prescribed_incoming_flux (const Vector< double > &x, complex< double > &flux)
 Flux (normal derivative) on the unit disk for a planar incoming wave. More...
 

Variables

double Wavenumber = sqrt(50.0)
 Wavenumber (also known as k), k=omega/c. More...
 
double K_squared = Wavenumber * Wavenumber
 Square of the wavenumber (also known as k^2) More...
 
unsigned N_fourier =100
 Number of terms used in the computation of the exact solution. More...
 
TestPMLMappingTest_pml_mapping_pt = new TestPMLMapping
 

Detailed Description

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

Namespace for the Helmholtz problem parameters

Function Documentation

◆ get_exact_u()

void GlobalParameters::get_exact_u ( const Vector< double > &  x,
Vector< double > &  u 
)

Exact solution for scattered field (vector returns real and impaginary parts).

Definition at line 80 of file unstructured_two_d_helmholtz_scattering.cc.

References I(), N_fourier, and Wavenumber.

◆ I()

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

Imaginary unit.

Referenced by get_exact_u(), and prescribed_incoming_flux().

◆ prescribed_incoming_flux()

void GlobalParameters::prescribed_incoming_flux ( const Vector< double > &  x,
complex< double > &  flux 
)

Flux (normal derivative) on the unit disk for a planar incoming wave.

Definition at line 152 of file unstructured_two_d_helmholtz_scattering.cc.

References I(), N_fourier, and Wavenumber.

Referenced by PMLProblem< ELEMENT >::create_flux_elements().

Variable Documentation

◆ K_squared

double GlobalParameters::K_squared = Wavenumber * Wavenumber

Square of the wavenumber (also known as k^2)

Definition at line 61 of file unstructured_two_d_helmholtz.cc.

Referenced by PMLProblem< ELEMENT >::actions_after_adapt(), and PMLProblem< ELEMENT >::PMLProblem().

◆ N_fourier

unsigned GlobalParameters::N_fourier =100

Number of terms used in the computation of the exact solution.

Definition at line 73 of file unstructured_two_d_helmholtz_scattering.cc.

Referenced by get_exact_u(), and prescribed_incoming_flux().

◆ Test_pml_mapping_pt

TestPMLMapping* GlobalParameters::Test_pml_mapping_pt = new TestPMLMapping

Definition at line 228 of file unstructured_two_d_helmholtz_scattering.cc.

◆ Wavenumber

double GlobalParameters::Wavenumber = sqrt(50.0)

Wavenumber (also known as k), k=omega/c.

Definition at line 58 of file unstructured_two_d_helmholtz.cc.

Referenced by get_exact_u(), and prescribed_incoming_flux().