Driver code for 2D Boussinesq convection problem with adaptivity.
590 problem.set_boundary_conditions(0.0);
599 ofstream trace(
"RESLT_ref_multimesh/trace.dat");
601 double E=0.0, Edot = 0.0;
605 trace <<
problem.time_pt()->time() <<
" "
606 <<
problem.nst_mesh_pt()->boundary_node_pt(1,8)->value(1) <<
" "
607 <<
E <<
" " << Edot << std::endl;
613 problem.assign_initial_values_impulsive(dt);
616 unsigned n_steps = 2000;
620 if(argc > 1) {n_steps = 5;}
624 unsigned n_refine = 0;
627 for(
unsigned i=0;
i<n_steps;++
i)
629 problem.unsteady_newton_solve(dt,n_refine,first);
635 if((argc > 1) && (
i==3)) {n_refine=1;}
638 if(
i > 700) {n_refine=1;}
642 trace <<
problem.time_pt()->time() <<
" "
643 <<
problem.nst_mesh_pt()->boundary_node_pt(1,8)->value(1) <<
" "
644 <<
E <<
" " << Edot << std::endl;
int i
Definition: BiCGSTAB_step_by_step.cpp:9
Definition: multimesh_ref_dd_convection.cc:84
Definition: my_boussinesq_elements.h:415
Definition: db_nst_external_elements.h:49
double E
Elastic modulus.
Definition: TwenteMeshGluing.cpp:68
Vector< double > Direction_of_gravity(2)
Gravity vector.
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213