///////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////// Driver for 3D entry flow into a quarter tube. If there are any command line arguments, we regard this as a validation run and perform only a single adaptation
306 MPI_Helpers::init(argc,argv);
313 bool report_stats=
true;
315 mesh_doc_info.
number()=10;
322 double max_error_target,min_error_target;
332 max_error_target=0.005;
333 min_error_target=0.0005;
344 max_error_target=0.02;
345 min_error_target=0.002;
363 problem(doc_info,min_error_target,max_error_target);
365 cout <<
" Doing Taylor-Hood elements " << std::endl;
375 std::ifstream input_file;
376 std::ofstream output_file;
380 unsigned n_partition=
problem.mesh_pt()->nelement();
382 sprintf(
filename,
"three_d_entry_flow_1_partition.dat");
385 for (
unsigned e=0;
e<n_partition;
e++)
387 getline(input_file,input_string,
'\n');
388 element_partition[
e]=atoi(input_string.c_str());
392 problem.distribute(element_partition,mesh_doc_info,report_stats);
393 problem.check_halo_schemes(mesh_doc_info);
395 oomph_info <<
"---- Now solve TH after distribute ----" << std::endl;
399 problem.newton_solve(max_adapt);
417 problem(doc_info,min_error_target,max_error_target);
419 cout <<
" Doing Crouzeix-Raviart elements " << std::endl;
429 std::ifstream input_file;
430 std::ofstream output_file;
434 unsigned n_partition=
problem.mesh_pt()->nelement();
436 sprintf(
filename,
"three_d_entry_flow_2_partition.dat");
439 for (
unsigned e=0;
e<n_partition;
e++)
441 getline(input_file,input_string,
'\n');
442 element_partition[
e]=atoi(input_string.c_str());
446 problem.distribute(element_partition,mesh_doc_info,report_stats);
447 problem.check_halo_schemes(mesh_doc_info);
449 oomph_info <<
"---- Now solve CR after distribute ----" << std::endl;
453 problem.newton_solve(max_adapt);
460 MPI_Helpers::finalize();
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Entry flow problem in quarter tube domain.
Definition: mpi/distribution/three_d_entry_flow/three_d_entry_flow.cc:54
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
string filename
Definition: MergeRestartFiles.py:39
int Argc
Number of arguments + 1.
Definition: oomph_utilities.cc:407
std::string string(const unsigned &i)
Definition: oomph_definitions.cc:286
OomphInfo oomph_info
Definition: oomph_definitions.cc:319
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213