///////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////// More...
Public Member Functions | |
RefineableUnsteadyHeatProblem (UnsteadyHeatEquations< 2 >::UnsteadyHeatSourceFctPt source_fct_pt) | |
Constructor: Pass pointer to source function and timestep. More... | |
~RefineableUnsteadyHeatProblem () | |
Destructor: Close trace file. 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 timestep (empty) More... | |
void | actions_before_implicit_timestep () |
Update the problem specs before next timestep: Set Dirchlet boundary conditions from exact solution. More... | |
void | actions_before_adapt () |
Actions before adapt: Wipe the mesh of prescribed flux elements. More... | |
void | actions_after_adapt () |
Actions after adapt: Rebuild the mesh of prescribed flux elements. More... | |
double | global_temporal_error_norm () |
Global error norm for adaptive time-stepping. More... | |
void | set_initial_condition () |
Set initial condition (incl previous timesteps) according to specified function. More... | |
void | create_flux_elements (const unsigned &b, Mesh *const &bulk_mesh_pt, Mesh *const &surface_mesh_pt) |
Create UnsteadyHeat flux elements on boundary b of the Mesh pointed to by bulk_mesh_pt and add them to the Mesh object pointed to by surface_mesh_pt. More... | |
void | delete_flux_elements (Mesh *const &surface_mesh_pt) |
Delete UnsteadyHeat flux elements and wipe the surface mesh. More... | |
void | doc_solution () |
Doc the solution. More... | |
void | dump_it (ofstream &dump_file) |
Dump problem data to allow for later restart. More... | |
void | restart (ifstream &restart_file) |
Read problem data for restart. More... | |
RefineableQuarterCircleSectorMesh< ELEMENT > * | bulk_mesh_pt () |
Pointer to bulk mesh. More... | |
double & | epsilon_t () |
Target error for adaptive timestepping. More... | |
void | write_trace_file_header () |
Write header for trace file. More... | |
double & | next_dt () |
Suggestion for next timestep (stored to allow it to be written to (or read from) restart file) More... | |
Private Attributes | |
DocInfo | Doc_info |
Doc info object. More... | |
double | Next_dt |
Suggestion for next timestep (stored to allow it to be written to (or read from) restart file) More... | |
GeomObject * | Boundary_pt |
Pointer to GeomObject that specifies the domain bondary. More... | |
UnsteadyHeatEquations< 2 >::UnsteadyHeatSourceFctPt | Source_fct_pt |
Pointer to source function. More... | |
RefineableQuarterCircleSectorMesh< ELEMENT > * | Bulk_mesh_pt |
Pointer to the "bulk" mesh. More... | |
Mesh * | Surface_mesh_pt |
Pointer to the "surface" mesh. More... | |
Node * | Doc_node_pt |
Pointer to central node (exists at all refinement levels) for doc. More... | |
ofstream | Trace_file |
Trace file. More... | |
double | Epsilon_t |
Target error for adaptive timestepping. More... | |
///////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////
Unsteady heat problem in deformable ellipse domain.
Definition at line 215 of file two_d_unsteady_heat_2adapt.cc.
RefineableUnsteadyHeatProblem< ELEMENT >::RefineableUnsteadyHeatProblem | ( | UnsteadyHeatEquations< 2 >::UnsteadyHeatSourceFctPt | source_fct_pt | ) |
Constructor: Pass pointer to source function and timestep.
Constructor for UnsteadyHeat problem on deformable ellipse domain. Pass pointer to source function.
Definition at line 324 of file two_d_unsteady_heat_2adapt.cc.
References TanhSolnForUnsteadyHeat::Alpha, TanhSolnForUnsteadyHeat::Beta, RefineableUnsteadyHeatProblem< ELEMENT >::Boundary_pt, RefineableUnsteadyHeatProblem< ELEMENT >::Bulk_mesh_pt, RefineableUnsteadyHeatProblem< ELEMENT >::create_flux_elements(), RefineableUnsteadyHeatProblem< ELEMENT >::Doc_info, RefineableUnsteadyHeatProblem< ELEMENT >::Doc_node_pt, RefineableUnsteadyHeatProblem< ELEMENT >::Epsilon_t, TanhSolnForUnsteadyHeat::Gamma, TanhSolnForUnsteadyHeat::prescribed_flux_on_fixed_y_boundary(), RefineableUnsteadyHeatProblem< ELEMENT >::Source_fct_pt, RefineableUnsteadyHeatProblem< ELEMENT >::Surface_mesh_pt, and TanhSolnForUnsteadyHeat::TanPhi.
RefineableUnsteadyHeatProblem< ELEMENT >::~RefineableUnsteadyHeatProblem |
Destructor: Close trace file.
Definition at line 480 of file two_d_unsteady_heat_2adapt.cc.
void RefineableUnsteadyHeatProblem< ELEMENT >::actions_after_adapt |
Actions after adapt: Rebuild the mesh of prescribed flux elements.
Definition at line 544 of file two_d_unsteady_heat_2adapt.cc.
References TanhSolnForUnsteadyHeat::prescribed_flux_on_fixed_y_boundary().
|
inline |
Update the problem specs after timestep (empty)
Definition at line 234 of file two_d_unsteady_heat_2adapt.cc.
|
inline |
Update the problem specs after solve (empty)
Definition at line 228 of file two_d_unsteady_heat_2adapt.cc.
void RefineableUnsteadyHeatProblem< ELEMENT >::actions_before_adapt |
Actions before adapt: Wipe the mesh of prescribed flux elements.
Definition at line 528 of file two_d_unsteady_heat_2adapt.cc.
void RefineableUnsteadyHeatProblem< 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 shape, then set the boundary conditions for the current time.
Definition at line 492 of file two_d_unsteady_heat_2adapt.cc.
References TanhSolnForUnsteadyHeat::get_exact_u().
|
inline |
Update the problem specs before solve (empty)
Definition at line 231 of file two_d_unsteady_heat_2adapt.cc.
|
inline |
Pointer to bulk mesh.
Definition at line 272 of file two_d_unsteady_heat_2adapt.cc.
Referenced by main().
void RefineableUnsteadyHeatProblem< ELEMENT >::create_flux_elements | ( | const unsigned & | b, |
Mesh *const & | bulk_mesh_pt, | ||
Mesh *const & | surface_mesh_pt | ||
) |
Create UnsteadyHeat flux elements on boundary b of the Mesh pointed to by bulk_mesh_pt and add them to the Mesh object pointed to by surface_mesh_pt.
Create UnsteadyHeat Flux Elements on the b-th boundary of the Mesh object pointed to by bulk_mesh_pt and add the elements to the Mesh object pointed to by surface_mesh_pt.
Definition at line 906 of file two_d_unsteady_heat_2adapt.cc.
Referenced by RefineableUnsteadyHeatProblem< ELEMENT >::RefineableUnsteadyHeatProblem().
void RefineableUnsteadyHeatProblem< ELEMENT >::delete_flux_elements | ( | Mesh *const & | surface_mesh_pt | ) |
Delete UnsteadyHeat flux elements and wipe the surface mesh.
Delete UnsteadyHeat Flux Elements and wipe the surface mesh.
Definition at line 939 of file two_d_unsteady_heat_2adapt.cc.
void RefineableUnsteadyHeatProblem< ELEMENT >::doc_solution |
Doc the solution.
Definition at line 764 of file two_d_unsteady_heat_2adapt.cc.
References TanhSolnForUnsteadyHeat::get_exact_u(), and TanhSolnForUnsteadyHeat::step_position().
Referenced by main().
void RefineableUnsteadyHeatProblem< ELEMENT >::dump_it | ( | ofstream & | dump_file | ) |
Dump problem data to allow for later restart.
Dump the solution to disk.
Definition at line 996 of file two_d_unsteady_heat_2adapt.cc.
|
inline |
Target error for adaptive timestepping.
Definition at line 278 of file two_d_unsteady_heat_2adapt.cc.
Referenced by main().
double RefineableUnsteadyHeatProblem< 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 963 of file two_d_unsteady_heat_2adapt.cc.
|
inline |
Suggestion for next timestep (stored to allow it to be written to (or read from) restart file)
Definition at line 285 of file two_d_unsteady_heat_2adapt.cc.
Referenced by main().
void RefineableUnsteadyHeatProblem< ELEMENT >::restart | ( | ifstream & | restart_file | ) |
Read problem data for restart.
Read solution from disk.
Definition at line 1014 of file two_d_unsteady_heat_2adapt.cc.
void RefineableUnsteadyHeatProblem< 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.
Definition at line 574 of file two_d_unsteady_heat_2adapt.cc.
References TanhSolnForUnsteadyHeat::get_exact_u().
Referenced by main().
void RefineableUnsteadyHeatProblem< ELEMENT >::write_trace_file_header |
Write header for trace file.
Write the tecplot header for the trace file.
Definition at line 723 of file two_d_unsteady_heat_2adapt.cc.
Referenced by main().
|
private |
Pointer to GeomObject that specifies the domain bondary.
Definition at line 297 of file two_d_unsteady_heat_2adapt.cc.
Referenced by RefineableUnsteadyHeatProblem< ELEMENT >::RefineableUnsteadyHeatProblem().
|
private |
Pointer to the "bulk" mesh.
Definition at line 303 of file two_d_unsteady_heat_2adapt.cc.
Referenced by RefineableUnsteadyHeatProblem< ELEMENT >::RefineableUnsteadyHeatProblem().
|
private |
Doc info object.
Definition at line 290 of file two_d_unsteady_heat_2adapt.cc.
Referenced by RefineableUnsteadyHeatProblem< ELEMENT >::RefineableUnsteadyHeatProblem().
|
private |
Pointer to central node (exists at all refinement levels) for doc.
Definition at line 309 of file two_d_unsteady_heat_2adapt.cc.
Referenced by RefineableUnsteadyHeatProblem< ELEMENT >::RefineableUnsteadyHeatProblem().
|
private |
Target error for adaptive timestepping.
Definition at line 315 of file two_d_unsteady_heat_2adapt.cc.
Referenced by RefineableUnsteadyHeatProblem< ELEMENT >::RefineableUnsteadyHeatProblem().
|
private |
Suggestion for next timestep (stored to allow it to be written to (or read from) restart file)
Definition at line 294 of file two_d_unsteady_heat_2adapt.cc.
|
private |
Pointer to source function.
Definition at line 300 of file two_d_unsteady_heat_2adapt.cc.
Referenced by RefineableUnsteadyHeatProblem< ELEMENT >::RefineableUnsteadyHeatProblem().
|
private |
Pointer to the "surface" mesh.
Definition at line 306 of file two_d_unsteady_heat_2adapt.cc.
Referenced by RefineableUnsteadyHeatProblem< ELEMENT >::RefineableUnsteadyHeatProblem().
|
private |
Trace file.
Definition at line 312 of file two_d_unsteady_heat_2adapt.cc.