////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////// 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... | |
////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////
Namespace for the Fourier decomposed Helmholtz problem parameters
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 147 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 86 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().
string ProblemParameters::Directory ="RESLT" |
Output directory.
Definition at line 59 of file oscillating_sphere.cc.
Referenced by main(), and PMLFourierDecomposedHelmholtzProblem< ELEMENT >::PMLFourierDecomposedHelmholtzProblem().
double ProblemParameters::Element_area = 0.1 |
Target area for initial mesh.
Definition at line 71 of file oscillating_sphere.cc.
Referenced by main(), and PMLFourierDecomposedHelmholtzProblem< ELEMENT >::PMLFourierDecomposedHelmholtzProblem().
double ProblemParameters::K_squared = 10.0 |
Frequency.
Definition at line 62 of file oscillating_sphere.cc.
Referenced by PMLFourierDecomposedHelmholtzProblem< ELEMENT >::complete_problem_setup(), exact_minus_dudr(), get_exact_u(), main(), and PMLFourierDecomposedHelmholtzProblem< ELEMENT >::PMLFourierDecomposedHelmholtzProblem().
int ProblemParameters::N_fourier =0 |
The default Fourier wave number.
Definition at line 74 of file oscillating_sphere.cc.
Referenced by PMLFourierDecomposedHelmholtzProblem< ELEMENT >::complete_problem_setup(), exact_minus_dudr(), get_exact_u(), main(), and PMLFourierDecomposedHelmholtzProblem< ELEMENT >::setup_point_source().
unsigned ProblemParameters::N_terms =6 |
Number of terms in the exact solution.
Definition at line 77 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 68 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 65 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 206 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 209 of file oscillating_sphere.cc.
Referenced by PMLFourierDecomposedHelmholtzProblem< ELEMENT >::setup_point_source().