Public Member Functions | Private Attributes | List of all members
UnsteadyHeatProblem< ELEMENT > Class Template Reference

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

Inheritance diagram for UnsteadyHeatProblem< ELEMENT >:

Public Member Functions

 UnsteadyHeatProblem (UnsteadyHeatEquations< 2 >::UnsteadyHeatSourceFctPt source_fct_pt)
 Constructor. More...
 
 ~UnsteadyHeatProblem ()
 Destructor (empty) More...
 
void actions_after_newton_solve ()
 Update the problem specs after solve (empty) More...
 
void actions_before_newton_solve ()
 Update the problem specs before solve (empty) More...
 
void actions_after_implicit_timestep ()
 Update the problem specs after solve (empty) More...
 
void actions_before_implicit_timestep ()
 Update the problem specs before next timestep: Set Dirchlet boundary conditions from exact solution. More...
 
void set_initial_condition ()
 Set initial condition (incl previous timesteps) according to specified function. More...
 
void doc_solution (DocInfo &doc_info, ofstream &trace_file)
 Doc the solution. More...
 
void dump_it (ofstream &dump_file)
 Dump problem to disk to allow for restart. More...
 
void restart (ifstream &restart_file)
 Read problem for restart from specified restart file. More...
 
double global_temporal_error_norm ()
 Global error norm for adaptive time-stepping. More...
 

Private Attributes

UnsteadyHeatEquations< 2 >::UnsteadyHeatSourceFctPt Source_fct_pt
 Pointer to source function. More...
 
Node * Control_node_pt
 Pointer to control node at which the solution is documented. More...
 

Detailed Description

template<class ELEMENT>
class UnsteadyHeatProblem< ELEMENT >

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

UnsteadyHeat problem

Definition at line 104 of file two_d_unsteady_heat_t_adapt.cc.

Constructor & Destructor Documentation

◆ UnsteadyHeatProblem()

template<class ELEMENT >
UnsteadyHeatProblem< ELEMENT >::UnsteadyHeatProblem ( UnsteadyHeatEquations< 2 >::UnsteadyHeatSourceFctPt  source_fct_pt)

Constructor.

Constructor for UnsteadyHeat problem in square domain.

Definition at line 162 of file two_d_unsteady_heat_t_adapt.cc.

References UnsteadyHeatProblem< ELEMENT >::Control_node_pt, ExactSolnForUnsteadyHeat::Gamma, ExactSolnForUnsteadyHeat::K, and UnsteadyHeatProblem< ELEMENT >::Source_fct_pt.

◆ ~UnsteadyHeatProblem()

template<class ELEMENT >
UnsteadyHeatProblem< ELEMENT >::~UnsteadyHeatProblem ( )
inline

Destructor (empty)

Definition at line 114 of file two_d_unsteady_heat_t_adapt.cc.

Member Function Documentation

◆ actions_after_implicit_timestep()

template<class ELEMENT >
void UnsteadyHeatProblem< ELEMENT >::actions_after_implicit_timestep ( )
inline

Update the problem specs after solve (empty)

Definition at line 123 of file two_d_unsteady_heat_t_adapt.cc.

◆ actions_after_newton_solve()

template<class ELEMENT >
void UnsteadyHeatProblem< ELEMENT >::actions_after_newton_solve ( )
inline

Update the problem specs after solve (empty)

Definition at line 117 of file two_d_unsteady_heat_t_adapt.cc.

◆ actions_before_implicit_timestep()

template<class ELEMENT >
void UnsteadyHeatProblem< ELEMENT >::actions_before_implicit_timestep

Update the problem specs before next timestep: Set Dirchlet boundary conditions from exact solution.

Actions before timestep: update the domain, then reset the boundary conditions for the current time.

Definition at line 255 of file two_d_unsteady_heat_t_adapt.cc.

References ExactSolnForUnsteadyHeat::get_exact_u().

◆ actions_before_newton_solve()

template<class ELEMENT >
void UnsteadyHeatProblem< ELEMENT >::actions_before_newton_solve ( )
inline

Update the problem specs before solve (empty)

Definition at line 120 of file two_d_unsteady_heat_t_adapt.cc.

◆ doc_solution()

template<class ELEMENT >
void UnsteadyHeatProblem< ELEMENT >::doc_solution ( DocInfo &  doc_info,
ofstream &  trace_file 
)

Doc the solution.

Definition at line 425 of file two_d_unsteady_heat_t_adapt.cc.

References ExactSolnForUnsteadyHeat::get_exact_u().

Referenced by main().

◆ dump_it()

template<class ELEMENT >
void UnsteadyHeatProblem< ELEMENT >::dump_it ( ofstream &  dump_file)

Dump problem to disk to allow for restart.

Dump the solution to disk to allow for restart.

Definition at line 543 of file two_d_unsteady_heat_t_adapt.cc.

◆ global_temporal_error_norm()

template<class ELEMENT >
double UnsteadyHeatProblem< ELEMENT >::global_temporal_error_norm

Global error norm for adaptive time-stepping.

Global error norm for adaptive timestepping: RMS error, based on difference between predicted and actual value at all nodes.

Definition at line 573 of file two_d_unsteady_heat_t_adapt.cc.

◆ restart()

template<class ELEMENT >
void UnsteadyHeatProblem< ELEMENT >::restart ( ifstream &  restart_file)

Read problem for restart from specified restart file.

Read solution from disk for restart.

Definition at line 557 of file two_d_unsteady_heat_t_adapt.cc.

◆ set_initial_condition()

template<class ELEMENT >
void UnsteadyHeatProblem< ELEMENT >::set_initial_condition

Set initial condition (incl previous timesteps) according to specified function.

Set initial condition: Assign previous and current values from exact solution or from restart file.

Definition at line 288 of file two_d_unsteady_heat_t_adapt.cc.

References ExactSolnForUnsteadyHeat::get_exact_u().

Referenced by main().

Member Data Documentation

◆ Control_node_pt

template<class ELEMENT >
Node* UnsteadyHeatProblem< ELEMENT >::Control_node_pt
private

Pointer to control node at which the solution is documented.

Definition at line 151 of file two_d_unsteady_heat_t_adapt.cc.

Referenced by UnsteadyHeatProblem< ELEMENT >::UnsteadyHeatProblem().

◆ Source_fct_pt

template<class ELEMENT >
UnsteadyHeatEquations<2>::UnsteadyHeatSourceFctPt UnsteadyHeatProblem< ELEMENT >::Source_fct_pt
private

Pointer to source function.

Definition at line 148 of file two_d_unsteady_heat_t_adapt.cc.

Referenced by UnsteadyHeatProblem< ELEMENT >::UnsteadyHeatProblem().


The documentation for this class was generated from the following file: