simple_shear.cc File Reference
#include "generic.h"
#include "solid.h"
#include "meshes/simple_cubic_mesh.template.h"

Classes

class  ElasticCubicMesh< ELEMENT >
 Simple cubic mesh upgraded to become a solid mesh. More...
 
class  SimpleShearProblem< ELEMENT >
 Boundary-driven elastic deformation of fish-shaped domain. More...
 

Namespaces

 Global_Physical_Variables
 Global variables.
 

Functions

void Global_Physical_Variables::body_force (const Vector< double > &xi, const double &t, Vector< double > &b)
 Body force vector: Vertically downwards with magnitude Gravity. More...
 
int main ()
 Driver for simple elastic problem. More...
 

Function Documentation

◆ main()

int main ( )

Driver for simple elastic problem.

366 {
367  //Initialise physical parameters
371 
372  for (unsigned i=0;i<2;i++)
373  {
374 
375  // Define a strain energy function: Generalised Mooney Rivlin
380 
381  // Define a constitutive law (based on strain energy function)
385 
386  {
387  //Set up the problem with pure displacement formulation
389  problem.run("RESLT");
390  }
391 
392  //Discontinuous pressure
393  {
394  //Set up the problem with pure displacement formulation
396  problem.run("RESLT_pres");
397  }
398 
399  /*{
400  //Set up the problem with pure displacement formulation
401  SimpleShearProblem<QPVDElementWithPressure<3> > problem(true);
402  problem.run("RESLT_pres_incomp");
403  }*/
404 
405 
406  {
407  //Set up the problem with pure displacement formulation
409  problem.run("RESLT_cont_pres");
410  }
411 
412  /*{
413  //Set up the problem with pure displacement formulation
414  SimpleShearProblem<QPVDElementWithContinuousPressure<3> > problem(true);
415  problem.run("RESLT_cont_pres_incomp");
416  }*/
417 
418 
419  }
420 
421 
422 }
int i
Definition: BiCGSTAB_step_by_step.cpp:9
Boundary-driven elastic deformation of fish-shaped domain.
Definition: refineable_simple_shear.cc:138
Definition: constitutive_laws.h:215
Definition: constitutive_laws.h:801
double E
Elastic modulus.
Definition: TwenteMeshGluing.cpp:68
double Nu
Poisson's ratio.
Definition: TwenteMeshGluing.cpp:71
ConstitutiveLaw * Constitutive_law_pt
Pointer to constitutive law.
Definition: TwenteMeshGluing.cpp:65
double C1
"Mooney Rivlin" coefficient for generalised Mooney Rivlin law
Definition: TwenteMeshGluing.cpp:74
StrainEnergyFunction * Strain_energy_function_pt
Pointer to strain energy function.
Definition: TwenteMeshGluing.cpp:62
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References Global_Physical_Variables::C1, Global_Physical_Variables::Constitutive_law_pt, Global_Physical_Variables::E, i, Global_Physical_Variables::Nu, problem, and Global_Physical_Variables::Strain_energy_function_pt.