spine_single_layer.cc File Reference

Classes

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

Namespaces

 Global_Physical_Variables
 Global variables.
 

Functions

Vector< doubleGlobal_Physical_Variables::G (2)
 Direction of gravity. More...
 
int main (int argc, char *argv[])
 Driver code for two-dimensional single fluid free surface problem. More...
 

Function Documentation

◆ main()

int main ( int argc  ,
char argv[] 
)

Driver code for two-dimensional single fluid free surface problem.

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

Maximum time

Duration of timestep

503 {
504  // Store command line arguments
505  CommandLineArgs::setup(argc,argv);
506 
507  // Compute the Womersley number
510 
512  double t_max = 0.6;
513 
515  const double dt = 0.0025;
516 
517  // If we are doing validation run, use smaller number of timesteps
518  if(CommandLineArgs::Argc>1) { t_max = 0.005; }
519 
520  // Number of elements in x direction
521  const unsigned n_x = 12;
522 
523  // Number of elements in y direction
524  const unsigned n_y = 12;
525 
526  // Width of domain
527  const double l_x = 1.0;
528 
529  // Height of fluid layer
530  const double h = 1.0;
531 
532  // Set direction of gravity (vertically downwards)
535 
536  // Set up the spine test problem with QCrouzeixRaviartElements,
537  // using the BDF<2> timestepper
539  problem(n_x,n_y,l_x,h);
540 
541  // Run the unsteady simulation
542  problem.unsteady_run(t_max,dt);
543 
544 } // End of main
Single axisymmetric fluid interface problem in rectangular domain.
Definition: rayleigh_instability.cc:87
void setup(Time *time_pt)
Create all GeomObjects needed to define the cylinder and the flag.
Definition: turek_flag_non_fsi.cc:277
double ReSt
Womersley number.
Definition: rayleigh_instability.cc:56
double St
Strouhal number.
Definition: elastic_two_layer_interface_axisym.cc:66
double Re
Reynolds number.
Definition: fibre.cc:55
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, problem, Global_Physical_Variables::Re, Global_Physical_Variables::ReSt, Flag_definition::setup(), and Global_Physical_Variables::St.