3d_rayleigh_instability_surfactant.cc File Reference

Classes

class  ElementCmp
 Function-type-object to perform comparison of elements. More...
 
class  oomph::AnnularSpineMesh< ELEMENT >
 
class  InterfaceProblem< ELEMENT, TIMESTEPPER >
 Single axisymmetric fluid interface problem in rectangular domain. More...
 

Namespaces

 Global_Physical_Variables
 Global variables.
 
 oomph
 DRAIG: Change all instances of (SPATIAL_DIM) to (DIM-1).
 

Functions

int main (int argc, char *argv[])
 

Variables

double Global_Physical_Variables::Film_Thickness = 0.2
 
Vector< doubleGlobal_Physical_Variables::G (3) = 1.0
 Direction of gravity. More...
 

Function Documentation

◆ main()

int main ( int argc  ,
char argv[] 
)

Driver code for unsteady two-layer fluid problem. If there are any command line arguments, we regard this as a validation run and perform only two steps.

554 {
555 
556  // Set physical parameters:
557 
558  //Set direction of gravity: Vertically downwards
562 
563  //Set the film thickness
565 
566  //Axial lngth of domain
567  double r_max = 1.0;
568  double r_min = r_max - h;
569 
570  const double pi = MathematicalConstants::Pi;
571 
573 
574  double l_y = pi/alpha;
575 
576  double theta_max = 0.5*pi;
577 
578  // Number of elements in r and theta direction
579  unsigned n_r = 4;
580 
581  unsigned n_theta = 4;
582 
583  // Number of elements in axial direction
584  unsigned n_y = 20;
585 
586 
587  {
588  //Set up the spine test problem
589  //The minimum values are all assumed to be zero.
591  problem(n_r,n_y,n_theta,r_min,r_max,l_y,theta_max);
592 
593  // Number of steps:
594  unsigned nstep;
595  if(argc > 1)
596  {
597  // Validation run: Just five steps
598  nstep=5;
599  }
600  else
601  {
602  // Full run otherwise
603  nstep=1000;
604  }
605 
606  // Run the unsteady simulation
607  problem.unsteady_run(nstep);
608  }
609 } // End of main
Single axisymmetric fluid interface problem in rectangular domain.
Definition: rayleigh_instability.cc:87
RealScalar alpha
Definition: level1_cplx_impl.h:151
double r_min
Definition: two_d_biharmonic.cc:237
double r_max
Definition: two_d_biharmonic.cc:238
double Pi
Definition: two_d_biharmonic.cc:235
double Film_Thickness
Definition: 3d_rayleigh_instability_surfactant.cc:54
double Alpha
Scaling factor for wall thickness (to be used in an exercise)
Definition: unsteady_ring.cc:73
Vector< double > G(3)
Direction of gravity.
Definition: spherical_shell_convection.cc:62
const Mdouble pi
Definition: ExtendedMath.h:23
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References alpha, Global_Physical_Variables::Alpha, Global_Physical_Variables::Film_Thickness, Global_Physical_Variables::G, constants::pi, BiharmonicTestFunctions2::Pi, problem, BiharmonicTestFunctions2::r_max, and BiharmonicTestFunctions2::r_min.