Public Member Functions | Protected Attributes | List of all members
InclinedPlaneProblem< ELEMENT, INTERFACE_ELEMENT > Class Template Reference

Generic problem class that will form the base class for both spine and elastic mesh-updates of the problem. Templated by the bulk element and interface element types. More...

Inheritance diagram for InclinedPlaneProblem< ELEMENT, INTERFACE_ELEMENT >:

Public Member Functions

 InclinedPlaneProblem (const unsigned &nx, const unsigned &ny, const double &length)
 Generic Constructor (empty) More...
 
void solve_steady ()
 Solve the steady problem. More...
 
void timestep (const double &dt, const unsigned &n_tsteps)
 Take n_tsteps timesteps of size dt. More...
 
void actions_before_implicit_timestep ()
 Actions before the timestep (update the time-dependent boundary conditions) More...
 
void make_traction_elements ()
 Function to add the traction boundary elements to boundaries 3(inlet) and 1(outlet) of the mesh. More...
 
void make_free_surface_elements ()
 
void complete_build ()
 Complete the build of the problem setting all standard parameters and boundary conditions. More...
 
 ~InclinedPlaneProblem ()
 Generic desructor to clean up the memory allocated in the problem. More...
 

Protected Attributes

Mesh * Bulk_mesh_pt
 Bulk fluid mesh. More...
 
Mesh * Traction_mesh_pt
 Mesh for the traction elements that are added at inlet and outlet. More...
 
Mesh * Surface_mesh_pt
 Mesh for the free surface elements. More...
 
Mesh * Point_mesh_pt
 Mesh for the point elements at each end of the free surface. More...
 
std::string Output_prefix
 Prefix for output files. More...
 

Detailed Description

template<class ELEMENT, class INTERFACE_ELEMENT>
class InclinedPlaneProblem< ELEMENT, INTERFACE_ELEMENT >

Generic problem class that will form the base class for both spine and elastic mesh-updates of the problem. Templated by the bulk element and interface element types.

Definition at line 142 of file inclined_plane.cc.

Constructor & Destructor Documentation

template<class ELEMENT, class INTERFACE_ELEMENT>
InclinedPlaneProblem< ELEMENT, INTERFACE_ELEMENT >::InclinedPlaneProblem ( const unsigned &  nx,
const unsigned &  ny,
const double &  length 
)
inline

Generic Constructor (empty)

Definition at line 165 of file inclined_plane.cc.

template<class ELEMENT, class INTERFACE_ELEMENT>
InclinedPlaneProblem< ELEMENT, INTERFACE_ELEMENT >::~InclinedPlaneProblem ( )
inline

Generic desructor to clean up the memory allocated in the problem.

Definition at line 389 of file inclined_plane.cc.

Member Function Documentation

template<class ELEMENT, class INTERFACE_ELEMENT>
void InclinedPlaneProblem< ELEMENT, INTERFACE_ELEMENT >::actions_before_implicit_timestep ( )
inline

Actions before the timestep (update the time-dependent boundary conditions)

Definition at line 177 of file inclined_plane.cc.

template<class ELEMENT, class INTERFACE_ELEMENT>
void InclinedPlaneProblem< ELEMENT, INTERFACE_ELEMENT >::complete_build ( )
inline

Complete the build of the problem setting all standard parameters and boundary conditions.

Definition at line 304 of file inclined_plane.cc.

template<class ELEMENT, class INTERFACE_ELEMENT>
void InclinedPlaneProblem< ELEMENT, INTERFACE_ELEMENT >::make_free_surface_elements ( )
inline

Definition at line 243 of file inclined_plane.cc.

template<class ELEMENT, class INTERFACE_ELEMENT>
void InclinedPlaneProblem< ELEMENT, INTERFACE_ELEMENT >::make_traction_elements ( )
inline

Function to add the traction boundary elements to boundaries 3(inlet) and 1(outlet) of the mesh.

Definition at line 197 of file inclined_plane.cc.

template<class ELEMENT , class INTERFACE_ELEMENT >
void InclinedPlaneProblem< ELEMENT, INTERFACE_ELEMENT >::solve_steady ( )

Solve the steady problem.

Definition at line 415 of file inclined_plane.cc.

References Global_Physical_Variables::Alpha, and Global_Physical_Variables::ReInvFr.

template<class ELEMENT , class INTERFACE_ELEMENT >
void InclinedPlaneProblem< ELEMENT, INTERFACE_ELEMENT >::timestep ( const double &  dt,
const unsigned &  n_tsteps 
)

Take n_tsteps timesteps of size dt.

Perform n_tsteps timesteps of size dt.

Definition at line 448 of file inclined_plane.cc.

References Global_Physical_Variables::Re.

Member Data Documentation

template<class ELEMENT, class INTERFACE_ELEMENT>
Mesh* InclinedPlaneProblem< ELEMENT, INTERFACE_ELEMENT >::Bulk_mesh_pt
protected

Bulk fluid mesh.

Definition at line 148 of file inclined_plane.cc.

template<class ELEMENT, class INTERFACE_ELEMENT>
std::string InclinedPlaneProblem< ELEMENT, INTERFACE_ELEMENT >::Output_prefix
protected

Prefix for output files.

Definition at line 160 of file inclined_plane.cc.

template<class ELEMENT, class INTERFACE_ELEMENT>
Mesh* InclinedPlaneProblem< ELEMENT, INTERFACE_ELEMENT >::Point_mesh_pt
protected

Mesh for the point elements at each end of the free surface.

Definition at line 157 of file inclined_plane.cc.

template<class ELEMENT, class INTERFACE_ELEMENT>
Mesh* InclinedPlaneProblem< ELEMENT, INTERFACE_ELEMENT >::Surface_mesh_pt
protected

Mesh for the free surface elements.

Definition at line 154 of file inclined_plane.cc.

template<class ELEMENT, class INTERFACE_ELEMENT>
Mesh* InclinedPlaneProblem< ELEMENT, INTERFACE_ELEMENT >::Traction_mesh_pt
protected

Mesh for the traction elements that are added at inlet and outlet.

Definition at line 151 of file inclined_plane.cc.


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