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

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

Inheritance diagram for RefineableAdvectionDiffusionProblem< ELEMENT >:

Public Member Functions

 RefineableAdvectionDiffusionProblem (AdvectionDiffusionEquations< 2 >::AdvectionDiffusionSourceFctPt source_fct_pt, AdvectionDiffusionEquations< 2 >::AdvectionDiffusionWindFctPt wind_fct_pt)
 Constructor: Pass pointer to source and wind functions. More...
 
 ~RefineableAdvectionDiffusionProblem ()
 Destructor. Empty. More...
 
void actions_before_newton_solve ()
 Update the problem specs before solve: Reset boundary conditions to the values from the tanh solution. More...
 
void actions_after_newton_solve ()
 Update the problem after solve (empty) More...
 
void actions_before_adapt ()
 Actions before adapt: Document the solution. More...
 
void doc_solution ()
 Doc the solution. More...
 
RefineableRectangularQuadMesh< ELEMENT > * mesh_pt ()
 Overloaded version of the problem's access function to the mesh. Recasts the pointer to the base Mesh object to the actual mesh type. More...
 
 RefineableAdvectionDiffusionProblem (AdvectionDiffusionEquations< 2 >::AdvectionDiffusionSourceFctPt source_fct_pt, AdvectionDiffusionEquations< 2 >::AdvectionDiffusionWindFctPt wind_fct_pt)
 Constructor: Pass pointer to source function. More...
 
 ~RefineableAdvectionDiffusionProblem ()
 Destructor (empty) More...
 
void actions_before_newton_solve ()
 Update the problem specs before solve: Reset boundary conditions to the values from the exact solution. More...
 
void actions_after_newton_solve ()
 Update the problem after solve (empty) More...
 
void doc_solution (DocInfo &doc_info)
 Doc the solution. DocInfo object stores flags/labels for where the output gets written to. More...
 
RefineableRectangularQuadMesh< ELEMENT > * mesh_pt ()
 Overloaded version of the problem's access function to the mesh. Recasts the pointer to the base Mesh object to the actual mesh type. More...
 

Private Attributes

DocInfo Doc_info
 DocInfo object. More...
 
AdvectionDiffusionEquations< 2 >::AdvectionDiffusionSourceFctPt Source_fct_pt
 Pointer to source function. More...
 
AdvectionDiffusionEquations< 2 >::AdvectionDiffusionWindFctPt Wind_fct_pt
 Pointer to wind function. More...
 

Detailed Description

template<class ELEMENT>
class RefineableAdvectionDiffusionProblem< ELEMENT >

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

2D AdvectionDiffusion problem on rectangular domain, discretised with refineable 2D QAdvectionDiffusion elements. The specific type of element is specified via the template parameter.

Definition at line 102 of file two_d_adv_diff_adapt.cc.

Constructor & Destructor Documentation

◆ RefineableAdvectionDiffusionProblem() [1/2]

template<class ELEMENT >
RefineableAdvectionDiffusionProblem< ELEMENT >::RefineableAdvectionDiffusionProblem ( AdvectionDiffusionEquations< 2 >::AdvectionDiffusionSourceFctPt  source_fct_pt,
AdvectionDiffusionEquations< 2 >::AdvectionDiffusionWindFctPt  wind_fct_pt 
)

◆ ~RefineableAdvectionDiffusionProblem() [1/2]

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

Destructor. Empty.

Definition at line 113 of file two_d_adv_diff_adapt.cc.

◆ RefineableAdvectionDiffusionProblem() [2/2]

template<class ELEMENT >
RefineableAdvectionDiffusionProblem< ELEMENT >::RefineableAdvectionDiffusionProblem ( AdvectionDiffusionEquations< 2 >::AdvectionDiffusionSourceFctPt  source_fct_pt,
AdvectionDiffusionEquations< 2 >::AdvectionDiffusionWindFctPt  wind_fct_pt 
)

Constructor: Pass pointer to source function.

◆ ~RefineableAdvectionDiffusionProblem() [2/2]

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

