FilledCircle Class Reference
+ Inheritance diagram for FilledCircle:

Public Member Functions

 FilledCircle (const double &centre_x, const double &centre_y, const double &radius)
 
virtual ~FilledCircle ()
 Destructor. More...
 
void position (const Vector< double > &xi, Vector< double > &r) const
 Lagrangian coordinate xi. More...
 
void position (const unsigned &t, const Vector< double > &xi, Vector< double > &r) const
 
- Public Member Functions inherited from oomph::GeomObject
 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 ()
 
TimeSteppertime_stepper_pt () const
 
virtual unsigned ngeom_data () const
 
virtual Datageom_data_pt (const unsigned &j)
 
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
 

Private Attributes

double Centre_x
 Storage for the x-coordinate of the centre. More...
 
double Centre_y
 Storage for the y-coordinate of the centre. More...
 
double Radius
 Storage for the radius of the circle. More...
 

Additional Inherited Members

- Protected Attributes inherited from oomph::GeomObject
unsigned NLagrangian
 Number of Lagrangian (intrinsic) coordinates. More...
 
unsigned Ndim
 Number of Eulerian coordinates. More...
 
TimeStepperGeom_object_time_stepper_pt
 

Constructor & Destructor Documentation

◆ FilledCircle()

FilledCircle::FilledCircle ( const double centre_x,
const double centre_y,
const double radius 
)
inline

Constructor that takes the centre position and raidus of the circle as its arguments

69  :
70  GeomObject(2,2), Centre_x(centre_x), Centre_y(centre_y), Radius(radius) { }
double Radius
Storage for the radius of the circle.
Definition: torus.cc:100
double Centre_y
Storage for the y-coordinate of the centre.
Definition: torus.cc:97
double Centre_x
Storage for the x-coordinate of the centre.
Definition: torus.cc:94
GeomObject()
Default constructor.
Definition: geom_objects.h:104
radius
Definition: UniformPSDSelfTest.py:15

◆ ~FilledCircle()

virtual FilledCircle::~FilledCircle ( )
inlinevirtual

Destructor.

73 {}

Member Function Documentation

◆ position() [1/2]

void FilledCircle::position ( const unsigned t,
const Vector< double > &  xi,
Vector< double > &  r 
) const
inlinevirtual

Return the position of the circle as a function of time (doesn't move as a function of time)

Reimplemented from oomph::GeomObject.

87  {
88  position(xi,r);
89  }
void position(const Vector< double > &xi, Vector< double > &r) const
Lagrangian coordinate xi.
Definition: torus.cc:76
r
Definition: UniformPSDSelfTest.py:20

References UniformPSDSelfTest::r.

◆ position() [2/2]

void FilledCircle::position ( const Vector< double > &  xi,
Vector< double > &  r 
) const
inlinevirtual

Lagrangian coordinate xi.

Implements oomph::GeomObject.

77 {
78  r[0] = Centre_x + Radius*xi[0]*cos(xi[1]);
79  r[1] = Centre_y + Radius*xi[0]*sin(xi[1]);
80 }
AnnoyingScalar cos(const AnnoyingScalar &x)
Definition: AnnoyingScalar.h:136
AnnoyingScalar sin(const AnnoyingScalar &x)
Definition: AnnoyingScalar.h:137

References Global_Parameters::Centre_x, Global_Parameters::Centre_y, cos(), UniformPSDSelfTest::r, Global_Physical_Variables::Radius, and sin().

Member Data Documentation

◆ Centre_x

double FilledCircle::Centre_x
private

Storage for the x-coordinate of the centre.

◆ Centre_y

double FilledCircle::Centre_y
private

Storage for the y-coordinate of the centre.

◆ Radius

double FilledCircle::Radius
private

Storage for the radius of the circle.


The documentation for this class was generated from the following file: