single_layer_free_surface_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 single fluid axisymmetric 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 single fluid axisymmetric interface problem.

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

Maximum time

Duration of timestep

453 {
454 
455  // Store command line arguments
456  CommandLineArgs::setup(argc,argv);
457 
459  double t_max = 0.8;
460 
462  const double dt = 0.005;
463 
464  // If we are doing validation run, use smaller number of timesteps
465  if(CommandLineArgs::Argc>1) { t_max = 0.01; }
466 
467  // Number of elements in radial (r) direction
468  const unsigned n_r = 16;
469 
470  // Number of elements in axial (z) direction
471  const unsigned n_z = 12;
472 
473  // Width of domain
474  const double l_r = 1.0;
475 
476  // Height of fluid layer
477  const double h = 1.0;
478 
479  // Set direction of gravity (vertically downwards)
483 
484  // Set up the spine test problem with AxisymmetricQCrouzeixRaviartElements,
485  // using the BDF<2> timestepper
487  problem(n_r,n_z,l_r,h);
488 
489  // Run the unsteady simulation
490  problem.unsteady_run(t_max,dt);
491 
492 } // 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
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, and Flag_definition::setup().