Driver code for 2D Boussinesq convection problem.
1079 problem.set_boundary_conditions(0.0);
1082 problem.steady_newton_solve();
1088 ofstream trace(
"RESLT/trace.dat");
1090 double E=0.0, Edot = 0.0;
1093 problem.get_kinetic_energy(
E,Edot);
1094 trace <<
problem.time_pt()->time() <<
" "
1095 <<
problem.nst_mesh_pt()->boundary_node_pt(1,8)->value(1) <<
" "
1096 <<
E <<
" " << Edot << std::endl;
1102 problem.assign_initial_values_impulsive(dt);
1105 unsigned n_steps = 2000;
1109 if(argc > 1) {n_steps = 5;}
1112 for(
unsigned i=0;
i<n_steps;++
i)
1114 problem.unsteady_newton_solve(dt);
1118 problem.get_kinetic_energy(
E,Edot);
1119 trace <<
problem.time_pt()->time() <<
" "
1120 <<
problem.nst_mesh_pt()->boundary_node_pt(1,8)->value(1) <<
" "
1121 <<
E <<
" " << Edot << std::endl;
int i
Definition: BiCGSTAB_step_by_step.cpp:9
Definition: multimesh_dd_convection.cc:647
Definition: multimesh_dd_convection.cc:247
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