27 #ifndef OOMPH_RECTANGLE_WITH_MOVING_CYLINDER_MESH_HEADER
28 #define OOMPH_RECTANGLE_WITH_MOVING_CYLINDER_MESH_HEADER
32 #include <oomph-lib-config.h>
35 #include "../generic/domain.h"
36 #include "../generic/geom_objects.h"
37 #include "../generic/refineable_quad_mesh.h"
62 const double& annular_region_radius,
102 unsigned n_macro_element = 8;
108 for (
unsigned i = 0;
i < n_macro_element;
i++)
145 for (
unsigned i = 0;
i < 2;
i++)
148 f[
i] = left[
i] + (right[
i] - left[
i]) * 0.5 * (
s + 1.0);
159 const unsigned& direction,
169 const unsigned& direction,
215 template<
class ELEMENT>
227 const double& annular_region_radius,
228 const double& length,
268 template<
class ELEMENT>
282 const double& annular_region_radius,
283 const double& length,
286 cylinder_pt, annular_region_radius, length, time_stepper_pt)
295 for (
unsigned e = 0;
e < n_macro_element;
e++)
319 template<
class ELEMENT>
331 const double& annular_region_radius,
332 const double& length_of_central_box,
333 const double& x_left,
334 const double& x_right,
int i
Definition: BiCGSTAB_step_by_step.cpp:9
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Vector< MacroElement * > Macro_element_pt
Vector of pointers to macro elements.
Definition: domain.h:301
unsigned nmacro_element()
Number of macro elements in domain.
Definition: domain.h:123
MacroElement * macro_element_pt(const unsigned &i)
Access to i-th macro element.
Definition: domain.h:116
Definition: geom_objects.h:101
static Steady< 0 > Default_TimeStepper
The Steady Timestepper.
Definition: mesh.h:75
virtual void setup_boundary_element_info()
Definition: mesh.h:275
const Vector< GeneralisedElement * > & element_pt() const
Return reference to the Vector of elements.
Definition: mesh.h:460
Definition: macro_element.h:279
Definition: rectangle_with_moving_cylinder_mesh.template.h:54
Vector< double > Upper_mid_left
Where the "radial" line from circle meets upper boundary on left.
Definition: rectangle_with_moving_cylinder_mesh.template.h:193
void linear_interpolate(const Vector< double > &left, const Vector< double > &right, const double &s, Vector< double > &f)
Definition: rectangle_with_moving_cylinder_mesh.template.h:139
Vector< double > Lower_right
Lower right corner of rectangle.
Definition: rectangle_with_moving_cylinder_mesh.template.h:178
Vector< double > Upper_right
Upper right corner of rectangle.
Definition: rectangle_with_moving_cylinder_mesh.template.h:190
void macro_element_boundary(const double &time, const unsigned &m, const unsigned &direction, const Vector< double > &s, Vector< double > &f)
Definition: rectangle_with_moving_cylinder_mesh.template.cc:127
~RectangleWithHoleAndAnnularRegionDomain()
Destructor: Empty; macro elements are deleted in base class destructor.
Definition: rectangle_with_moving_cylinder_mesh.template.h:117
GeomObject * Cylinder_pt
Pointer to geometric object that represents the central cylinder.
Definition: rectangle_with_moving_cylinder_mesh.template.h:199
void project_point_on_cylinder_to_annular_boundary(const unsigned &time, const Vector< double > &xi, Vector< double > &r)
Rectangular domain with circular whole.
Definition: rectangle_with_moving_cylinder_mesh.template.cc:39
Vector< double > Lower_mid_left
Where the "radial" line from circle meets lower boundary on left.
Definition: rectangle_with_moving_cylinder_mesh.template.h:181
Vector< double > Lower_mid_right
Where the "radial" line from circle meets lower boundary on right.
Definition: rectangle_with_moving_cylinder_mesh.template.h:184
double Annular_region_radius
Definition: rectangle_with_moving_cylinder_mesh.template.h:205
Vector< double > Upper_mid_right
Where the "radial" line from circle meets upper boundary on right.
Definition: rectangle_with_moving_cylinder_mesh.template.h:196
Vector< double > Lower_left
Lower left corner of rectangle.
Definition: rectangle_with_moving_cylinder_mesh.template.h:175
Vector< double > Upper_left
Upper left corner of rectangle.
Definition: rectangle_with_moving_cylinder_mesh.template.h:187
RectangleWithHoleAndAnnularRegionDomain(GeomObject *cylinder_pt, const double &annular_region_radius, const double &length)
Definition: rectangle_with_moving_cylinder_mesh.template.h:61
Domain-based mesh for rectangular mesh with circular hole.
Definition: rectangle_with_moving_cylinder_mesh.template.h:217
RectangleWithHoleAndAnnularRegionDomain * Domain_pt
Pointer to the domain.
Definition: rectangle_with_moving_cylinder_mesh.template.h:256
RectangleWithHoleAndAnnularRegionDomain * domain_pt()
Access function to the domain.
Definition: rectangle_with_moving_cylinder_mesh.template.h:248
RectangleWithHoleAndAnnularRegionMesh(GeomObject *cylinder_pt, const double &annular_region_radius, const double &length, TimeStepper *time_stepper_pt=&Mesh::Default_TimeStepper)
Domain-based mesh for rectangular mesh with circular hole.
Definition: rectangle_with_moving_cylinder_mesh.template.cc:913
~RectangleWithHoleAndAnnularRegionMesh()
Definition: rectangle_with_moving_cylinder_mesh.template.h:233
My Mesh.
Definition: rectangle_with_moving_cylinder_mesh.template.h:322
RefineableQuadMeshWithMovingCylinder(GeomObject *cylinder_pt, const double &annular_region_radius, const double &length_of_central_box, const double &x_left, const double &x_right, const double &height, TimeStepper *time_stepper_pt=&Mesh::Default_TimeStepper)
Definition: rectangle_with_moving_cylinder_mesh.template.cc:1396
bool Coarse_problem
Definition: rectangle_with_moving_cylinder_mesh.template.h:358
RefineableRectangleWithHoleAndAnnularRegionMesh< ELEMENT > * Central_mesh_pt
Definition: rectangle_with_moving_cylinder_mesh.template.h:355
~RefineableQuadMeshWithMovingCylinder()
Definition: rectangle_with_moving_cylinder_mesh.template.h:340
Definition: refineable_quad_mesh.h:53
void setup_quadtree_forest()
Definition: refineable_quad_mesh.h:88
Definition: rectangle_with_moving_cylinder_mesh.template.h:272
RefineableRectangleWithHoleAndAnnularRegionMesh(GeomObject *cylinder_pt, const double &annular_region_radius, const double &length, TimeStepper *time_stepper_pt=&Mesh::Default_TimeStepper)
Definition: rectangle_with_moving_cylinder_mesh.template.h:280
virtual ~RefineableRectangleWithHoleAndAnnularRegionMesh()
Destructor: Empty.
Definition: rectangle_with_moving_cylinder_mesh.template.h:309
Definition: timesteppers.h:231
static int f(const TensorMap< Tensor< int, 3 > > &tensor)
Definition: cxx11_tensor_map.cpp:237
RealScalar s
Definition: level1_cplx_impl.h:130
int * m
Definition: level2_cplx_impl.h:294
double height(const double &x)
Height of domain.
Definition: simple_spine_channel.cc:429
DRAIG: Change all instances of (SPATIAL_DIM) to (DIM-1).
Definition: AnisotropicHookean.h:10