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

Rayleigh-type problem: 2D channel flow driven by traction bc. More...

Inheritance diagram for RayleighTractionProblem< ELEMENT, TIMESTEPPER >:

Public Member Functions

 RayleighTractionProblem (const unsigned &nx, const unsigned &ny, const double &lx, const double &ly)
 Constructor: Pass number of elements in x and y directions and lengths. More...
 
void actions_before_newton_solve ()
 Update before solve is empty. More...
 
void actions_after_newton_solve ()
 Update after solve is empty. More...
 
void actions_before_implicit_timestep ()
 Actions before timestep (empty) More...
 
void unsteady_run (DocInfo &doc_info)
 Run an unsteady simulation. More...
 
void doc_solution (DocInfo &doc_info)
 Doc the solution. More...
 
void set_initial_condition ()
 Set initial condition (incl previous timesteps) according to specified function. More...
 
void create_traction_elements (const unsigned &b, Mesh *const &bulk_mesh_pt, Mesh *const &surface_mesh_pt)
 Create traction 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...
 

Private Attributes

RectangularQuadMesh< ELEMENT > * Bulk_mesh_pt
 Pointer to the "bulk" mesh. More...
 
Mesh * Surface_mesh_pt
 Pointer to the "surface" mesh. More...
 
ofstream Trace_file
 Trace file. More...
 

Detailed Description

template<class ELEMENT, class TIMESTEPPER>
class RayleighTractionProblem< ELEMENT, TIMESTEPPER >

Rayleigh-type problem: 2D channel flow driven by traction bc.

Definition at line 125 of file rayleigh_traction_channel.cc.

Constructor & Destructor Documentation

◆ RayleighTractionProblem()

template<class ELEMENT , class TIMESTEPPER >
RayleighTractionProblem< ELEMENT, TIMESTEPPER >::RayleighTractionProblem ( const unsigned &  nx,
const unsigned &  ny,
const double &  lx,
const double &  ly 
)

Constructor: Pass number of elements in x and y directions and lengths.

Problem constructor.

Definition at line 179 of file rayleigh_traction_channel.cc.

References ExactSoln::prescribed_traction(), Global_Parameters::Re, and Global_Parameters::ReSt.

Member Function Documentation

◆ actions_after_newton_solve()

template<class ELEMENT , class TIMESTEPPER >
void RayleighTractionProblem< ELEMENT, TIMESTEPPER >::actions_after_newton_solve ( )
inline

Update after solve is empty.

Definition at line 138 of file rayleigh_traction_channel.cc.

◆ actions_before_implicit_timestep()

template<class ELEMENT , class TIMESTEPPER >
void RayleighTractionProblem< ELEMENT, TIMESTEPPER >::actions_before_implicit_timestep ( )
inline

Actions before timestep (empty)

Definition at line 141 of file rayleigh_traction_channel.cc.

◆ actions_before_newton_solve()

template<class ELEMENT , class TIMESTEPPER >
void RayleighTractionProblem< ELEMENT, TIMESTEPPER >::actions_before_newton_solve ( )
inline

Update before solve is empty.

Definition at line 135 of file rayleigh_traction_channel.cc.

◆ create_traction_elements()

template<class ELEMENT , class TIMESTEPPER >
void RayleighTractionProblem< ELEMENT, TIMESTEPPER >::create_traction_elements ( const unsigned &  b,
Mesh *const &  bulk_mesh_pt,
Mesh *const &  surface_mesh_pt 
)

Create traction 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 Navier-Stokes traction elements on the b-th boundary of the Mesh object pointed to by bulk_mesh_pt and add the elements to the Mesh object pointeed to by surface_mesh_pt.

Definition at line 424 of file rayleigh_traction_channel.cc.

◆ doc_solution()

template<class ELEMENT , class TIMESTEPPER >
void RayleighTractionProblem< ELEMENT, TIMESTEPPER >::doc_solution ( DocInfo &  doc_info)

Doc the solution.

Definition at line 339 of file rayleigh_traction_channel.cc.

References ExactSoln::get_exact_u().

◆ set_initial_condition()

template<class ELEMENT , class TIMESTEPPER >
void RayleighTractionProblem< ELEMENT, TIMESTEPPER >::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 272 of file rayleigh_traction_channel.cc.

References ExactSoln::get_exact_u().

◆ unsteady_run()

template<class ELEMENT , class TIMESTEPPER >
void RayleighTractionProblem< ELEMENT, TIMESTEPPER >::unsteady_run ( DocInfo &  doc_info)

Run an unsteady simulation.

Unsteady run...

Definition at line 458 of file rayleigh_traction_channel.cc.

References Global_Parameters::Impulsive_start_flag, and Global_Parameters::Long_run_flag.

Referenced by main().

Member Data Documentation

◆ Bulk_mesh_pt

template<class ELEMENT , class TIMESTEPPER >
RectangularQuadMesh<ELEMENT>* RayleighTractionProblem< ELEMENT, TIMESTEPPER >::Bulk_mesh_pt
private

Pointer to the "bulk" mesh.

Definition at line 163 of file rayleigh_traction_channel.cc.

◆ Surface_mesh_pt

template<class ELEMENT , class TIMESTEPPER >
Mesh* RayleighTractionProblem< ELEMENT, TIMESTEPPER >::Surface_mesh_pt
private

Pointer to the "surface" mesh.

Definition at line 166 of file rayleigh_traction_channel.cc.

◆ Trace_file

template<class ELEMENT , class TIMESTEPPER >
ofstream RayleighTractionProblem< ELEMENT, TIMESTEPPER >::Trace_file
private

Trace file.

Definition at line 169 of file rayleigh_traction_channel.cc.


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