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"
39#include "generic/macro_element_node_update_element.h"
42#include "generic/algebraic_elements.h"
52 template<
class ELEMENT>
69 const double& hleaflet,
71 const unsigned& nleft,
72 const unsigned& nright,
102 template<
class ELEMENT>
105 public RefineableQuadMesh<ELEMENT>
120 const double& lright,
121 const double& hleaflet,
123 const unsigned& nleft,
124 const unsigned& nright,
162 template<
class ELEMENT>
164 :
public virtual MacroElementNodeUpdateMesh,
180 const double& lright,
181 const double& hleaflet,
183 const unsigned& nleft,
184 const unsigned& nright,
205 <<
"MacroElementNodeUpdateChannelWithLeafletMesh needs"
206 <<
"to be of type MacroElementNodeUpdateElement!\n";
211 "MacroElementNodeUpdateChannelWithLeafletMesh::\n";
212 function_name +=
"MacroElementNodeUpdateChannelWithLeafletMesh()";
238 <<
"Failed to upcast to MacroElementNodeUpdateElementBase\n";
240 "MacroElementNodeUpdateElementBase\n";
244 "MacroElementNodeUpdateChannelWithLeafletMesh::\n";
245 function_name +=
"MacroElementNodeUpdateChannelWithLeafletMesh()";
265 MacroElementNodeUpdateMesh::set_geom_object_vector_pt(
geom_object_pt);
268 MacroElementNodeUpdateMesh::macro_domain_pt() = this->
domain_pt();
286 template<
class ELEMENT>
289 public virtual RefineableQuadMesh<ELEMENT>
304 const double& lright,
305 const double& hleaflet,
307 const unsigned& nleft,
308 const unsigned& nright,
353 template<
class ELEMENT>
355 :
public AlgebraicMesh,
371 const double& lright,
372 const double& hleaflet,
374 const unsigned& nleft,
375 const unsigned& nright,
402 AlgebraicMesh::add_geom_object_list_pt(leaflet_pt);
461 template<
class ELEMENT>
463 :
public RefineableQuadMesh<ELEMENT>,
479 const double& lright,
480 const double& hleaflet,
482 const unsigned& nleft,
483 const unsigned& nright,
525 template<
class ELEMENT>
528 public virtual SolidMesh
542 const double& lright,
543 const double& hleaflet,
545 const unsigned& nleft,
546 const unsigned& nright,
Algebraic version of ChannelWithLeafletMesh. Leaflet is assumed to be in its undeformed (straight ver...
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.
Channel with leaflet mesh with MacroElement-based node update. The leaflet is represented by the spec...
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...
Refineable mesh with MacroElement-based node update.
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.
Channel with leaflet mesh upgraded to (pseudo-)solid mesh.
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.
Refineable version of algebraic ChannelWithLeafletMesh.
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.
Refineable version of ChannelWithLeafletMesh.
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)
Unstructured refineable Triangle Mesh.
Simple rectangular 2D Quad mesh class. Nx : number of elements in the x direction.