Functions | Variables
TanhSolnForLinearWave Namespace Reference

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...
 

Detailed Description

Namespace for exact solution for LinearWave equation with sharp step.

Namespace for travelling wave solution for LinearWave equation with sharp step.

Function Documentation

◆ exact_d2udt2()

double TanhSolnForLinearWave::exact_d2udt2 ( const double &  time,
const Vector< double > &  x 
)

◆ exact_dudt()

double TanhSolnForLinearWave::exact_dudt ( const double &  time,
const Vector< double > &  x 
)

◆ exact_u()

double TanhSolnForLinearWave::exact_u ( const double &  time,
const Vector< double > &  x 
)

◆ get_exact_gradient()

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.

References Alpha, and Phi.

Referenced by prescribed_flux_on_fixed_y_boundary().

◆ get_exact_u()

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().

◆ get_source()

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().

◆ prescribed_flux_on_fixed_y_boundary()

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().

Variable Documentation

◆ Alpha

double TanhSolnForLinearWave::Alpha

◆ Phi

double TanhSolnForLinearWave::Phi