rayleigh_instability.cc File Reference

Classes

class  InterfaceProblem< ELEMENT, TIMESTEPPER >
 Single axisymmetric fluid interface problem in rectangular domain. More...
 

Namespaces

 Global_Physical_Variables
 Global variables.
 

Functions

int main (int argc, char *argv[])
 Driver code for single fluid axisymmetric horizontal interface problem. More...
 

Variables

double Global_Physical_Variables::ReSt = 5.0
 Womersley number. More...
 
double Global_Physical_Variables::Epsilon = 0.1
 Free surface cosine deform parameter. More...
 
ofstream Global_Physical_Variables::Pvd_file
 
Vector< doubleGlobal_Physical_Variables::G (3) = 1.0
 Direction of gravity. More...
 

Function Documentation

◆ main()

int main ( int argc  ,
char argv[] 
)

Driver code for single fluid axisymmetric horizontal interface problem.

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

Maximum time

Duration of timestep

498 {
499 
500  // Store command line arguments
501  CommandLineArgs::setup(argc,argv);
502 
504  double t_max = 1.8;
505 
507  const double dt = 0.05;
508 
509  // If we are doing validation run, use smaller number of timesteps
510  if(CommandLineArgs::Argc>1)
511  {
512  t_max = 0.1;
513  }
514 
515  // Number of elements in radial (r) direction
516  const unsigned n_r = 10;
517 
518  // Number of elements in axial (z) direction
519  const unsigned n_z = 10;
520 
521  // Width of domain
522  const double l_r = 1.0;
523 
524  // Height of fluid layer
525  const double h = 3.0*MathematicalConstants::Pi;
526 
527  // Set direction of gravity (vertically downwards)
531 
532  // Set up the spine test problem with AxisymmetricQCrouzeixRaviartElements,
533  // using the BDF<2> timestepper
535  problem(n_r,n_z,l_r,h);
536 
537  // Run the unsteady simulation
538  problem.unsteady_run(t_max,dt);
539 
540 } // End of main
Single axisymmetric fluid interface problem in rectangular domain.
Definition: rayleigh_instability.cc:87
double Pi
Definition: two_d_biharmonic.cc:235
void setup(Time *time_pt)
Create all GeomObjects needed to define the cylinder and the flag.
Definition: turek_flag_non_fsi.cc:277
Vector< double > G(3)
Direction of gravity.
Definition: spherical_shell_convection.cc:62
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, Global_Physical_Variables::G, BiharmonicTestFunctions2::Pi, problem, and Flag_definition::setup().