Functions | Variables
ProblemParameters Namespace Reference

Namespace for the Fourier decomposed Helmholtz problem parameters. 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...
 
std::complex< double > Magnitude (100.0, 100.0)
 Point source magnitude (Complex) More...
 

Variables

string Directory ="RESLT"
 Output directory. More...
 
double K_squared = 10.0
 Frequency. More...
 
double PML_thickness =4.0
 Default physical PML thickness. More...
 
unsigned Nel_pml =15
 Default number of elements within PMLs. More...
 
double Element_area = 0.1
 Target area for initial mesh. More...
 
int N_fourier =0
 The default Fourier wave number. More...
 
unsigned N_terms =6
 Number of terms in the exact solution. More...
 
double R_source = 2.0
 Radial position of point source. More...
 
double Z_source = 2.0
 Axial position of point source. More...
 

Detailed Description

Namespace for the Fourier decomposed Helmholtz problem parameters.

Function Documentation

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

Coefficients in the exact solution.

Referenced by exact_minus_dudr(), and get_exact_u().

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 151 of file oscillating_sphere.cc.

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

Referenced by PMLFourierDecomposedHelmholtzProblem< ELEMENT >::create_flux_elements_on_inner_boundary().

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 90 of file oscillating_sphere.cc.

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

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

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

Imaginary unit.

Referenced by exact_minus_dudr(), and get_exact_u().

std::complex<double> ProblemParameters::Magnitude ( 100.  0,
100.  0 
)

Point source magnitude (Complex)

Referenced by PMLFourierDecomposedHelmholtzProblem< ELEMENT >::setup_point_source().

Variable Documentation

string ProblemParameters::Directory ="RESLT"
double ProblemParameters::Element_area = 0.1

Target area for initial mesh.

Definition at line 75 of file oscillating_sphere.cc.

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

double ProblemParameters::K_squared = 10.0
int ProblemParameters::N_fourier =0
unsigned ProblemParameters::N_terms =6

Number of terms in the exact solution.

Definition at line 81 of file oscillating_sphere.cc.

Referenced by exact_minus_dudr(), and get_exact_u().

unsigned ProblemParameters::Nel_pml =15

Default number of elements within PMLs.

Definition at line 72 of file oscillating_sphere.cc.

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

double ProblemParameters::PML_thickness =4.0

Default physical PML thickness.

Definition at line 69 of file oscillating_sphere.cc.

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

double ProblemParameters::R_source = 2.0

Radial position of point source.

Definition at line 210 of file oscillating_sphere.cc.

Referenced by PMLFourierDecomposedHelmholtzProblem< ELEMENT >::setup_point_source().

double ProblemParameters::Z_source = 2.0

Axial position of point source.

Definition at line 213 of file oscillating_sphere.cc.

Referenced by PMLFourierDecomposedHelmholtzProblem< ELEMENT >::setup_point_source().