elastic_two_layer_interface.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  ElasticRefineableTwoLayerMesh< ELEMENT >
 
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

811 {
812  // Store command line arguments
813  CommandLineArgs::setup(argc,argv);
814 
815  // -----------------------------------------------------------------
816  // Define possible command line arguments and parse the ones that
817  // were actually specified
818  // -----------------------------------------------------------------
819 
820  // Are we performing a validation run?
822 
823  // Parse command line
825 
826  // Doc what has actually been specified on the command line
828 
829  // Check that definition of Womersley number is consistent with those
830  // of the Reynolds and Strouhal numbers
833  {
834  std::ostringstream error_stream;
835  error_stream << "Definition of Global_Physical_Variables::ReSt is "
836  << "inconsistant with those\n"
837  << "of Global_Physical_Variables::Re and "
838  << "Global_Physical_Variables::St." << std::endl;
839  throw OomphLibError(error_stream.str(),
841  }
842 
844  double t_max = 0.6;
845 
847  const double dt = 0.0025;
848 
849  // If we are doing validation run, use smaller number of timesteps
851  {
852  t_max = 0.005;
853  }
854 
855  // Set direction of gravity (vertically downwards)
858 
859  // Set up the elastic test problem with QCrouzeixRaviartElements,
860  // using the BDF<2> timestepper
863  problem;
864 
865  // Run the unsteady simulation
866  problem.unsteady_run(t_max,dt);
867 
868 } // End of main
Single axisymmetric fluid interface problem in rectangular domain.
Definition: rayleigh_instability.cc:87
Definition: oomph_definitions.h:222
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.