spine_two_layer_interface_axisym.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 axisymmetric two fluid interface problem. More...
 

Variables

Vector< doubleGlobal_Physical_Variables::G (3) = 1.0
 Direction of gravity. More...
 

Function Documentation

◆ main()

int main ( int argc  ,
char argv[] 
)

Driver code for axisymmetric two fluid interface problem.

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

Maximum time

Duration of timestep

544 {
545  // Store command line arguments
546  CommandLineArgs::setup(argc,argv);
547 
548  // Compute the Womersley number
551 
553  double t_max = 1.2;
554 
556  const double dt = 0.005;
557 
558  // If we are doing validation run, use smaller number of timesteps
559  if(CommandLineArgs::Argc>1) { t_max = 0.01; }
560 
561  // Number of elements in r direction
562  const unsigned n_r = 12;
563 
564  // Number of elements in z direction in lower fluid (fluid 1)
565  const unsigned n_z1 = 12;
566 
567  // Number of elements in z direction in upper fluid (fluid 2)
568  const unsigned n_z2 = 12;
569 
570  // Width of domain
571  const double l_r = 1.0;
572 
573  // Height of lower fluid layer
574  const double h1 = 1.0;
575 
576  // Height of upper fluid layer
577  const double h2 = 1.0;
578 
579  // Set direction of gravity (vertically downwards)
583 
584  // Set up the spine test problem with AxisymmetricQCrouzeixRaviartElements,
585  // using the BDF<2> timestepper
587  BDF<2> >
588  problem(n_r,n_z1,n_z2,l_r,h1,h2);
589 
590  // Run the unsteady simulation
591  problem.unsteady_run(t_max,dt);
592 
593 } // 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.