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

Classes

class  FiniteElementComp
 
class  WarpedLine
 Warped line in 2D space. More...
 
class  PrescribedBoundaryDisplacementProblem< ELEMENT >
 

Namespaces

 Global_Physical_Variables
 Global variables.
 

Functions

int main ()
 Driver code. More...
 

Variables

WarpedLine Global_Physical_Variables::Boundary_geom_object (0.0)
 GeomObject specifying the shape of the boundary: Initially it's flat. More...
 

Function Documentation

◆ main()

int main ( )

Driver code.

485 {
486 
487  //Set up the problem
489 
490  // Doc initial domain shape
491  problem.doc_solution();
492 
493  // Max. number of adaptations per solve
494  unsigned max_adapt=1;
495 
496  //Parameter incrementation
497  unsigned nstep=2;
498  for(unsigned i=0;i<nstep;i++)
499  {
500  // Increment imposed boundary displacement
502 
503  // Solve the problem with Newton's method, allowing
504  // up to max_adapt mesh adaptations after every solve.
505  problem.newton_solve(max_adapt);
506 
507  // Doc solution
508  problem.doc_solution();
509 
510  // For maximum stability: Reset the current nodal positions to be
511  // the "stress-free" ones -- this assignment means that the
512  // parameter study no longer corresponds to a physical experiment
513  // but is what we'd do if we wanted to use the solid solve
514  // to update a fluid mesh in an FSI problem, say.
515  problem.solid_mesh_pt()->set_lagrangian_nodal_coordinates();
516 
517  }
518 
519 } //end of main
int i
Definition: BiCGSTAB_step_by_step.cpp:9
Definition: mpi/distribution/prescribed_displ_lagr_mult/prescribed_displ_lagr_mult.cc:159
double & ampl()
Access to amplitude.
Definition: heated_linear_solid_contact_with_gravity.cc:2066
WarpedLine Boundary_geom_object(0.0)
GeomObject specifying the shape of the boundary: Initially it's flat.
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References WarpedLine::ampl(), Global_Physical_Variables::Boundary_geom_object, i, and problem.