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

Oscillating ellipse. 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 49 of file two_d_unsteady_heat_ALE.cc.

Constructor & Destructor Documentation

◆ MyEllipse()

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 56 of file two_d_unsteady_heat_ALE.cc.

◆ ~MyEllipse()

virtual MyEllipse::~MyEllipse ( )
inlinevirtual

Destructor: Empty.

Definition at line 63 of file two_d_unsteady_heat_ALE.cc.

Member Function Documentation

◆ position() [1/2]

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 83 of file two_d_unsteady_heat_ALE.cc.

◆ position() [2/2]

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 67 of file two_d_unsteady_heat_ALE.cc.

Member Data Documentation

◆ A

double MyEllipse::A
protected

x-half axis

Definition at line 99 of file two_d_unsteady_heat_ALE.cc.

◆ A_hat

double MyEllipse::A_hat
protected

Amplitude of variation in x-half axis.

Definition at line 105 of file two_d_unsteady_heat_ALE.cc.

◆ B

double MyEllipse::B
protected

y-half axis

Definition at line 102 of file two_d_unsteady_heat_ALE.cc.

◆ B_hat

double MyEllipse::B_hat
protected

Amplitude of variation in y-half axis.

Definition at line 108 of file two_d_unsteady_heat_ALE.cc.

◆ T

double MyEllipse::T
protected

Period of oscillation.

Definition at line 111 of file two_d_unsteady_heat_ALE.cc.

◆ Time_pt

Time* MyEllipse::Time_pt
protected

Pointer to time object.

Definition at line 114 of file two_d_unsteady_heat_ALE.cc.


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