steady_ring.cc File Reference
#include "generic.h"
#include "beam.h"
#include "meshes/one_d_lagrangian_mesh.h"

Classes

class  ElasticRingProblem< ELEMENT >
 Ring problem. More...
 

Namespaces

 Global_Physical_Variables
 Global variables.
 

Functions

void Global_Physical_Variables::press_load (const Vector< double > &xi, const Vector< double > &x, const Vector< double > &N, Vector< double > &load)
 Load function: Perturbation pressure to force non-axisymmetric deformation. More...
 
doubleGlobal_Physical_Variables::external_pressure ()
 Access function to value of external pressure. More...
 
int main ()
 Driver for ring test problem. More...
 

Variables

double Global_Physical_Variables::H =0.05
 Nondim thickness. More...
 
double Global_Physical_Variables::Xprescr = 1.0
 Prescribed position (only used for displacement control) More...
 
double Global_Physical_Variables::Pcos =0.0
 Perturbation pressure. More...
 
DataGlobal_Physical_Variables::Pext_data_pt =0
 Pointer to pressure load. More...
 

Function Documentation

◆ main()

int main ( )

Driver for ring test problem.

///////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////

457 {
458  // Number of elements
459  unsigned n_element = 13;
460 
461  // Displacement control?
462  bool displ_control=true;
463 
464  // Label for output
465  DocInfo doc_info;
466 
467  // Demonstrate how to use displacement control with already existing load Data
468  //----------------------------------------------------------------------------
469  {
470  bool load_data_already_exists=true;
471 
472  //Set up the problem
474  problem(n_element,displ_control,load_data_already_exists);
475 
476  // Output directory
477  doc_info.set_directory("RESLT_global");
478 
479  // Do static run
480  problem.parameter_study(doc_info);
481  }
482 
483  // Demonstrate how to use displacement control without existing load Data
484  //-----------------------------------------------------------------------
485  {
486  bool load_data_already_exists=false;
487 
488  //Set up the problem
490  problem(n_element,displ_control,load_data_already_exists);
491 
492  // Output directory
493  doc_info.set_directory("RESLT_no_global");
494 
495  // Reset counter
496  doc_info.number()=0;
497 
498  // Do static run
499  problem.parameter_study(doc_info);
500  }
501 
502 } // end of main
Ring problem.
Definition: steady_ring.cc:98
Definition: oomph_utilities.h:499
void set_directory(const std::string &directory)
Definition: oomph_utilities.cc:298
unsigned & number()
Number used (e.g.) for labeling output files.
Definition: oomph_utilities.h:554
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References oomph::DocInfo::number(), problem, and oomph::DocInfo::set_directory().