202 const double& height,
208 : Cylinder_pt(cylinder_pt),
209 Top_flag_pt(top_flag_pt),
210 Bottom_flag_pt(bottom_flag_pt),
211 Tip_flag_pt(tip_flag_pt),
263 p11[1] = 0.778024390 * height;
267 p12[1] = 0.778024390 * height;
271 p13[1] = 0.778024390 * height;
275 p14[1] = 0.778024390 * height;
279 p15[1] = 0.625 * height;
283 p16[1] = 0.625 * height;
295 p35[1] = 0.350609756 * height;
299 p36[1] = 0.350609756 * height;
303 p37[1] = 0.197585366 * height;
307 p38[1] = 0.197585366 * height;
311 p39[1] = 0.197585366 * height;
315 p40[1] = 0.197585366 * height;
373 for (
unsigned i = 0;
i < 31;
i++)
Domain for cylinder with flag as in Turek benchmark.
GeomObject * Tip_flag_pt
Pointer to geometric object that represents the tip of the flag.
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 boundar...
Circle * cylinder_pt()
Access fct to GeomObject (of type Circle) that represents the cylinder.
GeomObject *& tip_flag_pt()
~CylinderWithFlagDomain()
Destructor: Emtpy because clean up happens in base class as a service to the user!
GeomObject *& bottom_flag_pt()
Access fct to GeomObjects for top, bottom and tip.
GeomObject * Top_flag_pt
Pointer to geometric object that represents the top of the flag.
void linear_interpolate(const Vector< double > &left, const Vector< double > &right, const double &s, Vector< double > &f)
Helper function to interpolate linearly between the "right" and "left" points; .
CylinderWithFlagDomain(Circle *cylinder_pt, GeomObject *top_flag_pt, GeomObject *bottom_flag_pt, GeomObject *tip_flag_pt, const double &length, const double &height, const double &flag_length, const double &flag_height, const double ¢re_x, const double ¢re_y, const double &a)
Constructor. Pass the pointers to the GeomObjects that parametrise the cylinder, the three edges of t...
GeomObject *& top_flag_pt()
GeomObject * Bottom_flag_pt
Pointer to geometric object that represents the bottom of the flag.
Circle * Cylinder_pt
Pointer to geometric object that represents the central cylinder.
Base class for Domains with curvilinear and/or time-dependent boundaries. Domain boundaries are typic...
Vector< MacroElement * > Macro_element_pt
Vector of pointers to macro elements.