oomph::WomersleyOutflowImpedanceTube< ELEMENT, DIM > Class Template Reference

#include <womersley_elements.h>

+ Inheritance diagram for oomph::WomersleyOutflowImpedanceTube< ELEMENT, DIM >:

Public Member Functions

 WomersleyOutflowImpedanceTube (const double &length, Mesh *navier_stokes_outflow_mesh_pt, const unsigned &fixed_coordinate, const unsigned &w_index)
 
Meshbuild_mesh_and_apply_boundary_conditions (TimeStepper *time_stepper_pt)
 
- Public Member Functions inherited from oomph::WomersleyImpedanceTubeBase< ELEMENT, DIM >
 WomersleyImpedanceTubeBase (const double &length, PrescribedVolumeFluxFctPt prescribed_volume_flux_fct_pt)
 
 WomersleyImpedanceTubeBase (const double &length, Mesh *navier_stokes_outflow_mesh_pt)
 
doublep_out ()
 Access fct to outlet pressure. More...
 
void setup ()
 
void setup (double *re_st_pt, const double &dt, const double &q_initial, TimeStepper *time_stepper_pt=0)
 
WomersleyProblem< ELEMENT, DIM > * womersley_problem_pt ()
 Access to underlying Womersley problem. More...
 
void shift_time_values (const double &dt)
 
double total_volume_flux_into_impedance_tube ()
 
void get_response (double &p_in, double &dp_in_dq)
 
- Public Member Functions inherited from oomph::TemplateFreeWomersleyImpedanceTubeBase
 TemplateFreeWomersleyImpedanceTubeBase ()
 Empty constructor. More...
 
virtual ~TemplateFreeWomersleyImpedanceTubeBase ()
 Empty virtual destructor. More...
 

Private Attributes

unsigned Fixed_coordinate
 
unsigned W_index
 

Additional Inherited Members

- Public Types inherited from oomph::WomersleyImpedanceTubeBase< ELEMENT, DIM >
typedef double(* PrescribedVolumeFluxFctPt) (const double &time)
 
- Static Public Attributes inherited from oomph::TemplateFreeWomersleyImpedanceTubeBase
static double Zero = 0.0
 Zero! More...
 
- Protected Member Functions inherited from oomph::WomersleyImpedanceTubeBase< ELEMENT, DIM >
void precompute_aux_integrals ()
 
- Protected Attributes inherited from oomph::WomersleyImpedanceTubeBase< ELEMENT, DIM >
double Length
 Length of the tube. More...
 
double Dp_in_dq
 
doubleCurrent_volume_flux_pt
 
WomersleyProblem< ELEMENT, DIM > * Womersley_problem_pt
 
double P_out
 Outlet pressure. More...
 
PrescribedVolumeFluxFctPt Prescribed_volume_flux_fct_pt
 Pointer to function that specifies the prescribed volume flux. More...
 
MeshNavier_stokes_outflow_mesh_pt
 
std::map< unsigned, double > * Aux_integral_pt
 

Detailed Description

template<class ELEMENT, unsigned DIM>
class oomph::WomersleyOutflowImpedanceTube< ELEMENT, DIM >

///////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////// WomersleyImpedanceTube that attaches itself to the outflow of a Navier-Stokes mesh.

Constructor & Destructor Documentation

◆ WomersleyOutflowImpedanceTube()

template<class ELEMENT , unsigned DIM>
oomph::WomersleyOutflowImpedanceTube< ELEMENT, DIM >::WomersleyOutflowImpedanceTube ( const double length,
Mesh navier_stokes_outflow_mesh_pt,
const unsigned fixed_coordinate,
const unsigned w_index 
)
inline

Constructor: Pass length and mesh of face elements that are attached to the outflow cross-section of the Navier Stokes mesh to constructor of underlying base class. Also specify the coordinate (in the higher-dimensional Navier-Stokes mesh) that is constant in the outflow cross-section and the velocity component (in terms of the nodal index) that represents the outflow component – the latter is used to automatically apply the boundary conditions for the Womersley problem.

1843  : WomersleyImpedanceTubeBase<ELEMENT, DIM>(length,
1844  navier_stokes_outflow_mesh_pt),
1845  Fixed_coordinate(fixed_coordinate),
1846  W_index(w_index)
1847  {
1848  }
unsigned Fixed_coordinate
Definition: womersley_elements.h:1871
unsigned W_index
Definition: womersley_elements.h:1877

Member Function Documentation

◆ build_mesh_and_apply_boundary_conditions()

template<class ELEMENT , unsigned DIM>
Mesh* oomph::WomersleyOutflowImpedanceTube< ELEMENT, DIM >::build_mesh_and_apply_boundary_conditions ( TimeStepper time_stepper_pt)
inlinevirtual

Implement pure virtual fct (defined in the base class WomersleyImpedanceTubeBase) that builds the mesh of Womersley elements (of the type specified by the template argument), using the specified timestepper. Also applies the boundary condition.

Implements oomph::WomersleyImpedanceTubeBase< ELEMENT, DIM >.

1855  {
1856  // Build mesh and automatically apply the same boundary
1857  // conditions as those that are applied to the W_index-th
1858  // value of the nodes in the Navier-Stokes mesh.
1859  WomersleyMesh<ELEMENT>* womersley_mesh_pt =
1860  new WomersleyMesh<ELEMENT>(this->Navier_stokes_outflow_mesh_pt,
1861  time_stepper_pt,
1863  W_index);
1864 
1865  return womersley_mesh_pt;
1866  }
Mesh * Navier_stokes_outflow_mesh_pt
Definition: womersley_elements.h:1456

References oomph::WomersleyOutflowImpedanceTube< ELEMENT, DIM >::Fixed_coordinate, oomph::WomersleyImpedanceTubeBase< ELEMENT, DIM >::Navier_stokes_outflow_mesh_pt, and oomph::WomersleyOutflowImpedanceTube< ELEMENT, DIM >::W_index.

Member Data Documentation

◆ Fixed_coordinate

template<class ELEMENT , unsigned DIM>
unsigned oomph::WomersleyOutflowImpedanceTube< ELEMENT, DIM >::Fixed_coordinate
private

The coordinate (in the higher-dimensional Navier-Stokes mesh) that is constant in the outflow cross-section

Referenced by oomph::WomersleyOutflowImpedanceTube< ELEMENT, DIM >::build_mesh_and_apply_boundary_conditions().

◆ W_index

template<class ELEMENT , unsigned DIM>
unsigned oomph::WomersleyOutflowImpedanceTube< ELEMENT, DIM >::W_index
private

The velocity component (in terms of the nodal index) that represents the outflow component – the latter is used to automatically apply the boundary conditions for the Womersley problem.

Referenced by oomph::WomersleyOutflowImpedanceTube< ELEMENT, DIM >::build_mesh_and_apply_boundary_conditions().


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