soluble_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

Vector< doubleGlobal_Physical_Variables::Tau (2, 1.0)
 
int main (int argc, char **argv)
 Driver code for 2D Boussinesq convection problem. More...
 

Variables

Vector< doubleGlobal_Physical_Variables::D (2, 1.0)
 Diffusivity (identically one from our non-dimensionalisation) More...
 
double Global_Physical_Variables::DD_s = 1000.0
 The ratio of bulk diffusion to surface diffusion. 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.

1200 {
1201  ofstream trace("RESLT/trace.dat");
1202 
1203  // Set the direction of gravity
1206 
1207  Global_Physical_Variables::D[1] = 0.01;
1208 
1209  //Construct our problem
1212 problem;
1213 
1214  // Apply the boundary condition at time zero
1215  problem.set_boundary_conditions(0.0);
1216 
1217  //Perform a single steady Newton solve
1218  problem.steady_newton_solve();
1219 
1220  //Document the solution
1221  problem.doc_solution(trace);
1222 
1223  //Now release the interface for real fun
1224  //problem.unpin_surface();
1225 
1226  //Set the timestep
1227  double dt = 0.1;
1228 
1229  //Initialise the value of the timestep and set initial values
1230  //of previous time levels assuming an impulsive start.
1231  problem.assign_initial_values_impulsive(dt);
1232 
1233  //Set the number of timesteps to our default value
1234  unsigned n_steps = 4000;
1235 
1236  //If we have a command line argument, perform fewer steps
1237  //(used for self-test runs)
1238  if(argc > 1) {n_steps = 5;}
1239 
1240  //Perform n_steps timesteps
1241  for(unsigned i=0;i<n_steps;++i)
1242  {
1243  problem.unsteady_newton_solve(dt);
1244  problem.doc_solution(trace);
1245  }
1246 
1247 } // 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 > D(2, 1.0)
Diffusivity (identically one from our non-dimensionalisation)
Vector< double > Direction_of_gravity(2)
Gravity vector.
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References Global_Physical_Variables::D, Global_Physical_Variables::Direction_of_gravity, i, and problem.