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

Classes

class  NavierStokesProblem< ELEMENT >
 Entry flow problem in quarter tube domain. More...
 

Namespaces

 Global_Physical_Variables
 Global variables.
 

Functions

int main (int argc, char *argv[])
 3D Navier Stokes on an unstructured mesh More...
 

Function Documentation

◆ main()

int main ( int argc  ,
char argv[] 
)

3D Navier Stokes on an unstructured mesh

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

236 {
237 
238  // Store command line arguments
239  CommandLineArgs::setup(argc,argv);
240 
241  // Check number of command line arguments: Need exactly three.
242  if (argc!=4)
243  {
244  std::string error_message =
245  "Wrong number of command line arguments.\n";
246  error_message +=
247  "Must specify the following file names \n";
248  error_message +=
249  "filename.node then filename.ele then filename.face\n";
250 
251  throw OomphLibError(error_message,
254  }
255 
256  // Convert arguments to strings that specify the input file names
257  string node_file_name(argv[1]);
258  string element_file_name(argv[2]);
259  string face_file_name(argv[3]);
260 
261  // Set up doc info
262  DocInfo doc_info;
263 
264  // Set output directory
265  doc_info.set_directory("RESLT");
266 
267  // Build problem
269  problem(doc_info,node_file_name,element_file_name,face_file_name);
270 
271  // Solve the problem
272  problem.newton_solve();
273 
274 
275 } // end_of_main
Entry flow problem in quarter tube domain.
Definition: mesh_from_tetgen_navier_stokes.cc:56
Definition: oomph_utilities.h:499
void set_directory(const std::string &directory)
Definition: oomph_utilities.cc:298
Definition: oomph_definitions.h:222
void setup(Time *time_pt)
Create all GeomObjects needed to define the cylinder and the flag.
Definition: turek_flag_non_fsi.cc:277
std::string string(const unsigned &i)
Definition: oomph_definitions.cc:286
#define OOMPH_EXCEPTION_LOCATION
Definition: oomph_definitions.h:61
#define OOMPH_CURRENT_FUNCTION
Definition: oomph_definitions.h:86
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References OOMPH_CURRENT_FUNCTION, OOMPH_EXCEPTION_LOCATION, problem, oomph::DocInfo::set_directory(), Flag_definition::setup(), and oomph::Global_string_for_annotation::string().