solid/airy_cantilever/airy_cantilever.cc File Reference
#include "generic.h"
#include "solid.h"
#include "constitutive.h"
#include "meshes/rectangular_quadmesh.h"

Classes

class  oomph::MySolidElement< ELEMENT >
 Wrapper class for solid element to modify the output. More...
 
class  oomph::FaceGeometry< MySolidElement< ELEMENT > >
 FaceGeometry of wrapped element is the same as the underlying element. More...
 
class  CantileverProblem< ELEMENT >
 Problem class for the cantilever "beam" structure. More...
 

Namespaces

 oomph
 DRAIG: Change all instances of (SPATIAL_DIM) to (DIM-1).
 
 Global_Physical_Variables
 Global variables.
 

Functions

void Global_Physical_Variables::constant_pressure (const Vector< double > &xi, const Vector< double > &x, const Vector< double > &n, Vector< double > &traction)
 Constant pressure load. More...
 
void Global_Physical_Variables::gravity (const double &time, const Vector< double > &xi, Vector< double > &b)
 Non-dimensional gravity as body force. More...
 
int main ()
 

Function Documentation

◆ main()

int main ( )

Driver for cantilever beam loaded by surface traction and/or gravity

601 {
602 
603  // Create generalised Hookean constitutive equations
607 
608  //Set up the problem
610 
611 
612  // Uncomment these as an exercise
613 
614  // CantileverProblem<MySolidElement<
615  // RefineableQPVDElementWithContinuousPressure<2> > > problem;
616 
617  // CantileverProblem<MySolidElement<
618  // RefineableQPVDElementWithPressure<2> > > problem;
619 
620  // Initial values for parameter values
623 
624  // Max. number of adaptations per solve
625  unsigned max_adapt=3;
626 
627  //Parameter incrementation
628  unsigned nstep=5;
629  double p_increment=1.0e-5;
630  for(unsigned i=0;i<nstep;i++)
631  {
632  // Increment pressure load
633  Global_Physical_Variables::P+=p_increment;
634 
635  // Solve the problem with Newton's method, allowing
636  // up to max_adapt mesh adaptations after every solve.
637  problem.newton_solve(max_adapt);
638 
639  // Doc solution
640  problem.doc_solution();
641 
642  }
643 
644 } //end of main
int i
Definition: BiCGSTAB_step_by_step.cpp:9
Problem class for the cantilever "beam" structure.
Definition: mpi/distribution/airy_cantilever/airy_cantilever2.cc:213
Definition: constitutive_laws.h:699
double E
Elastic modulus.
Definition: TwenteMeshGluing.cpp:68
double P
Uniform pressure.
Definition: TwenteMeshGluing.cpp:77
double Nu
Poisson's ratio.
Definition: TwenteMeshGluing.cpp:71
ConstitutiveLaw * Constitutive_law_pt
Pointer to constitutive law.
Definition: TwenteMeshGluing.cpp:65
double Gravity
Non-dim gravity.
Definition: meshing/quad_from_triangle_mesh/unstructured_two_d_solid.cc:214
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References Global_Physical_Variables::Constitutive_law_pt, Global_Physical_Variables::E, Global_Physical_Variables::Gravity, i, Global_Physical_Variables::Nu, Global_Physical_Variables::P, and problem.