Rectangular domain with circular whole. More...
#include <rectangle_with_hole_domain.h>
Public Member Functions | |
RectangleWithHoleDomain (GeomObject *cylinder_pt, const double &length) | |
Constructor. Pass pointer to geometric object that represents the cylinder, the length of the (square) domain. The GeomObject must be parametrised such that ![]() | |
~RectangleWithHoleDomain () | |
Destructor: Empty; cleanup done in base class. | |
void | linear_interpolate (Vector< double > left, Vector< double > right, const double &s, Vector< double > &f) |
Helper function to interpolate linearly between the "right" and "left" points; ![]() | |
void | macro_element_boundary (const unsigned &time, const unsigned &m, const unsigned &direction, const Vector< double > &s, Vector< double > &f) |
Parametrisation of macro element boundaries: f(s) is the position vector to macro-element m's boundary in the specified direction [N/S/E/W] at the specfied discrete time level (time=0: present; time>0: previous) | |
Private Attributes | |
Vector< double > | Lower_left |
Lower left corner of rectangle. | |
Vector< double > | Lower_right |
Lower right corner of rectangle. | |
Vector< double > | Lower_mid_left |
Where the "radial" line from circle meets lower boundary on left. | |
Vector< double > | Lower_mid_right |
Where the "radial" line from circle meets lower boundary on right. | |
Vector< double > | Upper_left |
Upper left corner of rectangle. | |
Vector< double > | Upper_right |
Upper right corner of rectangle. | |
Vector< double > | Upper_mid_left |
Where the "radial" line from circle meets upper boundary on left. | |
Vector< double > | Upper_mid_right |
Where the "radial" line from circle meets upper boundary on right. | |
GeomObject * | Cylinder_pt |
Pointer to geometric object that represents the central cylinder. | |
Rectangular domain with circular whole.
Definition at line 42 of file rectangle_with_hole_domain.h.
|
inline |
Constructor. Pass pointer to geometric object that represents the cylinder, the length of the (square) domain. The GeomObject must be parametrised such that
Definition at line 50 of file rectangle_with_hole_domain.h.
References Lower_left, Lower_mid_left, Lower_mid_right, Lower_right, Upper_left, Upper_mid_left, Upper_mid_right, and Upper_right.
|
inline |
Destructor: Empty; cleanup done in base class.
Definition at line 102 of file rectangle_with_hole_domain.h.
|
inline |
Helper function to interpolate linearly between the "right" and "left" points;
Definition at line 106 of file rectangle_with_hole_domain.h.
Referenced by macro_element_boundary().
|
inline |
Parametrisation of macro element boundaries: f(s) is the position vector to macro-element m's boundary in the specified direction [N/S/E/W] at the specfied discrete time level (time=0: present; time>0: previous)
Definition at line 122 of file rectangle_with_hole_domain.h.
References Cylinder_pt, linear_interpolate(), Lower_mid_left, Lower_mid_right, Upper_mid_left, and Upper_mid_right.
|
private |
Pointer to geometric object that represents the central cylinder.
Definition at line 336 of file rectangle_with_hole_domain.h.
Referenced by macro_element_boundary().
Lower left corner of rectangle.
Definition at line 312 of file rectangle_with_hole_domain.h.
Referenced by RectangleWithHoleDomain().
Where the "radial" line from circle meets lower boundary on left.
Definition at line 318 of file rectangle_with_hole_domain.h.
Referenced by macro_element_boundary(), and RectangleWithHoleDomain().
Where the "radial" line from circle meets lower boundary on right.
Definition at line 321 of file rectangle_with_hole_domain.h.
Referenced by macro_element_boundary(), and RectangleWithHoleDomain().
Lower right corner of rectangle.
Definition at line 315 of file rectangle_with_hole_domain.h.
Referenced by RectangleWithHoleDomain().
Upper left corner of rectangle.
Definition at line 324 of file rectangle_with_hole_domain.h.
Referenced by RectangleWithHoleDomain().
Where the "radial" line from circle meets upper boundary on left.
Definition at line 330 of file rectangle_with_hole_domain.h.
Referenced by macro_element_boundary(), and RectangleWithHoleDomain().
Where the "radial" line from circle meets upper boundary on right.
Definition at line 333 of file rectangle_with_hole_domain.h.
Referenced by macro_element_boundary(), and RectangleWithHoleDomain().
Upper right corner of rectangle.
Definition at line 327 of file rectangle_with_hole_domain.h.
Referenced by RectangleWithHoleDomain().