unstructured_three_d_solid/unstructured_three_d_solid.cc File Reference
#include "generic.h"
#include "solid.h"
#include "constitutive.h"
#include "meshes/tetgen_mesh.h"

Classes

class  MySolidTetgenMesh< ELEMENT >
 Tetgen-based mesh upgraded to become a solid mesh. More...
 
class  UnstructuredSolidProblem< ELEMENT, MESH >
 Unstructured solid problem. More...
 

Namespaces

 Global_Parameters
 Namespace for global parameters.
 

Functions

void Global_Parameters::gravity (const double &time, const Vector< double > &xi, Vector< double > &b)
 Non-dimensional gravity as body force. More...
 
void Global_Parameters::constant_pressure (const Vector< double > &xi, const Vector< double > &x, const Vector< double > &n, Vector< double > &traction)
 
int main (int argc, char **argv)
 Demonstrate how to solve an unstructured 3D solid problem. More...
 

Function Documentation

◆ main()

int main ( int argc  ,
char **  argv 
)

Demonstrate how to solve an unstructured 3D solid problem.

381 {
382  // Store command line arguments
383  CommandLineArgs::setup(argc,argv);
384 
385  // Label for output
386  DocInfo doc_info;
387 
388  // Output directory
389  doc_info.set_directory("RESLT");
390 
391  //Set up the problem
393 
394  //Output initial configuration
395  problem.doc_solution(doc_info);
396  doc_info.number()++;
397 
398  // Parameter study
400  double g_increment=1.0e-3;
401  double p_increment=1.0e-2;
402 
403  unsigned nstep=6;
404  if (CommandLineArgs::Argc!=1)
405  {
406  std::cout << "Validation -- only doing two steps" << std::endl;
407  nstep=2;
408  }
409 
410  // Do the parameter study
411  for (unsigned istep=0;istep<nstep;istep++)
412  {
413  // Solve the problem
414  problem.newton_solve();
415 
416  //Output solution
417  problem.doc_solution(doc_info);
418  doc_info.number()++;
419 
420  // Bump up load
421  Global_Parameters::Gravity+=g_increment;
422  Global_Parameters::P+=p_increment;
423 
424  }
425 
426 } // end main
Unstructured solid problem.
Definition: adaptive_unstructured_two_d_solid.cc:117
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
void setup(Time *time_pt)
Create all GeomObjects needed to define the cylinder and the flag.
Definition: turek_flag_non_fsi.cc:277
double P
Uniform pressure.
Definition: unstructured_acoustic_fsi.cc:145
double Gravity
Non-dim gravity (default assignment for FSI1 test case)
Definition: interaction/turek_flag/turek_flag.cc:106
int Argc
Number of arguments + 1.
Definition: oomph_utilities.cc:407
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References oomph::CommandLineArgs::Argc, Global_Parameters::Gravity, oomph::DocInfo::number(), Global_Parameters::P, problem, oomph::DocInfo::set_directory(), and Flag_definition::setup().