full_tube.cc File Reference
#include "generic.h"
#include "navier_stokes.h"
#include "meshes/tube_mesh.h"

Classes

class  MyCylinder
 
class  SteadyTubeProblem< ELEMENT >
 Entry flow problem in tapered tube domain. More...
 

Namespaces

 Global_Physical_Variables
 Global variables.
 

Functions

int main (int argc, char *argv[])
 Driver for 3D entry flow into a straight tube. More...
 

Function Documentation

◆ main()

int main ( int argc  ,
char argv[] 
)

Driver for 3D entry flow into a straight tube.

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

311 {
312  //The purpose of this code is to test that the position of nodes on
313  //curvilinear boundaries are correctly updated after nodes that were
314  //hanging become non-hanging.
315  unsigned max_adapt=1;
316  double max_error_target=0.02 , min_error_target=0.002;
317 
318 
319  // Set up doc info
320  DocInfo doc_info;
321 
322  // Do Taylor-Hood elements
323  //------------------------
324  {
325  // Set output directory
326  doc_info.set_directory("RESLT_TH");
327 
328  // Step number
329  doc_info.number()=0;
330 
331  // Build problem
333  problem(doc_info,min_error_target,max_error_target);
334 
335  cout << " Doing Taylor-Hood elements " << std::endl;
336 
337  for(unsigned i=0;i<2;i++)
338  {
339  // Solve the problem
340  problem.newton_solve(max_adapt);
341  // Doc solution after solving
342  problem.doc_solution();
343 
345  ++doc_info.number();
346  }
347  }
348 
349  exit(1);
350  // Do Crouzeix-Raviart elements
351  //------------------------
352  {
353  // Set output directory
354  doc_info.set_directory("RESLT_CR");
355 
356  // Step number
357  doc_info.number()=0;
358 
359  // Build problem
361  problem(doc_info,min_error_target,max_error_target);
362 
363  cout << " Doing Crouzeix-Raviart elements " << std::endl;
364 
365  for(unsigned i=0;i<2;i++)
366  {
367  // Solve the problem
368  problem.newton_solve(max_adapt);
369  // Doc solution after solving
370  problem.doc_solution();
371 
373  ++doc_info.number();
374  }
375  }
376 } // end_of_main
int i
Definition: BiCGSTAB_step_by_step.cpp:9
Entry flow problem in tapered tube domain.
Definition: full_tube.cc:95
Definition: oomph_utilities.h:499
void set_directory(const std::string &directory)
Definition: oomph_utilities.cc:298
unsigned & number()
Number used (e.g.) for labeling output files.
Definition: oomph_utilities.h:554
double Re
Reynolds number.
Definition: fibre.cc:55
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References i, oomph::DocInfo::number(), problem, Global_Physical_Variables::Re, and oomph::DocInfo::set_directory().