Namespace for exact solution for LinearWave equation with sharp step. More...
Functions | |
double | exact_u (const double &time, const Vector< double > &x) |
Exact solution. More... | |
double | exact_dudt (const double &time, const Vector< double > &x) |
1st time-deriv of exact solution More... | |
double | exact_d2udt2 (const double &time, const Vector< double > &x) |
2nd time-deriv of exact solution More... | |
void | get_exact_u (const double &time, const Vector< double > &x, Vector< double > &u) |
Exact solution as a vector. More... | |
void | get_source (const double &time, const Vector< double > &x, double &source) |
Source function to make it an exact solution. More... | |
void | get_exact_gradient (const double &time, const Vector< double > &x, Vector< double > &dudx) |
Gradient of exact solution. More... | |
void | prescribed_flux_on_fixed_y_boundary (const double &time, const Vector< double > &x, double &flux) |
Prescribed flux on a fixed y max boundary. More... | |
Variables | |
double | Alpha |
Parameter for steepness of step. More... | |
double | Phi |
Orientation of step wave. More... | |
Namespace for exact solution for LinearWave equation with sharp step.
Namespace for travelling wave solution for LinearWave equation with sharp step.
double TanhSolnForLinearWave::exact_d2udt2 | ( | const double & | time, |
const Vector< double > & | x | ||
) |
2nd time-deriv of exact solution
Definition at line 73 of file two_d_linear_wave.cc.
Referenced by LinearWaveProblem< ELEMENT, TIMESTEPPER >::actions_before_implicit_timestep(), get_exact_u(), and LinearWaveProblem< ELEMENT, TIMESTEPPER >::set_initial_condition().
double TanhSolnForLinearWave::exact_dudt | ( | const double & | time, |
const Vector< double > & | x | ||
) |
1st time-deriv of exact solution
Definition at line 65 of file two_d_linear_wave.cc.
Referenced by LinearWaveProblem< ELEMENT, TIMESTEPPER >::actions_before_implicit_timestep(), get_exact_u(), and LinearWaveProblem< ELEMENT, TIMESTEPPER >::set_initial_condition().
double TanhSolnForLinearWave::exact_u | ( | const double & | time, |
const Vector< double > & | x | ||
) |
Exact solution.
Definition at line 58 of file two_d_linear_wave.cc.
Referenced by LinearWaveProblem< ELEMENT, TIMESTEPPER >::actions_before_implicit_timestep(), get_exact_u(), and LinearWaveProblem< ELEMENT, TIMESTEPPER >::set_initial_condition().
void TanhSolnForLinearWave::get_exact_gradient | ( | const double & | time, |
const Vector< double > & | x, | ||
Vector< double > & | dudx | ||
) |
Gradient of exact solution.
Definition at line 96 of file two_d_linear_wave_flux.cc.
Referenced by prescribed_flux_on_fixed_y_boundary().
void TanhSolnForLinearWave::get_exact_u | ( | const double & | time, |
const Vector< double > & | x, | ||
Vector< double > & | u | ||
) |
Exact solution as a vector.
Definition at line 82 of file two_d_linear_wave.cc.
References exact_d2udt2(), exact_dudt(), and exact_u().
Referenced by LinearWaveProblem< ELEMENT, TIMESTEPPER >::doc_solution().
void TanhSolnForLinearWave::get_source | ( | const double & | time, |
const Vector< double > & | x, | ||
double & | source | ||
) |
Source function to make it an exact solution.
Definition at line 91 of file two_d_linear_wave.cc.
Referenced by main().
void TanhSolnForLinearWave::prescribed_flux_on_fixed_y_boundary | ( | const double & | time, |
const Vector< double > & | x, | ||
double & | flux | ||
) |
Prescribed flux on a fixed y max boundary.
Definition at line 108 of file two_d_linear_wave_flux.cc.
References get_exact_gradient().
Referenced by LinearWaveProblem< ELEMENT, TIMESTEPPER >::LinearWaveProblem().
double TanhSolnForLinearWave::Alpha |
Parameter for steepness of step.
Definition at line 52 of file two_d_linear_wave.cc.
Referenced by exact_d2udt2(), exact_dudt(), exact_u(), get_exact_gradient(), and LinearWaveProblem< ELEMENT, TIMESTEPPER >::LinearWaveProblem().
double TanhSolnForLinearWave::Phi |
Orientation of step wave.
Definition at line 55 of file two_d_linear_wave.cc.
Referenced by exact_d2udt2(), exact_dudt(), exact_u(), get_exact_gradient(), and LinearWaveProblem< ELEMENT, TIMESTEPPER >::LinearWaveProblem().