multi_physics/boussinesq_convection/multi_domain_ref_b_convection.cc File Reference
#include "generic.h"
#include "advection_diffusion.h"
#include "navier_stokes.h"
#include "multi_physics.h"
#include "meshes/rectangular_quadmesh.h"

Classes

class  RefineableConvectionProblem< NST_ELEMENT, AD_ELEMENT >
 

Namespaces

 Global_Physical_Variables
 Global variables.
 

Functions

int main ()
 

Variables

Vector< doubleGlobal_Physical_Variables::Direction_of_gravity (2)
 Gravity vector. More...
 

Function Documentation

◆ main()

int main ( )

Driver code for 2D Boussinesq convection problem with adaptivity.

465 {
466 
467 
468  // Set the direction of gravity
471 
472  // Create the problem with 2D nine-node refineable elements.
480  > problem;
481 
482  // Apply a perturbation to the upper boundary condition to
483  // force the solution into the symmetry-broken state.
484  problem.enable_imperfection();
485 
486  //Solve the problem with (up to) two levels of adaptation
487  problem.newton_solve(2);
488 
489  //Document the solution
490  problem.doc_solution();
491 
492  // Make the boundary conditions perfect and solve again.
493  // Now the slightly perturbed symmetry broken state computed
494  // above is used as the initial condition and the Newton solver
495  // converges to the symmetry broken solution, even without
496  // the perturbation
497  problem.disable_imperfection();
498  problem.newton_solve(2);
499  problem.doc_solution();
500 
501 } // end of main
Definition: mpi/multi_domain/boussinesq_convection/multi_domain_ref_b_convection.cc:80
Definition: multi_domain_boussinesq_elements.h:378
Definition: multi_domain_boussinesq_elements.h:66
Definition: refineable_advection_diffusion_elements.h:355
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.