CG  Version 25
PenaltyWallFunction.h
Go to the documentation of this file.
1 #ifndef PENALTY_WALL_FUNCTION_H
2 #define PENALTY_WALL_FUNCTION_H
3 
4 #include "PenaltySlipWallBC.h"
5 
7 
8 // Penalty method based implementation of wall functions
9 // 120105: kkc initial implementation
10 
11 // These boundary conditions behave just like slip walls except that the normal derivatives of the
12 // tangential components are given by the shear stress computed using one of a variety of wall models.
13 
15 
16  public:
18  slipWall, // mostly for testing
24  };
25 
26  public:
27  PenaltyWallFunctionBC(const aString &nm);
28 
29  virtual ~PenaltyWallFunctionBC();
30 
31  virtual bool inputFromGI(GenericGraphicsInterface &gi);
32  virtual bool applyBC(Parameters &parameters,
33  const real & t, const real &dt,
34  realMappedGridFunction &u,
35  const int & grid,
36  int side0 /* = -1 */,
37  int axis0 /* = -1 */,
38  realMappedGridFunction *gridVelocity = 0);
39 
40  virtual void getShearStresses(const int &nd,
41  Parameters &parameters,
42  const real &distance,
43  const ArraySimpleFixed<real,3,1,1,1> &uavg,
44  const ArraySimpleFixed<real,3,1,1,1> tng[],
45  real tau[]);
46 
51 };
52 
53 #endif