3d_ref_b_convect.cc File Reference
#include "generic.h"
#include "advection_diffusion.h"
#include "navier_stokes.h"
#include "meshes/simple_cubic_mesh.h"

Classes

class  ElementCmp
 Function-type-object to perform comparison of elements. More...
 
class  BoussinesqPreconditioner
 
class  RefineableBuoyantQCrouzeixRaviartElement< DIM >
 
class  RefineableConvectionProblem< NST_ELEMENT, AD_ELEMENT >
 

Namespaces

 Global_Physical_Variables
 Global variables.
 

Functions

Vector< doubleGlobal_Physical_Variables::Direction_of_gravity (3)
 Gravity vector. More...
 
int main (int argc, char **argv)
 

Function Documentation

◆ main()

int main ( int argc  ,
char **  argv 
)

Driver code for 3D Boussinesq convection problem with adaptivity.

1719 {
1720  //Uncomment for a parallel version
1721 //#ifdef OOMPH_HAS_MPI
1722 // // Set up MPI_Helpers
1723 // MPI_Helpers::init(argc,argv);
1724 //#endif
1725 
1726  // Set the direction of gravity
1730 
1731  // Create the problem with 3D twenty-seven-node refineable elements.
1734 
1735  //Solve the problem with (up to) two levels of adaptation
1736  problem.newton_solve();
1737 
1738  //Document the solution
1739  problem.doc_solution();
1740 
1741 //#ifdef OOMPH_HAS_MPI
1742 // // finalize MPI
1743 // MPI_Helpers::finalize();
1744 //#endif
1745 } // end of main
Definition: mpi/multi_domain/boussinesq_convection/multi_domain_ref_b_convection.cc:80
Definition: boussinesq_elements.h:803
Vector< double > Direction_of_gravity(2)
Gravity vector.
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References oomph::Global_Physical_Variables::Direction_of_gravity, and problem.