26#ifndef OOMPH_CHANNEL_WITH_LEAFLET_MESH_HEADER
27#define OOMPH_CHANNEL_WITH_LEAFLET_MESH_HEADER
30#include "../generic/refineable_quad_mesh.h"
31#include "../generic/macro_element.h"
32#include "../generic/domain.h"
33#include "../generic/quad_mesh.h"
40#include "../generic/macro_element_node_update_element.h"
43#include "../generic/algebraic_elements.h"
53 template<
class ELEMENT>
70 const double& hleaflet,
72 const unsigned& nleft,
73 const unsigned& nright,
104 template<
class ELEMENT>
107 public RefineableQuadMesh<ELEMENT>
122 const double& lright,
123 const double& hleaflet,
125 const unsigned& nleft,
126 const unsigned& nright,
165 template<
class ELEMENT>
167 :
public virtual MacroElementNodeUpdateMesh,
183 const double& lright,
184 const double& hleaflet,
186 const unsigned& nleft,
187 const unsigned& nright,
208 <<
"MacroElementNodeUpdateChannelWithLeafletMesh needs"
209 <<
"to be of type MacroElementNodeUpdateElement!\n";
214 "MacroElementNodeUpdateChannelWithLeafletMesh::\n";
215 function_name +=
"MacroElementNodeUpdateChannelWithLeafletMesh()";
241 <<
"Failed to upcast to MacroElementNodeUpdateElementBase\n";
243 "MacroElementNodeUpdateElementBase\n";
247 "MacroElementNodeUpdateChannelWithLeafletMesh::\n";
248 function_name +=
"MacroElementNodeUpdateChannelWithLeafletMesh()";
268 MacroElementNodeUpdateMesh::set_geom_object_vector_pt(
geom_object_pt);
271 MacroElementNodeUpdateMesh::macro_domain_pt() = this->
domain_pt();
291 template<
class ELEMENT>
294 public virtual RefineableQuadMesh<ELEMENT>
309 const double& lright,
310 const double& hleaflet,
312 const unsigned& nleft,
313 const unsigned& nright,
359 template<
class ELEMENT>
361 :
public AlgebraicMesh,
377 const double& lright,
378 const double& hleaflet,
380 const unsigned& nleft,
381 const unsigned& nright,
408 AlgebraicMesh::add_geom_object_list_pt(leaflet_pt);
468 template<
class ELEMENT>
470 :
public RefineableQuadMesh<ELEMENT>,
486 const double& lright,
487 const double& hleaflet,
489 const unsigned& nleft,
490 const unsigned& nright,
533 template<
class ELEMENT>
536 public virtual SolidMesh
550 const double& lright,
551 const double& hleaflet,
553 const unsigned& nleft,
554 const unsigned& nright,
//////////////////////////////////////////////////////////////////// ////////////////////////////////...
void setup_algebraic_node_update()
Function to setup the algebraic node update.
double X_0
Origin of the wall (stored explicitly for reference in algebraic node update – it's also stored indep...
AlgebraicChannelWithLeafletMesh(GeomObject *leaflet_pt, const double &lleft, const double &lright, const double &hleaflet, const double &htot, const unsigned &nleft, const unsigned &nright, const unsigned &ny1, const unsigned &ny2, TimeStepper *time_stepper_pt=&Mesh::Default_TimeStepper)
Constructor: Pass pointer to GeomObject that represents the leaflet, the length of the domain to left...
double Hleaflet
Length of the leaflet (stored explicitly for reference in algebraic node update – it's also stored in...
void algebraic_node_update(const unsigned &t, AlgebraicNode *&node_pt)
Update nodal position at time level t (t=0: present; t>0: previous)
void node_update_I(const unsigned &t, AlgebraicNode *&node_pt)
Update function for nodes in lower left region (I)
void node_update_III(const unsigned &t, AlgebraicNode *&node_pt)
Update function for nodes in upper left region (III)
virtual ~AlgebraicChannelWithLeafletMesh()
Destructor: empty.
void node_update_II(const unsigned &t, AlgebraicNode *&node_pt)
Update function for nodes in lower right region (II)
void slanted_bound_up(const unsigned &t, const Vector< double > &zeta, Vector< double > &r)
Helper function.
void node_update_IV(const unsigned &t, AlgebraicNode *&node_pt)
Update function for nodes in upper right region (IV)
void update_node_update(AlgebraicNode *&node_pt)
Update the geometric references that are used to update node after mesh adaptation....
Rectangular domain with a leaflet blocking the lower half.
Channel with leaflet mesh.
ChannelWithLeafletDomain * domain_pt()
Access function to domain.
ChannelWithLeafletDomain * Domain_pt
Pointer to domain.
GeomObject * Leaflet_pt
Pointer to GeomObject that represents the leaflet.
virtual ~ChannelWithLeafletMesh()
Destructor : empty.
////////////////////////////////////////////////////////////////// //////////////////////////////////...
virtual ~MacroElementNodeUpdateChannelWithLeafletMesh()
Destructor: empty.
MacroElementNodeUpdateChannelWithLeafletMesh(GeomObject *leaflet_pt, const double &lleft, const double &lright, const double &hleaflet, const double &htot, const unsigned &nleft, const unsigned &nright, const unsigned &ny1, const unsigned &ny2, TimeStepper *time_stepper_pt=&Mesh::Default_TimeStepper)
Constructor: Pass pointer to GeomObject that represents the leaflet, the length of the domain to left...
///////////////////////////////////////////////////////////////////////// ///////////////////////////...
MacroElementNodeUpdateRefineableChannelWithLeafletMesh(GeomObject *leaflet_pt, const double &lleft, const double &lright, const double &hleaflet, const double &htot, const unsigned &nleft, const unsigned &nright, const unsigned &ny1, const unsigned &ny2, TimeStepper *time_stepper_pt=&Mesh::Default_TimeStepper)
Constructor: Pass pointer to GeomObject that represents the leaflet, the length of the domain to left...
virtual ~MacroElementNodeUpdateRefineableChannelWithLeafletMesh()
Destructor: empty.
////////////////////////////////////////////////////////////////// //////////////////////////////////...
PseudoElasticChannelWithLeafletMesh(GeomObject *leaflet_pt, const double &lleft, const double &lright, const double &hleaflet, const double &htot, const unsigned &nleft, const unsigned &nright, const unsigned &ny1, const unsigned &ny2, TimeStepper *time_stepper_pt=&Mesh::Default_TimeStepper)
Constructor: Pass pointer to GeomObject that represents the leaflet, the length of the domain to left...
virtual ~PseudoElasticChannelWithLeafletMesh()
Destructor : empty.
//////////////////////////////////////////////////////////////////////// ////////////////////////////...
RefineableAlgebraicChannelWithLeafletMesh(GeomObject *leaflet_pt, const double &lleft, const double &lright, const double &hleaflet, const double &htot, const unsigned &nleft, const unsigned &nright, const unsigned &ny1, const unsigned &ny2, TimeStepper *time_stepper_pt=&Mesh::Default_TimeStepper)
Constructor: Pass pointer to GeomObject that represents the leaflet, the length of the domain to left...
void update_node_update(AlgebraicNode *&node_pt)
Update the node update data for specified node following any mesh adapation.
////////////////////////////////////////////////////////////////// //////////////////////////////////...
RefineableChannelWithLeafletMesh(GeomObject *leaflet_pt, const double &lleft, const double &lright, const double &hleaflet, const double &htot, const unsigned &nleft, const unsigned &nright, const unsigned &ny1, const unsigned &ny2, TimeStepper *time_stepper_pt=&Mesh::Default_TimeStepper)
Constructor: Pass pointer to GeomObject that represents the leaflet, the length of the domain to left...
virtual ~RefineableChannelWithLeafletMesh()
Destructor (empty)
/////////////////////////////////////////////////////////////////// /////////////////////////////////...
Simple rectangular 2D Quad mesh class. Nx : number of elements in the x direction.
////////////////////////////////////////////////////////////////////// //////////////////////////////...