eluting_sphere_adapt.cc File Reference

Classes

class  RefineableElutingSphereProblem< ELEMENT >
 

Namespaces

 Global_Physical_Variables
 Global variables.
 
 Wind_Function
 

Functions

void Wind_Function::get_wind (const Vector< double > &x, Vector< double > &wind)
 Wind. More...
 
int main ()
 Driver for RefineableElutingSphere test problem using a. More...
 

Function Documentation

◆ main()

int main ( )

Driver for RefineableElutingSphere test problem using a.

///////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////

266 {
267  // Label for output
268  DocInfo doc_info;
269 
270  // Set output directory
271  doc_info.set_directory("RESLT_adapt");
272 
273  // ---------------
274  // end of Set up doc info
275 
276  // Build the problem with QCrouzeixRaviartElements
279  problem;
280 
281  // Over-ride the maximum and minimum permitted errors
282  problem.mesh_pt()->max_permitted_error() = 1.0e-3; //Default = 1.0e-3
283  problem.mesh_pt()->min_permitted_error() = 1.0e-5; //Default = 1.0e-5
284 
285  // Over-ride the maximum and minimum permitted refinement levels
286  problem.mesh_pt()->max_refinement_level() = 4;//maximum_ref_level;
287  problem.mesh_pt()->min_refinement_level() = 1;//minimum_ref_level;
288 
289  //Set the boundary conditions
290  problem.set_boundary_conditions();
291 
292  //Set the maximum adaptation
293  unsigned max_adapt = 10;
294 
295  // Solve the problem
296  problem.steady_newton_solve(max_adapt);
297  problem.doc_solution(doc_info);
298 
299 
300 } // end_of_main
Definition: eluting_sphere_adapt.cc:69
Definition: oomph_utilities.h:499
void set_directory(const std::string &directory)
Definition: oomph_utilities.cc:298
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References problem, and oomph::DocInfo::set_directory().