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

Classes

class  ElasticBeamProblem
 Beam problem object. More...
 

Namespaces

 Global_Physical_Variables
 Global variables.
 

Functions

void Global_Physical_Variables::load (const Vector< double > &xi, const Vector< double > &x, const Vector< double > &N, Vector< double > &load)
 Load function: Apply a constant external pressure to the beam. More...
 
int main ()
 Driver for beam (string under tension) test problem. More...
 

Variables

double Global_Physical_Variables::Sigma0 =1.0e3
 2nd Piola Kirchhoff pre-stress More...
 

Function Documentation

◆ main()

int main ( )

Driver for beam (string under tension) test problem.

258 {
259 
260  // Set the non-dimensional thickness
262 
263  // Set the 2nd Piola Kirchhoff prestress
265 
266  // Set the length of domain
267  double L = 10.0;
268 
269  // Number of elements (choose an even number if you want the control point
270  // to be located at the centre of the beam)
271  unsigned n_element = 10;
272 
273  // Construst the problem
274  ElasticBeamProblem problem(n_element,L);
275 
276  // Check that we're ready to go:
277  cout << "\n\n\nProblem self-test ";
278  if (problem.self_test()==0)
279  {
280  cout << "passed: Problem can be solved." << std::endl;
281  }
282  else
283  {
284  throw OomphLibError("Self test failed",
287  }
288 
289  // Conduct parameter study
290  problem.parameter_study();
291 
292 } // end of main
MatrixXd L
Definition: LLT_example.cpp:6
Beam problem object.
Definition: tensioned_string.cc:64
Definition: oomph_definitions.h:222
double Sigma0
2nd Piola Kirchhoff pre-stress
Definition: tensioned_string.cc:46
double H
Nondim thickness.
Definition: steady_ring.cc:50
#define OOMPH_EXCEPTION_LOCATION
Definition: oomph_definitions.h:61
#define OOMPH_CURRENT_FUNCTION
Definition: oomph_definitions.h:86
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References Global_Physical_Variables::H, L, OOMPH_CURRENT_FUNCTION, OOMPH_EXCEPTION_LOCATION, problem, and Global_Physical_Variables::Sigma0.