elastic_two_layer_interface_axisym.cc File Reference
#include "generic.h"
#include "axisym_navier_stokes.h"
#include "navier_stokes.h"
#include "fluid_interface.h"
#include "constitutive.h"
#include "solid.h"
#include "oomph_crbond_bessel.h"
#include "meshes/rectangular_quadmesh.h"

Classes

class  ElasticRefineableTwoLayerMesh< ELEMENT >
 
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

double Global_Physical_Variables::St = 1.0
 Strouhal number. More...
 
double Global_Physical_Variables::Viscosity_Ratio = 0.1
 
double Global_Physical_Variables::Density_Ratio = 0.5
 
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

836 {
837  // Store command line arguments
838  CommandLineArgs::setup(argc,argv);
839 
840  // -----------------------------------------------------------------
841  // Define possible command line arguments and parse the ones that
842  // were actually specified
843  // -----------------------------------------------------------------
844 
845  // Are we performing a validation run?
847 
848  // Parse command line
850 
851  // Doc what has actually been specified on the command line
853 
854  // Check that definition of Womersley number is consistent with those
855  // of the Reynolds and Strouhal numbers
858  {
859  std::ostringstream error_stream;
860  error_stream << "Definition of Global_Physical_Variables::ReSt is "
861  << "inconsistant with those\n"
862  << "of Global_Physical_Variables::Re and "
863  << "Global_Physical_Variables::St." << std::endl;
864  throw OomphLibError(error_stream.str(),
866  }
867 
869  double t_max = 1.2;
870 
872  const double dt = 0.005;
873 
874  // If we are doing validation run, use smaller number of timesteps
876  {
877  t_max = 0.01;
878  }
879 
880  // Set direction of gravity (vertically downwards)
884 
885  // Set up the elastic test problem with AxisymmetricQCrouzeixRaviartElements,
886  // using the BDF<2> timestepper
890 
891  // Run the unsteady simulation
892  problem.unsteady_run(t_max,dt);
893 
894 } // End of main
Single axisymmetric fluid interface problem in rectangular domain.
Definition: rayleigh_instability.cc:87
Definition: oomph_definitions.h:222
Definition: refineable_axisym_navier_stokes_elements.h:765
Refineable version of the PseudoSolidNodeUpdateELement.
Definition: pseudosolid_node_update_elements.h:585
Class for refineable QPVDElement elements.
Definition: refineable_solid_elements.h:181
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
bool command_line_flag_has_been_set(const std::string &flag)
Definition: oomph_utilities.cc:501
void specify_command_line_flag(const std::string &command_line_flag, const std::string &doc)
Specify possible argument-free command line flag.
Definition: oomph_utilities.cc:451
void parse_and_assign(int argc, char *argv[], const bool &throw_on_unrecognised_args)
Definition: oomph_utilities.cc:760
void doc_specified_flags()
Document specified command line flags.
Definition: oomph_utilities.cc:610
#define OOMPH_EXCEPTION_LOCATION
Definition: oomph_definitions.h:61
#define OOMPH_CURRENT_FUNCTION
Definition: oomph_definitions.h:86
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References oomph::CommandLineArgs::command_line_flag_has_been_set(), oomph::CommandLineArgs::doc_specified_flags(), Global_Physical_Variables::G, OOMPH_CURRENT_FUNCTION, OOMPH_EXCEPTION_LOCATION, oomph::CommandLineArgs::parse_and_assign(), problem, Global_Physical_Variables::Re, Global_Physical_Variables::ReSt, Flag_definition::setup(), oomph::CommandLineArgs::specify_command_line_flag(), and Global_Physical_Variables::St.