axisym_navier_stokes/spin_up/spin_up.cc File Reference

Classes

class  RotatingCylinderProblem< ELEMENT, TIMESTEPPER >
 

Namespaces

 Global_Physical_Variables
 Global variables.
 

Functions

int main (int argc, char *argv[])
 Driver code for axisymmetric spin-up problem. More...
 

Function Documentation

◆ main()

int main ( int argc  ,
char argv[] 
)

Driver code for axisymmetric spin-up problem.

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

Maximum time

Duration of timestep

428 {
429  // Store command line arguments
430  CommandLineArgs::setup(argc,argv);
431 
433  double t_max = 1.0;
434 
436  const double dt = 0.01;
437 
438  // If we are doing validation run, use smaller number of timesteps
439  if(CommandLineArgs::Argc>1) { t_max = 0.02; }
440 
441  // Number of elements in radial (r) direction
442  const unsigned n_r = 2;
443 
444  // Number of elements in axial (z) direction
445  const unsigned n_z = 2;
446 
447  // Length in radial (r) direction
448  const double l_r = 1.0;
449 
450  // Length in axial (z) direction
451  const double l_z = 1.4;
452 
453  // -----------------------------------------
454  // RefineableAxisymmetricQTaylorHoodElements
455  // -----------------------------------------
456  {
457  cout << "Doing RefineableAxisymmetricQTaylorHoodElement" << std::endl;
458 
459  // Build the problem with RefineableAxisymmetricQTaylorHoodElements
462  problem(n_r,n_z,l_r,l_z);
463 
464  // Solve the problem and output the solution
465  problem.unsteady_run(t_max,dt,"RESLT_TH");
466  }
467 
468  // ----------------------------------------------
469  // RefineableAxisymmetricQCrouzeixRaviartElements
470  // ----------------------------------------------
471  {
472  cout << "Doing RefineableAxisymmetricQCrouzeixRaviartElement" << std::endl;
473 
474  // Build the problem with RefineableAxisymmetricQCrouzeixRaviartElements
477  problem(n_r,n_z,l_r,l_z);
478 
479  // Solve the problem and output the solution
480  problem.unsteady_run(t_max,dt,"RESLT_CR");
481  }
482 
483 } // End of main
Definition: axisym_navier_stokes/spin_up/spin_up.cc:72
Definition: refineable_axisym_navier_stokes_elements.h:765
Definition: refineable_axisym_navier_stokes_elements.h:407
void setup(Time *time_pt)
Create all GeomObjects needed to define the cylinder and the flag.
Definition: turek_flag_non_fsi.cc:277
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, problem, and Flag_definition::setup().