marangoni_convection.cc File Reference

Classes

class  oomph::SpineLineMarangoniFluidInterfaceElement< 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

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.

737 {
738 
739  // Set the direction of gravity
742 
743  //Construct our problem
746 problem;
747 
748  // Apply the boundary condition at time zero
749  problem.set_boundary_conditions(0.0);
750 
751  //Perform a single steady Newton solve
752  problem.steady_newton_solve();
753 
754  //Document the solution
755  problem.doc_solution();
756 
757  //Now release the interface for real fun
758  //problem.unpin_surface();
759 
760  //Set the timestep
761  double dt = 0.1;
762 
763  //Initialise the value of the timestep and set initial values
764  //of previous time levels assuming an impulsive start.
765  problem.assign_initial_values_impulsive(dt);
766 
767  //Set the number of timesteps to our default value
768  unsigned n_steps = 200;
769 
770  //If we have a command line argument, perform fewer steps
771  //(used for self-test runs)
772  if(argc > 1) {n_steps = 5;}
773 
774  //Perform n_steps timesteps
775  for(unsigned i=0;i<n_steps;++i)
776  {
777  problem.unsteady_newton_solve(dt);
778  problem.doc_solution();
779  }
780 
781 } // end of main
int i
Definition: BiCGSTAB_step_by_step.cpp:9
Definition: mpi/multi_domain/boussinesq_convection/multi_domain_boussinesq_convection.cc:75
Definition: marangoni_convection.cc:63
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.