geom_object_element.cc File Reference

Classes

class  GeomObjectAsGeneralisedElementProblem
 

Functions

int main ()
 Driver. More...
 

Function Documentation

◆ main()

int main ( )

Driver.

///////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////

209 {
210 
211  // Set up the problem
213 
214  // Initial value for the load
215  problem.load()=-0.3;
216 
217  // Loop for different loads
218  //-------------------------
219 
220  // Number of steps
221  unsigned nstep=5;
222 
223  // Increment in load
224  double dp=0.6/double(nstep-1);
225 
226  for (unsigned istep=0;istep<nstep;istep++)
227  {
228  // Solve/doc
229  problem.newton_solve();
230  problem.doc_solution();
231 
232  //Increment counter for solutions
233  problem.doc_info().number()++;
234 
235  // Change load on ring
236  problem.load()+=dp;
237  }
238 
239 } // end of driver
Definition: geom_object_element.cc:53
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References problem.