Functions | Variables
TanhSolnForLinearWave Namespace Reference

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 100 of file two_d_linear_wave_flux.cc.

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 
)

◆ 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 95 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 112 of file two_d_linear_wave_flux.cc.

References get_exact_gradient().

Referenced by LinearWaveProblem< ELEMENT, TIMESTEPPER >::LinearWaveProblem().

Variable Documentation

◆ Alpha

double TanhSolnForLinearWave::Alpha

Parameter for steepness of step.

Definition at line 56 of file two_d_linear_wave.cc.

Referenced by LinearWaveProblem< ELEMENT, TIMESTEPPER >::LinearWaveProblem().

◆ Phi

double TanhSolnForLinearWave::Phi

Orientation of step wave.

Definition at line 59 of file two_d_linear_wave.cc.

Referenced by LinearWaveProblem< ELEMENT, TIMESTEPPER >::LinearWaveProblem().