Destructor (empty)

Definition at line 107 of file two_d_adv_diff_adapt2.cc.

Member Function Documentation

◆ actions_after_newton_solve() [1/2]

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

Update the problem after solve (empty)

Definition at line 120 of file two_d_adv_diff_adapt.cc.

◆ actions_after_newton_solve() [2/2]

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

Update the problem after solve (empty)

Definition at line 114 of file two_d_adv_diff_adapt2.cc.

◆ actions_before_adapt()

template<class ELEMENT >
void RefineableAdvectionDiffusionProblem< ELEMENT >::actions_before_adapt ( )
inline

Actions before adapt: Document the solution.

Definition at line 123 of file two_d_adv_diff_adapt.cc.

◆ actions_before_newton_solve() [1/2]

template<class ELEMENT >
void RefineableAdvectionDiffusionProblem< ELEMENT >::actions_before_newton_solve

Update the problem specs before solve: Reset boundary conditions to the values from the tanh solution.

Update the problem specs before solve: (Re-)set boundary conditions to the values from the exact solution.

Update the problem specs before solve: (Re-)set boundary conditions to the values from the tanh solution.

Definition at line 239 of file two_d_adv_diff_adapt.cc.

References TanhSolnForAdvectionDiffusion::get_exact_u().

◆ actions_before_newton_solve() [2/2]

template<class ELEMENT >
void RefineableAdvectionDiffusionProblem< ELEMENT >::actions_before_newton_solve ( )

Update the problem specs before solve: Reset boundary conditions to the values from the exact solution.

◆ doc_solution() [1/2]

template<class ELEMENT >
void RefineableAdvectionDiffusionProblem< ELEMENT >::doc_solution

Doc the solution.

Definition at line 277 of file two_d_adv_diff_adapt.cc.

References TanhSolnForAdvectionDiffusion::get_exact_u().

Referenced by main().

◆ doc_solution() [2/2]

template<class ELEMENT >
void RefineableAdvectionDiffusionProblem< ELEMENT >::doc_solution ( DocInfo &  doc_info)

Doc the solution. DocInfo object stores flags/labels for where the output gets written to.

Doc the solution: doc_info contains labels/output directory etc.

Definition at line 254 of file two_d_adv_diff_adapt2.cc.

◆ mesh_pt() [1/2]

template<class ELEMENT >
RefineableRectangularQuadMesh<ELEMENT>* RefineableAdvectionDiffusionProblem< ELEMENT >::mesh_pt ( )
inline

Overloaded version of the problem's access function to the mesh. Recasts the pointer to the base Mesh object to the actual mesh type.

Definition at line 138 of file two_d_adv_diff_adapt.cc.

Referenced by main(), and RefineableAdvectionDiffusionProblem< ELEMENT >::RefineableAdvectionDiffusionProblem().

◆ mesh_pt() [2/2]

template<class ELEMENT >
RefineableRectangularQuadMesh<ELEMENT>* RefineableAdvectionDiffusionProblem< ELEMENT >::mesh_pt ( )
inline

Overloaded version of the problem's access function to the mesh. Recasts the pointer to the base Mesh object to the actual mesh type.

Definition at line 123 of file two_d_adv_diff_adapt2.cc.

Member Data Documentation

◆ Doc_info

template<class ELEMENT >
DocInfo RefineableAdvectionDiffusionProblem< ELEMENT >::Doc_info
private

◆ Source_fct_pt

template<class ELEMENT >
AdvectionDiffusionEquations< 2 >::AdvectionDiffusionSourceFctPt RefineableAdvectionDiffusionProblem< ELEMENT >::Source_fct_pt
private

Pointer to source function.

Definition at line 150 of file two_d_adv_diff_adapt.cc.

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

◆ Wind_fct_pt

template<class ELEMENT >
AdvectionDiffusionEquations< 2 >::AdvectionDiffusionWindFctPt RefineableAdvectionDiffusionProblem< ELEMENT >::Wind_fct_pt
private

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