spin_up_cyl.cc File Reference

Classes

class  SphericalSpinUpProblem< ELEMENT >
 SpinUp problem in a sphere. More...
 

Namespaces

 Global_Physical_Variables
 Global variables.
 
 Boundary_Items
 

Functions

void Boundary_Items::boundary_velocity (const double &time, const Vector< double > &x, double &u)
 
int main ()
 Driver for SphericalSpinUp test problem using a. More...
 

Function Documentation

◆ main()

int main ( )

Driver for SphericalSpinUp test problem using a.

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

477 {
478 
479  // Choose simulation interval and timestep
480  double dt=0.05;
481  unsigned nstep=3;
482 
483  // Doing QTaylorHoodElements
484  {
485 
486  // Build the problem with QTaylorHoodElements
488  problem;
489  cout << "Doing QTaylorHoodElement" << std::endl;
490 
491  //Refine uniformly a couple of times
492  for(unsigned i=0;i<3;i++) {problem.refine_uniformly();}
493 
494  problem.timestep(dt,nstep,"RESLT_TH");
495 
496  } // end of QTaylorHoodElements
497 
498 
499  // Doing QCrouzeixRaviartElements
500  {
501 
502  // Build the problem with QCrouzeixRaviartElements
504  problem;
505  cout << "Doing QCrouzeixRaviartElement" << std::endl;
506 
507  //Refine uniformly a couple of times
508  for(unsigned i=0;i<3;i++) {problem.refine_uniformly();}
509 
510  problem.timestep(dt,nstep,"RESLT_CR");
511 
512  } // end of QCrouzeixRaviartElements
513 
514 
515 } // end_of_main
int i
Definition: BiCGSTAB_step_by_step.cpp:9
SpinUp problem in a sphere.
Definition: spherical_navier_stokes/spin_up/spin_up.cc:85
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References i, and problem.