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

Classes

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.

301 {
302 
303  //Set up the problem
305 
306  // Doc initial domain shape
307  problem.doc_solution();
308 
309  // Max. number of adaptations per solve
310  unsigned max_adapt=1;
311 
312  //Parameter incrementation
313  unsigned nstep=2; // 16;
314  for(unsigned i=0;i<nstep;i++)
315  {
316  // Increment imposed boundary displacement
318 
319  // Solve the problem with Newton's method, allowing
320  // up to max_adapt mesh adaptations after every solve.
321  problem.newton_solve(max_adapt);
322 
323  // Doc solution
324  problem.doc_solution();
325 
326  // For maximum stability: Reset the current nodal positions to be
327  // the "stress-free" ones -- this assignment means that the
328  // parameter study no longer corresponds to a physical experiment
329  // but is what we'd do if we wanted to use the solid solve
330  // to update a fluid mesh in an FSI problem, say.
331  problem.solid_mesh_pt()->set_lagrangian_nodal_coordinates();
332 
333  }
334 
335 } //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.