navier_stokes/driven_cavity/driven_cavity.cc File Reference

Classes

class  RectangularDrivenCavityProblem< ELEMENT >
 Driven cavity problem in rectangular domain. More...
 

Namespaces

 Global_Physical_Variables
 Global variables.
 

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )

///////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////// Driver for RectangularDrivenCavity test problem – test drive with two different types of element.

243 {
244 
245  // Set up doc info
246  // ---------------
247 
248  // Label for output
249  DocInfo doc_info;
250 
251  // Set output directory
252  doc_info.set_directory("RESLT");
253 
254  // Step number
255  doc_info.number()=0;
256 
257  // ---------------
258  // end of Set up doc info
259 
260  // Doing QCrouzeixRaviartElements
261  {
262 
263  // Build the problem with QCrouzeixRaviartElements
265  cout << "Doing QCrouzeixRaviartElement<2>" << std::endl;
266 
267  // Solve the problem
268  problem.newton_solve();
269 
270  // Outpt the solution
271  problem.doc_solution(doc_info);
272 
273  // Step number
274  doc_info.number()++;
275 
276  } // end of QCrouzeixRaviartElements
277 
278  // Doing QTaylorHoodElements
279  {
280 
281  // Build the problem with QTaylorHoodElements
283  cout << "Doing QTaylorHoodElement<2>" << std::endl;
284 
285  // Solve the problem
286  problem.newton_solve();
287 
288  // Outpt the solution
289  problem.doc_solution(doc_info);
290 
291  // Step number
292  doc_info.number()++;
293 
294  } // end of QTaylorHoodElements
295 
296 
297 } // end_of_main
Driven cavity problem in rectangular domain.
Definition: linear_solvers/driven_cavity.cc:77
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
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

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