Functions | Variables
TanhSolnForUnsteadyHeat Namespace Reference

//////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////// More...

Functions

double step_position (const double &time)
 Position of step (x-axis intercept) More...
 
void get_exact_u (const double &time, const Vector< double > &x, Vector< double > &u)
 Exact solution as a Vector. More...
 
void get_exact_u (const double &time, const Vector< double > &x, double &u)
 Exact solution as a scalar. More...
 
void get_source (const double &time, const Vector< double > &x, double &source)
 Source function to make it an exact solution. More...
 
void prescribed_flux_on_fixed_y_boundary (const double &time, const Vector< double > &x, double &flux)
 Flux required by the exact solution on a boundary on which y is fixed. More...
 

Variables

double Alpha
 Parameter for steepness of step. More...
 
double Beta
 Parameter for amplitude of step translation. More...
 
double Gamma
 Parameter for timescale of step translation. More...
 
double TanPhi
 Parameter for angle of step. More...
 

Detailed Description

//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////

Namespace for exact solution of unsteady heat equation with sharp step

Function Documentation

◆ get_exact_u() [1/2]

void TanhSolnForUnsteadyHeat::get_exact_u ( const double &  time,
const Vector< double > &  x,
double &  u 
)

Exact solution as a scalar.

Definition at line 131 of file two_d_unsteady_heat_adapt.cc.

References Alpha, Beta, Gamma, and TanPhi.

◆ get_exact_u() [2/2]

void TanhSolnForUnsteadyHeat::get_exact_u ( const double &  time,
const Vector< double > &  x,
Vector< double > &  u 
)

◆ get_source()

void TanhSolnForUnsteadyHeat::get_source ( const double &  time,
const Vector< double > &  x,
double &  source 
)

Source function to make it an exact solution.

Definition at line 140 of file two_d_unsteady_heat_adapt.cc.

References Alpha, Beta, Gamma, and TanPhi.

Referenced by main().

◆ prescribed_flux_on_fixed_y_boundary()

void TanhSolnForUnsteadyHeat::prescribed_flux_on_fixed_y_boundary ( const double &  time,
const Vector< double > &  x,
double &  flux 
)

Flux required by the exact solution on a boundary on which y is fixed.

Definition at line 157 of file two_d_unsteady_heat_adapt.cc.

References Alpha, Beta, Gamma, and TanPhi.

Referenced by RefineableUnsteadyHeatProblem< ELEMENT >::actions_after_adapt(), and RefineableUnsteadyHeatProblem< ELEMENT >::RefineableUnsteadyHeatProblem().

◆ step_position()

double TanhSolnForUnsteadyHeat::step_position ( const double &  time)

Position of step (x-axis intercept)

Definition at line 115 of file two_d_unsteady_heat_adapt.cc.

References Beta, and Gamma.

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

Variable Documentation

◆ Alpha

double TanhSolnForUnsteadyHeat::Alpha

◆ Beta

double TanhSolnForUnsteadyHeat::Beta

◆ Gamma

double TanhSolnForUnsteadyHeat::Gamma

◆ TanPhi

double TanhSolnForUnsteadyHeat::TanPhi