Public Member Functions | Protected Attributes | List of all members
MyEllipse Class Reference

Oscillating ellipse

\[ x = (a + \widehat{a} \sin(2\Pi t/T)) \cos(\xi) \]

\[ y = (b + \widehat{b} \sin(2\Pi t/T)) \sin(\xi) \]

. More...

Inheritance diagram for MyEllipse:

Public Member Functions

 MyEllipse (const double &a, const double &b, const double &a_hat, const double &b_hat, const double &period, Time *time_pt)
 Constructor: Pass half axes, amplitudes of their variation, period of oscillation and pointer to time object. More...
 
virtual ~MyEllipse ()
 Destructor: Empty. More...
 
void position (const Vector< double > &xi, Vector< double > &r) const
 Current position vector to material point at Lagrangian coordinate xi. More...
 
void position (const unsigned &t, const Vector< double > &xi, Vector< double > &r) const
 Parametrised position on object: r(xi). Evaluated at previous time level. t=0: current time; t>0: previous time level. More...
 

Protected Attributes

double A
 x-half axis More...
 
double B
 y-half axis More...
 
double A_hat
 Amplitude of variation in x-half axis. More...
 
double B_hat
 Amplitude of variation in y-half axis. More...
 
double T
 Period of oscillation. More...
 
Time * Time_pt
 Pointer to time object. More...
 

Detailed Description

Oscillating ellipse

\[ x = (a + \widehat{a} \sin(2\Pi t/T)) \cos(\xi) \]

\[ y = (b + \widehat{b} \sin(2\Pi t/T)) \sin(\xi) \]

.

Definition at line 53 of file two_d_unsteady_heat_ALE.cc.

Constructor & Destructor Documentation

MyEllipse::MyEllipse ( const double &  a,
const double &  b,
const double &  a_hat,
const double &  b_hat,
const double &  period,
Time *  time_pt 
)
inline

Constructor: Pass half axes, amplitudes of their variation, period of oscillation and pointer to time object.

Definition at line 60 of file two_d_unsteady_heat_ALE.cc.

virtual MyEllipse::~MyEllipse ( )
inlinevirtual

Destructor: Empty.

Definition at line 67 of file two_d_unsteady_heat_ALE.cc.

Member Function Documentation

void MyEllipse::position ( const Vector< double > &  xi,
Vector< double > &  r 
) const
inline

Current position vector to material point at Lagrangian coordinate xi.

Definition at line 71 of file two_d_unsteady_heat_ALE.cc.

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

Parametrised position on object: r(xi). Evaluated at previous time level. t=0: current time; t>0: previous time level.

Definition at line 87 of file two_d_unsteady_heat_ALE.cc.

Member Data Documentation

double MyEllipse::A
protected

x-half axis

Definition at line 103 of file two_d_unsteady_heat_ALE.cc.

double MyEllipse::A_hat
protected

Amplitude of variation in x-half axis.

Definition at line 109 of file two_d_unsteady_heat_ALE.cc.

double MyEllipse::B
protected

y-half axis

Definition at line 106 of file two_d_unsteady_heat_ALE.cc.

double MyEllipse::B_hat
protected

Amplitude of variation in y-half axis.

Definition at line 112 of file two_d_unsteady_heat_ALE.cc.

double MyEllipse::T
protected

Period of oscillation.

Definition at line 115 of file two_d_unsteady_heat_ALE.cc.

Time* MyEllipse::Time_pt
protected

Pointer to time object.

Definition at line 118 of file two_d_unsteady_heat_ALE.cc.


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