spine_channel2.cc File Reference
#include "generic.h"
#include "navier_stokes.h"
#include "meshes/channel_spine_mesh.h"

Classes

class  SpikedLine
 
class  SpikedChannelSpineFlowProblem< ELEMENT >
 Channel flow, through a non-uniform channel, using Spines. More...
 

Namespaces

 Global_Physical_Variables2
 Namespace for physical parameters.
 

Functions

int main ()
 Driver for SpikedChannelSpineFlow test problem. More...
 

Function Documentation

◆ main()

int main ( )

Driver for SpikedChannelSpineFlow test problem.

522 {
523  // Set output directory
524  DocInfo doc_info;
525  doc_info.set_directory("RESLT");
526  doc_info.number()=0;
527 
528  // Solve problem with Taylor Hood elements
529  //---------------------------------------
530  {
531  //Build problem
533  problem;
534 
535  // Solve the problem with automatic adaptation
536  problem.newton_solve();
537 
538  //Output solution
539  problem.doc_solution(doc_info);
540  // Step number
541  doc_info.number()++;
542 
543  } // end of Taylor Hood elements
544 
545 
546  // Solve problem with Crouzeix Raviart elements
547  //--------------------------------------------
548  {
549  // Build problem
551  problem;
552 
553  // Solve the problem with automatic adaptation
554  problem.newton_solve();
555 
556  //Output solution
557  problem.doc_solution(doc_info);
558  // Step number
559  doc_info.number()++;
560 
561  } // end of Crouzeix Raviart elements
562 
563 
564 } // end_of_main
Channel flow, through a non-uniform channel, using Spines.
Definition: spine_channel2.cc:333
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().