Public Member Functions | Private Attributes | List of all members
ElasticRingProblem< ELEMENT, TIMESTEPPER > Class Template Reference

Ring problem. More...

Inheritance diagram for ElasticRingProblem< ELEMENT, TIMESTEPPER >:

Public Member Functions

 ElasticRingProblem (const unsigned &N, const double &L)
 Constructor: Number of elements, length of domain, flag for setting Newmark IC directly or consistently. More...
 
OneDLagrangianMesh< ELEMENT > * mesh_pt ()
 Access function for the mesh. More...
 
void actions_after_newton_solve ()
 Update function is empty. More...
 
void actions_before_newton_solve ()
 Update function is empty. More...
 
void doc_solution (DocInfo &doc_info)
 Doc solution. More...
 
void unsteady_run ()
 Do unsteady run. More...
 
 ElasticRingProblem (const unsigned &n_element)
 Constructor: Number of elements. More...
 
OneDLagrangianMesh< ELEMENT > * mesh_pt ()
 Access function for the specific mesh. More...
 
void actions_after_newton_solve ()
 Update function is empty. More...
 
void actions_before_newton_solve ()
 Update function is empty. More...
 
void set_initial_conditions ()
 Setup initial conditions. More...
 
void doc_solution (DocInfo &doc_info)
 Doc solution. More...
 
void unsteady_run ()
 Do unsteady run. More...
 
void dump_it (ofstream &dump_file)
 Dump problem-specific parameter values, then dump generic problem data. More...
 
void restart (ifstream &restart_file)
 Read problem-specific parameter values, then recover generic problem data. More...
 

Private Attributes

double Length
 Length of domain (in terms of the Lagrangian coordinates) More...
 
ELEMENT * Displ_control_elem_pt
 In which element are we applying displacement control? (here only used for doc of radius) More...
 
Vector< double > S_displ_control
 At what local coordinate are we applying displacement control? More...
 
GeomObject * Undef_geom_pt
 Pointer to geometric object that represents the undeformed shape. More...
 
SolidInitialCondition * IC_pt
 Pointer to object that specifies the initial condition. More...
 
ofstream Trace_file
 Trace file for recording control data. More...
 
unsigned Validation_run_flag
 Flag for validation run: Default: 0 = no validation run. More...
 
bool Restart_flag
 Restart flag specified via command line? More...
 

Detailed Description

template<class ELEMENT, class TIMESTEPPER>
class ElasticRingProblem< ELEMENT, TIMESTEPPER >

Ring problem.

Oscillating ring problem: Compare small-amplitude oscillations against analytical solution of the linearised equations.

Definition at line 75 of file lin_unsteady_ring.cc.

Constructor & Destructor Documentation

template<class ELEMENT , class TIMESTEPPER >
ElasticRingProblem< ELEMENT, TIMESTEPPER >::ElasticRingProblem ( const unsigned &  N,
const double &  L 
)

Constructor: Number of elements, length of domain, flag for setting Newmark IC directly or consistently.

Constructor for elastic ring problem.

Definition at line 132 of file lin_unsteady_ring.cc.

template<class ELEMENT , class TIMESTEPPER >
ElasticRingProblem< ELEMENT, TIMESTEPPER >::ElasticRingProblem ( const unsigned &  n_element)

Constructor: Number of elements.

Constructor for elastic ring problem.

Definition at line 162 of file unsteady_ring.cc.

References Global_Physical_Variables::H, Global_Physical_Variables::Lambda_sq, and Global_Physical_Variables::press_load().

Member Function Documentation

template<class ELEMENT, class TIMESTEPPER>
void ElasticRingProblem< ELEMENT, TIMESTEPPER >::actions_after_newton_solve ( )
inline

Update function is empty.

Definition at line 91 of file lin_unsteady_ring.cc.

template<class ELEMENT, class TIMESTEPPER>
void ElasticRingProblem< ELEMENT, TIMESTEPPER >::actions_after_newton_solve ( )
inline

Update function is empty.

Definition at line 117 of file unsteady_ring.cc.

template<class ELEMENT, class TIMESTEPPER>
void ElasticRingProblem< ELEMENT, TIMESTEPPER >::actions_before_newton_solve ( )
inline

Update function is empty.

Definition at line 94 of file lin_unsteady_ring.cc.

template<class ELEMENT, class TIMESTEPPER>
void ElasticRingProblem< ELEMENT, TIMESTEPPER >::actions_before_newton_solve ( )
inline

Update function is empty.

Definition at line 120 of file unsteady_ring.cc.

template<class ELEMENT , class TIMESTEPPER >
void ElasticRingProblem< ELEMENT, TIMESTEPPER >::doc_solution ( DocInfo &  doc_info)

Doc solution.

Document solution.

