surfactant.cc File Reference

Classes

class  oomph::SpineLineMarangoniSurfactantFluidInterfaceElement< ELEMENT >
 
class  ConvectionProblem< NST_ELEMENT, AD_ELEMENT >
 

Namespaces

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

Functions

int main (int argc, char **argv)
 Driver code for 2D Boussinesq convection problem. More...
 

Variables

double Global_Physical_Variables::Scaled_Bond = 0.0
 
double Global_Physical_Variables::Biot = 0.0
 Biot number. More...
 
double Global_Physical_Variables::Marangoni = 125.0
 Marangoni number. More...
 
double Global_Physical_Variables::Capillary = 0.0045
 Capillary number. More...
 
double Global_Physical_Variables::Beta = 100.0
 Surface Elasticity number. More...
 
double Global_Physical_Variables::Peclet_S = 1.0
 Surface Peclet number. More...
 
double Global_Physical_Variables::Peclet_St_S = 100.0
 \shorT Sufrace Peclet number multiplied by Strouhal number More...
 
Vector< doubleGlobal_Physical_Variables::Direction_of_gravity (2)
 Gravity vector. More...
 

Function Documentation

◆ main()

int main ( int argc  ,
char **  argv 
)

Driver code for 2D Boussinesq convection problem.

1069 {
1070  ofstream trace("RESLT/trace.dat");
1071 
1072  // Set the direction of gravity
1075 
1076  //Construct our problem
1079 problem;
1080 
1081  // Apply the boundary condition at time zero
1082  problem.set_boundary_conditions(0.0);
1083 
1084  //Perform a single steady Newton solve
1085  problem.steady_newton_solve();
1086 
1087  //Document the solution
1088  problem.doc_solution(trace);
1089 
1090  //Now release the interface for real fun
1091  //problem.unpin_surface();
1092 
1093  //Set the timestep
1094  double dt = 0.1;
1095 
1096  //Initialise the value of the timestep and set initial values
1097  //of previous time levels assuming an impulsive start.
1098  problem.assign_initial_values_impulsive(dt);
1099 
1100  //Set the number of timesteps to our default value
1101  unsigned n_steps = 1000;
1102 
1103  //If we have a command line argument, perform fewer steps
1104  //(used for self-test runs)
1105  if(argc > 1) {n_steps = 5;}
1106 
1107  //Perform n_steps timesteps
1108  for(unsigned i=0;i<n_steps;++i)
1109  {
1110  problem.unsteady_newton_solve(dt);
1111  problem.doc_solution(trace);
1112  }
1113 
1114 } // end of main
int i
Definition: BiCGSTAB_step_by_step.cpp:9
Definition: mpi/multi_domain/boussinesq_convection/multi_domain_boussinesq_convection.cc:75
Vector< double > Direction_of_gravity(2)
Gravity vector.
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References Global_Physical_Variables::Direction_of_gravity, i, and problem.