Flag_definition::TipOfFlag Class Reference

GeomObject that defines the tip of the flag. More...

+ Inheritance diagram for Flag_definition::TipOfFlag:

Public Member Functions

 TipOfFlag ()
 Constructor. More...
 
 ~TipOfFlag ()
 Destructor (empty) More...
 
void position (const unsigned &t, const Vector< double > &xi, Vector< double > &r) const
 
void position (const Vector< double > &xi, Vector< double > &r) const
 Current position. More...
 
unsigned ngeom_data () const
 Number of geometric Data in GeomObject: None. More...
 
- 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 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
 

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
 

Detailed Description

GeomObject that defines the tip of the flag.

Constructor & Destructor Documentation

◆ TipOfFlag()

Flag_definition::TipOfFlag::TipOfFlag ( )
inline

Constructor.

233 : GeomObject(1,2) {}
GeomObject()
Default constructor.
Definition: geom_objects.h:104

◆ ~TipOfFlag()

Flag_definition::TipOfFlag::~TipOfFlag ( )
inline

Destructor (empty)

236 {}

Member Function Documentation

◆ ngeom_data()

unsigned Flag_definition::TipOfFlag::ngeom_data ( ) const
inlinevirtual

Number of geometric Data in GeomObject: None.

Reimplemented from oomph::GeomObject.

258 {return 0;}

◆ position() [1/2]

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

Return the position This object links the tips of the top and bottom by a straight line whilst xi[0] goes from -H/2 to H/2.

Reimplemented from oomph::GeomObject.

243  {
244  Vector<double> point_top(upper_tip(Time_pt->time(t)));
245  Vector<double> point_bottom(lower_tip(Time_pt->time(t)));
246 
247  r[1]= point_bottom[1]+(xi[0]+H/2.0)/H*(point_top[1]-point_bottom[1]);
248  r[0]= point_bottom[0]+(xi[0]+H/2.0)/H*(point_top[0]-point_bottom[0]);
249  }
double & time()
Return the current value of the continuous time.
Definition: timesteppers.h:123
Vector< double > upper_tip(const double &t)
Time-dependent vector to upper tip of the "flag".
Definition: turek_flag_non_fsi.cc:96
double H
Height of flag.
Definition: turek_flag_non_fsi.cc:73
Vector< double > lower_tip(const double &t)
Time-dependent vector to bottom tip of the "flag".
Definition: turek_flag_non_fsi.cc:108
Time * Time_pt
Pointer to the global time object.
Definition: turek_flag_non_fsi.cc:91
r
Definition: UniformPSDSelfTest.py:20
t
Definition: plotPSD.py:36

References H, Flag_definition::lower_tip(), UniformPSDSelfTest::r, plotPSD::t, oomph::Time::time(), Flag_definition::Time_pt, and Flag_definition::upper_tip().

◆ position() [2/2]

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

Current position.

Implements oomph::GeomObject.

253  {
254  return position(0,xi,r);
255  }
void position(const unsigned &t, const Vector< double > &xi, Vector< double > &r) const
Definition: turek_flag_non_fsi.cc:241

References UniformPSDSelfTest::r.


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