48 const double&
r) : GeomObject(1,2),
X_c(x_c),
Y_c(y_c),
R(
r)
102 const double&
r) : GeomObject(1,2)
149 error_stream <<
"Geometric Data must have 3 values, not "
void demo_fish_poisson(const string &directory_name)
///////////////////////////////////////////////////////////////////// ///////////////////////////////...
//////////////////////////////////////////////////////////////////// ////////////////////////////////...
double & R()
Access function to radius of circle.
Vector< Data * > Geom_data_pt
Vector of pointers to Data items that affects the object's shape.
virtual ~GeneralCircle()
Destructor: Clean up if necessary.
bool Must_clean_up
Do I need to clean up?
double & x_c()
Access function to x-coordinate of centre of circle.
unsigned ngeom_data() const
How many items of Data does the shape of the object depend on?
void position(const unsigned &t, const Vector< double > &zeta, Vector< double > &r) const
Position Vector at Lagrangian coordinate zeta at time level t (t=0: present; t>0: previous level)....
GeneralCircle(const double &x_c, const double &y_c, const double &r)
Constructor: Pass x and y-coords of centre and radius (all pinned)
void position(const Vector< double > &zeta, Vector< double > &r) const
Position Vector at Lagrangian coordinate zeta.
Data * geom_data_pt(const unsigned &j)
Return pointer to the j-th Data item that the object's shape depends on.
double & y_c()
Access function to y-coordinate of centre of circle.
GeneralCircle(Data *geom_data_pt)
Alternative constructor: Pass x and y-coords of centre and radius (all as part of Data)
Simple circle in 2D space.
void position(const unsigned &t, const Vector< double > &zeta, Vector< double > &r) const
Position Vector at Lagrangian coordinate zeta at time level t (t=0: present; t>0: previous level)....
double Y_c
Y-coordinate of centre.
SimpleCircle(const double &x_c, const double &y_c, const double &r)
Constructor: Pass x and y-coords of centre and radius.
void position(const Vector< double > &zeta, Vector< double > &r) const
Position Vector at Lagrangian coordinate zeta.
double X_c
X-coordinate of centre.