Definition at line 217 of file lin_unsteady_ring.cc.

template<class ELEMENT, class TIMESTEPPER>
void ElasticRingProblem< ELEMENT, TIMESTEPPER >::doc_solution ( DocInfo &  doc_info)

Doc solution.

template<class ELEMENT , class TIMESTEPPER >
void ElasticRingProblem< ELEMENT, TIMESTEPPER >::dump_it ( ofstream &  dump_file)

Dump problem-specific parameter values, then dump generic problem data.

Dump problem-specific parameter values, then dump generic problem data.

Definition at line 329 of file unsteady_ring.cc.

References Global_Physical_Variables::Pcos.

template<class ELEMENT, class TIMESTEPPER>
OneDLagrangianMesh<ELEMENT>* ElasticRingProblem< ELEMENT, TIMESTEPPER >::mesh_pt ( )
inline

Access function for the mesh.

Definition at line 85 of file lin_unsteady_ring.cc.

template<class ELEMENT, class TIMESTEPPER>
OneDLagrangianMesh<ELEMENT>* ElasticRingProblem< ELEMENT, TIMESTEPPER >::mesh_pt ( )
inline

Access function for the specific mesh.

Definition at line 111 of file unsteady_ring.cc.

template<class ELEMENT , class TIMESTEPPER >
void ElasticRingProblem< ELEMENT, TIMESTEPPER >::restart ( ifstream &  restart_file)

Read problem-specific parameter values, then recover generic problem data.

Read problem-specific parameter values, then recover generic problem data.

Definition at line 351 of file unsteady_ring.cc.

References Global_Physical_Variables::Pcos.

template<class ELEMENT , class TIMESTEPPER >
void ElasticRingProblem< ELEMENT, TIMESTEPPER >::set_initial_conditions ( )

Setup initial conditions.

Setup initial conditions – either restart from solution specified via command line or impulsive start.

Definition at line 384 of file unsteady_ring.cc.

template<class ELEMENT , class TIMESTEPPER >
void ElasticRingProblem< ELEMENT, TIMESTEPPER >::unsteady_run ( )

Do unsteady run.

Solver loop to perform unsteady run.

Label for output

Definition at line 324 of file lin_unsteady_ring.cc.

References Global_Physical_Variables::Consistent_newmark_ic, Global_Physical_Variables::Fixed_timestep_flag, and Global_Physical_Variables::Long_run_flag.

Referenced by main().

template<class ELEMENT, class TIMESTEPPER>
void ElasticRingProblem< ELEMENT, TIMESTEPPER >::unsteady_run ( )

Do unsteady run.

Member Data Documentation

template<class ELEMENT, class TIMESTEPPER>
ELEMENT* ElasticRingProblem< ELEMENT, TIMESTEPPER >::Displ_control_elem_pt
private

In which element are we applying displacement control? (here only used for doc of radius)

Definition at line 109 of file lin_unsteady_ring.cc.

template<class ELEMENT, class TIMESTEPPER>
SolidInitialCondition* ElasticRingProblem< ELEMENT, TIMESTEPPER >::IC_pt
private

Pointer to object that specifies the initial condition.

Definition at line 118 of file lin_unsteady_ring.cc.

template<class ELEMENT, class TIMESTEPPER>
double ElasticRingProblem< ELEMENT, TIMESTEPPER >::Length
private

Length of domain (in terms of the Lagrangian coordinates)

Definition at line 105 of file lin_unsteady_ring.cc.

template<class ELEMENT, class TIMESTEPPER>
bool ElasticRingProblem< ELEMENT, TIMESTEPPER >::Restart_flag
private

Restart flag specified via command line?

Definition at line 149 of file unsteady_ring.cc.

template<class ELEMENT, class TIMESTEPPER>
Vector<double> ElasticRingProblem< ELEMENT, TIMESTEPPER >::S_displ_control
private

At what local coordinate are we applying displacement control?

Definition at line 112 of file lin_unsteady_ring.cc.

template<class ELEMENT, class TIMESTEPPER>
ofstream ElasticRingProblem< ELEMENT, TIMESTEPPER >::Trace_file
private

Trace file for recording control data.

Definition at line 121 of file lin_unsteady_ring.cc.

template<class ELEMENT, class TIMESTEPPER>
GeomObject* ElasticRingProblem< ELEMENT, TIMESTEPPER >::Undef_geom_pt
private

Pointer to geometric object that represents the undeformed shape.

Definition at line 115 of file lin_unsteady_ring.cc.

template<class ELEMENT, class TIMESTEPPER>
unsigned ElasticRingProblem< ELEMENT, TIMESTEPPER >::Validation_run_flag
private

Flag for validation run: Default: 0 = no validation run.

Definition at line 146 of file unsteady_ring.cc.


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