elastic_single_layer.cc File Reference
#include "generic.h"
#include "navier_stokes.h"
#include "fluid_interface.h"
#include "constitutive.h"
#include "solid.h"
#include "meshes/rectangular_quadmesh.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 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

558 {
559  // Store command line arguments
560  CommandLineArgs::setup(argc,argv);
561 
562  // Compute the Womersley number
565 
567  double t_max = 0.6;
568 
570  const double dt = 0.0025;
571 
572  // If we are doing validation run, use smaller number of timesteps
573  if(CommandLineArgs::Argc>1) { t_max = 0.005; }
574 
575  // Number of elements in x direction
576  const unsigned n_x = 12;
577 
578  // Number of elements in y direction
579  const unsigned n_y = 12;
580 
581  // Width of domain
582  const double l_x = 1.0;
583 
584  // Height of fluid layer
585  const double h = 1.0;
586 
587  // Set direction of gravity (vertically downwards)
590 
591  // Set up the elastic test problem with QCrouzeixRaviartElements,
592  // using the BDF<2> timestepper
595  problem(n_x,n_y,l_x,h);
596 
597  // Run the unsteady simulation
598  problem.unsteady_run(t_max,dt);
599 
600 } // End of main
Single axisymmetric fluid interface problem in rectangular domain.
Definition: rayleigh_instability.cc:87
Definition: solid_elements.h:608
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.