spine_two_layer_interface.cc File Reference
#include "generic.h"
#include "navier_stokes.h"
#include "fluid_interface.h"
#include "meshes/two_layer_spine_mesh.h"

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

Function Documentation

◆ main()

int main ( int argc  ,
char argv[] 
)

Driver code for two-dimensional two fluid interface problem.

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

Maximum time

Duration of timestep

526 {
527  // Store command line arguments
528  CommandLineArgs::setup(argc,argv);
529 
530  // Compute the Womersley number
533 
535  double t_max = 0.6;
536 
538  const double dt = 0.0025;
539 
540  // If we are doing validation run, use smaller number of timesteps
541  if(CommandLineArgs::Argc>1) { t_max = 0.005; }
542 
543  // Number of elements in x direction
544  const unsigned n_x = 12;
545 
546  // Number of elements in y direction in lower fluid (fluid 1)
547  const unsigned n_y1 = 12;
548 
549  // Number of elements in y direction in upper fluid (fluid 2)
550  const unsigned n_y2 = 12;
551 
552  // Width of domain
553  const double l_x = 1.0;
554 
555  // Height of lower fluid layer
556  const double h1 = 1.0;
557 
558  // Height of upper fluid layer
559  const double h2 = 1.0;
560 
561  // Set direction of gravity (vertically downwards)
564 
565  // Set up the spine test problem with QCrouzeixRaviartElements,
566  // using the BDF<2> timestepper
568  problem(n_x,n_y1,n_y2,l_x,h1,h2);
569 
570  // Run the unsteady simulation
571  problem.unsteady_run(t_max,dt);
572 
573 } // 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.