inclined_plane.cc File Reference
#include <iostream>
#include <fstream>
#include <string>
#include <cmath>
#include "generic.h"
#include "navier_stokes.h"
#include "solid.h"
#include "fluid_interface.h"
#include "meshes/simple_rectangular_quadmesh.h"

Classes

class  InclinedPlaneProblem< ELEMENT, INTERFACE_ELEMENT >
 
class  SpineInclinedPlaneMesh< ELEMENT >
 Create a spine mesh for the problem. More...
 
class  SpineInclinedPlaneProblem< ELEMENT, TIMESTEPPER >
 
class  ElasticInclinedPlaneMesh< ELEMENT >
 Create an Elastic mesh for the problem. More...
 
class  ElasticInclinedPlaneProblem< ELEMENT, TIMESTEPPER >
 

Namespaces

 Global_Physical_Variables
 Global variables.
 

Macros

#define FLUID_ELEMENT   QTaylorHoodElement<2>
 

Functions

Vector< doubleGlobal_Physical_Variables::G (2, 0.0)
 The Vector direction of gravity, set in main() More...
 
void Global_Physical_Variables::wall_unit_normal_inlet_fct (const Vector< double > &x, Vector< double > &normal)
 Function that specifies the wall unit normal at the inlet. More...
 
void Global_Physical_Variables::wall_unit_normal_outlet_fct (const Vector< double > &x, Vector< double > &normal)
 Function that specified the wall unit normal at the outlet. More...
 
void Global_Physical_Variables::hydrostatic_pressure_outlet (const double &time, const Vector< double > &x, const Vector< double > &n, Vector< double > &traction)
 Function that prescribes the hydrostatic pressure field at the outlet. More...
 
void Global_Physical_Variables::hydrostatic_pressure_inlet (const double &time, const Vector< double > &x, const Vector< double > &n, Vector< double > &traction)
 Function that prescribes hydrostatic pressure field at the inlet. More...
 
int main (int argc, char **argv)
 

Variables

double Global_Physical_Variables::N_wave = 3
 Set the number of waves desired in the domain. More...
 
double Global_Physical_Variables::Inlet_Angle = 2.0*atan(1.0)
 The contact angle that is imposed at the inlet (pi) More...
 

Macro Definition Documentation

◆ FLUID_ELEMENT

#define FLUID_ELEMENT   QTaylorHoodElement<2>

Function Documentation

◆ main()

int main ( int argc  ,
char **  argv 
)
757 {
758  using namespace Global_Physical_Variables;
759 
760  //Set the constitutive law for the mesh deformation
762 
763 #ifdef CR_ELEMENT
764 #define FLUID_ELEMENT QCrouzeixRaviartElement<2>
765 #else
766 #define FLUID_ELEMENT QTaylorHoodElement<2>
767 #endif
768 
769  //Initialise physical parameters
770  //Scale Reynolds number to be independent of alpha.
771  Re = 4.0/sin(Alpha);
772 
773  //Set the direction of gravity
774  G[0] = sin(Alpha);
775  G[1] = -cos(Alpha);
776 
777  //The wall normal to the inlet is in the negative x direction
778  Wall_normal.resize(2);
779  Wall_normal[0] = -1.0;
780  Wall_normal[1] = 0.0;
781 
782  //Spine problem
783  {
784  //Create the problem
787 
788  //Solve the steady problem
789  problem.solve_steady();
790 
791  //Prepare the problem for timestepping
792  //(assume that it's been at the flat-film solution for all previous time)
793  double dt = 0.1;
794  problem.assign_initial_values_impulsive(dt);
795 
796  //Timestep it
797  problem.timestep(dt,2);
798  } //End of spine problem
799 
800 
801  //Elastic problem
802  {
803  //Create the problem
807 
808  //Solve the steady problem
809  problem.solve_steady();
810 
811  //Prepare the problem for timestepping
812  //(assume that it's been at the flat-film solution for all previous time)
813  double dt = 0.1;
814  problem.assign_initial_values_impulsive(dt);
815 
816  //Timestep it
817  problem.timestep(dt,2);
818  } //End of elastic problem
819 }
AnnoyingScalar cos(const AnnoyingScalar &x)
Definition: AnnoyingScalar.h:136
AnnoyingScalar sin(const AnnoyingScalar &x)
Definition: AnnoyingScalar.h:137
Definition: inclined_plane.cc:689
Definition: inclined_plane.cc:609
Definition: constitutive_laws.h:699
Definition: pseudosolid_node_update_elements.h:58
Global variables.
Definition: TwenteMeshGluing.cpp:60
double Nu
Poisson's ratio.
Definition: TwenteMeshGluing.cpp:71
ConstitutiveLaw * Constitutive_law_pt
Pointer to constitutive law.
Definition: TwenteMeshGluing.cpp:65
double Length
Length of the pipe.
Definition: pipe.cc:52
double Alpha
Scaling factor for wall thickness (to be used in an exercise)
Definition: unsteady_ring.cc:73
double Re
Reynolds number.
Definition: fibre.cc:55
Vector< double > Wall_normal
Direction of the wall normal vector.
Definition: axi_static_cap.cc:59
Vector< double > G(3)
Direction of gravity.
Definition: spherical_shell_convection.cc:62
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References TanhSolnForAdvectionDiffusion::Alpha, Constitutive::Constitutive_law_pt, cos(), G, Global_Physical_Variables::Length, Global_Physical_Variables::Nu, problem, GlobalPhysicalVariables::Re, sin(), and Global_Physical_Variables::Wall_normal.