CG
Version 25
Main Page
Namespaces
Classes
Files
File List
File Members
cg.v25
ins
src
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
6
Parameters::BCModifier
*
createPenaltyWallFunctionBC
(
const
aString &name);
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
14
class
PenaltyWallFunctionBC
:
public
PenaltySlipWallBC
{
15
16
public
:
17
enum
WallFunctions
{
18
slipWall
,
// mostly for testing
19
logLaw
,
20
simpleLogLaw
,
21
wernerWengle
,
22
fixedUTau
,
23
numberOfWallFunctions
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
¶meters,
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
¶meters,
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
47
real
fixedWallDistance
,
linearLayerTopYPlus
;
48
WallFunctions
wallFunctionType
;
49
bool
includeArtificialDissipationInShearStress
;
50
bool
useFullVelocity
;
51
};
52
53
#endif
Generated on Fri Jan 4 2013 10:19:25 for CG by
1.8.3