flow_past_cylinder.cc File Reference
#include "generic.h"
#include "navier_stokes.h"
#include "assert.h"

Classes

class  GeneralEllipse
 My own Ellipse class. More...
 
class  RectangleWithHoleDomain
 Rectangular domain with circular whole. More...
 
class  RectangleWithHoleMesh< ELEMENT >
 Domain-based mesh for rectangular mesh with circular hole. More...
 
class  RefineableRectangleWithHoleMesh< ELEMENT >
 
class  FlowAroundCylinderProblem< ELEMENT >
 Flow around a cylinder in rectangular domain. More...
 

Namespaces

 Global_Parameters
 Namespace for global parameters.
 

Functions

int main ()
 Driver. More...
 

Function Documentation

◆ main()

int main ( )

Driver.

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

1147 {
1148 
1149  // Length and height of domain
1150  double length=2.2/0.1;
1151  double height=0.41/0.1;
1152 
1153  //Create a new ellipse object as the central cylinder
1154  GeneralEllipse* cylinder_pt =
1155  new GeneralEllipse(0.2/0.1,0.2/0.1,0.05/0.1,0.05/0.1);
1156 
1157  // Create Problem
1159  <RefineableQCrouzeixRaviartElement<2> > problem(cylinder_pt,length,height);
1160 
1161  //Refine the problem a couple of times
1162  problem.refine_uniformly();
1163  problem.refine_uniformly();
1164 
1165  // Solve adaptively with up to max_adapt rounds of refinement
1166  unsigned max_adapt=5;
1167  problem.newton_solve(max_adapt);
1168 
1169  //Doc result
1170  ofstream outfile("soln.dat");
1171  problem.mesh_pt()->output(outfile,2);
1172  outfile.close();
1173 
1174 }
Flow around a cylinder in rectangular domain.
Definition: adaptive_hopf.cc:1042
My own Ellipse class.
Definition: adaptive_hopf.cc:80
double height(const double &x)
Height of domain.
Definition: simple_spine_channel.cc:429
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References Global_Physical_Variables::height(), and problem.