3d_multimesh_ref_b_convect.cc File Reference

Classes

class  ElementCmp
 Function-type-object to perform comparison of elements. More...
 
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)
 

Variables

double Global_Physical_Variables::Reynolds =10.0
 Reynolds number. More...
 

Function Documentation

◆ main()

int main ( int argc  ,
char **  argv 
)

Driver code for 3D Boussinesq convection problem with adaptivity.

571 {
572 
573 
574 //Uncomment this to turn this into a parallel code
575 //#ifdef OOMPH_HAS_MPI
576 // // Set up MPI_Helpers
577 // MPI_Helpers::init(argc,argv);
578 // #endif
579 
580  // Set the direction of gravity
584 
585  // Create the problem with 3D twenty-seven-node refineable elements.
589 
590  // Distribute the problem (including set sources)
591 // #ifdef OOMPH_HAS_MPI
592 // DocInfo mesh_doc_info;
593 // bool report_stats=true;
594 // problem.distribute(mesh_doc_info,report_stats);
595 // #endif
596 
597  //Solve the problem with (up to) two levels of adaptation
598  //problem.switch_to_iterative_linear_solver();
599  problem.newton_solve();
600  //Document the solution
601  problem.doc_solution();
602 
603 
604 //#ifdef OOMPH_HAS_MPI
605 // // finalize MPI
606 // MPI_Helpers::finalize();
607 //#endif
608 
609 } // end of main
Definition: mpi/multi_domain/boussinesq_convection/multi_domain_ref_b_convection.cc:80
Definition: my_boussinesq_elements.h:415
Definition: my_boussinesq_elements.h:49
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.