48 const double& r) : GeomObject(1,2),
X_c(x_c),
Y_c(y_c),
R(r)
52 void position(
const Vector<double>& zeta, Vector<double>& r)
const
55 r[0] =
X_c+
R*cos(zeta[0]);
56 r[1] =
Y_c+
R*sin(zeta[0]);
62 void position(
const unsigned& t,
const Vector<double>& zeta,
63 Vector<double>& r)
const
102 const double& r) : GeomObject(1,2)
148 std::ostringstream error_stream;
149 error_stream <<
"Geometric Data must have 3 values, not "
152 throw OomphLibError(error_stream.str(),
153 OOMPH_CURRENT_FUNCTION,
154 OOMPH_EXCEPTION_LOCATION);
183 void position(
const Vector<double>& zeta, Vector<double>& r)
const
191 r[0] = X_c+
R*cos(zeta[0]);
192 r[1] = Y_c+
R*sin(zeta[0]);
200 void position(
const unsigned& t,
const Vector<double>& zeta,
201 Vector<double>& r)
const
//////////////////////////////////////////////////////////////////// ////////////////////////////////...
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?
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)....
double & x_c()
Access function to x-coordinate of centre of circle.
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 & R()
Access function to radius of circle.
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.