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 138 of file inclined_plane.cc.

Constructor & Destructor Documentation

◆ InclinedPlaneProblem()

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 161 of file inclined_plane.cc.

◆ ~InclinedPlaneProblem()

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 385 of file inclined_plane.cc.

Member Function Documentation

◆ actions_before_implicit_timestep()

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 173 of file inclined_plane.cc.

References Global_Physical_Variables::K.

◆ complete_build()

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 300 of file inclined_plane.cc.

References Global_Physical_Variables::G(), Global_Physical_Variables::Re, and Global_Physical_Variables::ReInvFr.

◆ make_free_surface_elements()

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

◆ make_traction_elements()

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 193 of file inclined_plane.cc.

References Global_Physical_Variables::hydrostatic_pressure_inlet(), and Global_Physical_Variables::hydrostatic_pressure_outlet().

◆ solve_steady()

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

Solve the steady problem.

Definition at line 411 of file inclined_plane.cc.

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

Referenced by main().

◆ timestep()

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 443 of file inclined_plane.cc.

References Global_Physical_Variables::Re.

Referenced by main().

Member Data Documentation

◆ Bulk_mesh_pt

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

Bulk fluid mesh.

Definition at line 144 of file inclined_plane.cc.

◆ Output_prefix

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

Prefix for output files.

Definition at line 156 of file inclined_plane.cc.

◆ Point_mesh_pt

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 153 of file inclined_plane.cc.

◆ Surface_mesh_pt

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

Mesh for the free surface elements.

Definition at line 150 of file inclined_plane.cc.

◆ Traction_mesh_pt

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 147 of file inclined_plane.cc.


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