Oscillating ellipse
Note that cross-sectional area is conserved. More...
Public Member Functions | |
MyEllipse (const double &a, const double &a_hat, const double &period, Time *time_pt) | |
Constructor: Pass initial x-half axis, amplitude of x-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... | |
Private Attributes | |
double | A |
x-half axis More... | |
double | A_hat |
Amplitude of variation in x-half axis. More... | |
double | T |
Period of oscillation. More... | |
Time * | Time_pt |
Pointer to time object. More... | |
Oscillating ellipse
Note that cross-sectional area is conserved.
Definition at line 51 of file osc_quarter_ellipse.cc.
|
inline |
Constructor: Pass initial x-half axis, amplitude of x-variation, period of oscillation and pointer to time object.
Definition at line 58 of file osc_quarter_ellipse.cc.
|
inlinevirtual |
Destructor: Empty.
Definition at line 63 of file osc_quarter_ellipse.cc.
|
inline |
Current position vector to material point at Lagrangian coordinate xi.
Definition at line 67 of file osc_quarter_ellipse.cc.
References Global_Physical_Variables::A, Global_Physical_Variables::A_hat, and Global_Physical_Variables::T.
|
inline |
Parametrised position on object: r(xi). Evaluated at previous time level. t=0: current time; t>0: previous time level.
Definition at line 81 of file osc_quarter_ellipse.cc.
References Global_Physical_Variables::A, Global_Physical_Variables::A_hat, and Global_Physical_Variables::T.
|
private |
x-half axis
Definition at line 96 of file osc_quarter_ellipse.cc.
|
private |
Amplitude of variation in x-half axis.
Definition at line 99 of file osc_quarter_ellipse.cc.
|
private |
Period of oscillation.
Definition at line 102 of file osc_quarter_ellipse.cc.
|
private |
Pointer to time object.
Definition at line 105 of file osc_quarter_ellipse.cc.