unstructured_three_d_fluid.cc File Reference
#include "generic.h"
#include "constitutive.h"
#include "navier_stokes.h"
#include "meshes/tetgen_mesh.h"

Classes

class  UnstructuredFluidProblem< ELEMENT >
 Unstructured Navier-Stokes ALE Problem. More...
 

Namespaces

 Global_Parameters
 Namespace for global parameters.
 

Functions

void Global_Parameters::prescribed_inflow_traction (const double &t, const Vector< double > &x, const Vector< double > &n, Vector< double > &traction)
 Applied traction on fluid at the inflow boundary. More...
 
void Global_Parameters::prescribed_outflow_traction (const double &t, const Vector< double > &x, const Vector< double > &n, Vector< double > &traction)
 Applied traction on fluid at the inflow boundary. More...
 
int main (int argc, char **argv)
 Demonstrate how to solve an unstructured 3D fluids problem. More...
 

Function Documentation

◆ main()

int main ( int argc  ,
char **  argv 
)

Demonstrate how to solve an unstructured 3D fluids problem.

412 {
413  // Store command line arguments
414  CommandLineArgs::setup(argc,argv);
415 
416  // Label for output
417  DocInfo doc_info;
418 
419  // Parameter study
420  double Re_increment=100.0;
421  unsigned nstep=4;
422  if (CommandLineArgs::Argc==2)
423  {
424  std::cout << "Validation -- only doing two steps" << std::endl;
425  nstep=2;
426  }
427 
428 
429  //Taylor--Hood
430  {
431  // Output directory
432  doc_info.set_directory("RESLT_TH");
433 
434  //Set up the problem
436 
437  //Output initial guess
438  problem.doc_solution(doc_info);
439  doc_info.number()++;
440 
441  // Parameter study: Crank up the pressure drop along the vessel
442  for (unsigned istep=0;istep<nstep;istep++)
443  {
444  // Solve the problem
445  problem.newton_solve();
446 
447  //Output solution
448  problem.doc_solution(doc_info);
449  doc_info.number()++;
450 
451  // Bump up Reynolds number (equivalent to increasing the imposed pressure
452  // drop)
453  Global_Parameters::Re+=Re_increment;
454  }
455  }
456 
457  //Crouzeix Raviart
458  {
459  //Reset to default Reynolds number
460  Global_Parameters::Re = 100.0;
461 
462  //Reset doc info number
463  doc_info.number()=0;
464 
465  // Output directory
466  doc_info.set_directory("RESLT_CR");
467 
468  //Set up the problem
470 
471  //Output initial guess
472  problem.doc_solution(doc_info);
473  doc_info.number()++;
474 
475  // Parameter study: Crank up the pressure drop along the vessel
476  for (unsigned istep=0;istep<nstep;istep++)
477  {
478  // Solve the problem
479  problem.newton_solve();
480 
481  //Output solution
482  problem.doc_solution(doc_info);
483  doc_info.number()++;
484 
485  // Bump up Reynolds number (equivalent to increasing the imposed pressure
486  // drop)
487  Global_Parameters::Re+=Re_increment;
488  }
489  }
490 
491 } // end_of_main
Unstructured Navier-Stokes ALE Problem.
Definition: unstructured_adaptive_ALE.cc:390
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
void setup(Time *time_pt)
Create all GeomObjects needed to define the cylinder and the flag.
Definition: turek_flag_non_fsi.cc:277
double Re
reynolds number
Definition: adaptive_hopf.cc:54
int Argc
Number of arguments + 1.
Definition: oomph_utilities.cc:407
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References oomph::CommandLineArgs::Argc, oomph::DocInfo::number(), problem, Global_Parameters::Re, oomph::DocInfo::set_directory(), and Flag_definition::setup().