![]() |
|
#include <geom_objects.h>
Public Member Functions | |
Circle (const double &x_c, const double &y_c, const double &r) | |
Constructor: Pass x and y-coords of centre and radius (all pinned) More... | |
Circle (const double &x_c, const double &y_c, const double &r, TimeStepper *time_stepper_pt) | |
Circle (const Vector< Data * > &geom_data_pt) | |
Circle (const Circle &dummy)=delete | |
Broken copy constructor. More... | |
void | operator= (const Circle &)=delete |
Broken assignment operator. More... | |
virtual | ~Circle () |
Destructor: Clean up if necessary. More... | |
void | position (const Vector< double > &zeta, Vector< double > &r) const |
Position Vector at Lagrangian coordinate zeta. More... | |
void | position (const unsigned &t, const Vector< double > &zeta, Vector< double > &r) const |
double & | x_c () |
Access function to x-coordinate of centre of circle. More... | |
double & | y_c () |
Access function to y-coordinate of centre of circle. More... | |
double & | R () |
Access function to radius of circle. More... | |
unsigned | ngeom_data () const |
How many items of Data does the shape of the object depend on? More... | |
Data * | geom_data_pt (const unsigned &j) |
![]() | |
GeomObject () | |
Default constructor. More... | |
GeomObject (const unsigned &ndim) | |
GeomObject (const unsigned &nlagrangian, const unsigned &ndim) | |
GeomObject (const unsigned &nlagrangian, const unsigned &ndim, TimeStepper *time_stepper_pt) | |
GeomObject (const GeomObject &dummy)=delete | |
Broken copy constructor. More... | |
void | operator= (const GeomObject &)=delete |
Broken assignment operator. More... | |
virtual | ~GeomObject () |
(Empty) destructor More... | |
unsigned | nlagrangian () const |
Access function to # of Lagrangian coordinates. More... | |
unsigned | ndim () const |
Access function to # of Eulerian coordinates. More... | |
void | set_nlagrangian_and_ndim (const unsigned &n_lagrangian, const unsigned &n_dim) |
Set # of Lagrangian and Eulerian coordinates. More... | |
TimeStepper *& | time_stepper_pt () |
TimeStepper * | time_stepper_pt () const |
virtual void | position (const double &t, const Vector< double > &zeta, Vector< double > &r) const |
virtual void | dposition_dt (const Vector< double > &zeta, const unsigned &j, Vector< double > &drdt) |
virtual void | dposition (const Vector< double > &zeta, DenseMatrix< double > &drdzeta) const |
virtual void | d2position (const Vector< double > &zeta, RankThreeTensor< double > &ddrdzeta) const |
virtual void | d2position (const Vector< double > &zeta, Vector< double > &r, DenseMatrix< double > &drdzeta, RankThreeTensor< double > &ddrdzeta) const |
virtual void | locate_zeta (const Vector< double > &zeta, GeomObject *&sub_geom_object_pt, Vector< double > &s, const bool &use_coordinate_as_initial_guess=false) |
virtual void | interpolated_zeta (const Vector< double > &s, Vector< double > &zeta) const |
Protected Attributes | |
Vector< Data * > | Geom_data_pt |
Vector of pointers to Data items that affects the object's shape. More... | |
bool | Must_clean_up |
Do I need to clean up? More... | |
bool | Is_time_dependent |
Genuine time-dependence? More... | |
![]() | |
unsigned | NLagrangian |
Number of Lagrangian (intrinsic) coordinates. More... | |
unsigned | Ndim |
Number of Eulerian coordinates. More... | |
TimeStepper * | Geom_object_time_stepper_pt |
//////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////// Circle in 2D space.
\[ x = X_c + R \cos(\zeta) \]
\[ y = Y_c + R \sin(\zeta) \]
Constructor: Pass x and y-coords of centre and radius (all pinned)
References Geom_data_pt, Is_time_dependent, Must_clean_up, UniformPSDSelfTest::r, x_c(), and y_c().
|
inline |
Constructor: Pass x and y-coords of centre and radius (all pinned) Circle is static but can be used in time-dependent runs with specified timestepper.
References oomph::TimeStepper::assign_initial_values_impulsive(), Geom_data_pt, Is_time_dependent, Must_clean_up, UniformPSDSelfTest::r, oomph::GeomObject::time_stepper_pt(), x_c(), and y_c().
Constructor: Pass x and y-coords of centre and radius (all as Data)
References geom_data_pt(), Geom_data_pt, Is_time_dependent, Must_clean_up, oomph::Data::nvalue(), OOMPH_CURRENT_FUNCTION, OOMPH_EXCEPTION_LOCATION, and oomph::GeomObject::time_stepper_pt().
|
delete |
Broken copy constructor.
|
inlinevirtual |
Destructor: Clean up if necessary.
References Geom_data_pt, i, Must_clean_up, and ngeom_data().
Return pointer to the j-th Data item that the object's shape depends on
Reimplemented from oomph::GeomObject.
References Geom_data_pt, and j.
Referenced by Circle().
|
inlinevirtual |
How many items of Data does the shape of the object depend on?
Reimplemented from oomph::GeomObject.
References Geom_data_pt.
Referenced by ~Circle().
|
delete |
Broken assignment operator.
|
inlinevirtual |
Parametrised position on object: r(zeta). Evaluated at previous timestep. t=0: current time; t>0: previous timestep.
Reimplemented from oomph::GeomObject.
References cos(), Geom_data_pt, Is_time_dependent, OOMPH_CURRENT_FUNCTION, OOMPH_EXCEPTION_LOCATION, position(), UniformPSDSelfTest::r, R(), sin(), plotPSD::t, oomph::GeomObject::time_stepper_pt(), ProblemParameters::Y_c, and Eigen::zeta().
|
inlinevirtual |
Position Vector at Lagrangian coordinate zeta.
Implements oomph::GeomObject.
References cos(), Geom_data_pt, UniformPSDSelfTest::r, R(), sin(), ProblemParameters::Y_c, and Eigen::zeta().
Referenced by oomph::CylinderWithFlagDomain::macro_element_boundary(), and position().
|
inline |
|
inline |
Access function to x-coordinate of centre of circle.
References Geom_data_pt.
Referenced by Circle().
|
inline |
Access function to y-coordinate of centre of circle.
References Geom_data_pt.
Referenced by Circle().
Vector of pointers to Data items that affects the object's shape.
Referenced by Circle(), geom_data_pt(), ngeom_data(), position(), R(), x_c(), y_c(), and ~Circle().
|
protected |
Genuine time-dependence?
Referenced by Circle(), and position().
|
protected |