Skip to content

Commit ad3638b

Browse files
authored
Merge pull request #92 from su2code/bigfooted-patch-2
Update Markers-and-BC for wall function model
2 parents 8293320 + ce0e394 commit ad3638b

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

_docs_v7/Markers-and-BC.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ The term *Marker* refers to a named entity in your mesh file. Boundary condition
1313
- [Heat Transfer or Convection (no-slip) Wall](#heat-transfer-or-convection-no-slip-wall)
1414
- [Isothermal (no-slip) Wall](#isothermal-no-slip-wall)
1515
- [Farfield Boundary Condition](#farfield-boundary-condition)
16+
- [Turbulence Boundary Condition](#turbulence-boundary-condition)
17+
- [Wall functions](#wall-functions)
1618
- [Inlet Boundary Condition](#inlet-boundary-condition)
1719
- [Total Conditions](#total-conditions)
1820
- [Mass Flow Inlet](#mass-flow-inlet)
@@ -121,6 +123,40 @@ A marker can be defined as a Farfield boundary by addings its name to the `MARKE
121123
MARKER_FAR= (farfield)
122124
```
123125

126+
## Turbulence Boundary Condition ##
127+
128+
| Solver | Version |
129+
| --- | --- |
130+
| `RANS`, `INC_RANS`, | 7.3.0 |
131+
132+
The turbulence boundary conditions do not have a `MARKER_` keyword but can instead be set for inlet and freestream boundaries using the keywords:
133+
134+
For the SA turbulence model:
135+
```
136+
FREESTREAM_NU_FACTOR= 3
137+
```
138+
139+
For the SST turbulence model:
140+
```
141+
FREESTREAM_TURBULENCEINTENSITY= 0.05
142+
FREESTREAM_TURB2LAMVISCRATIO= 10
143+
```
144+
145+
### Wall functions ###
146+
Accurately resolving the turbulence close to walls requires very fine meshes and can be quite expensive. When the vertices of the first cell neighboring the wall have on average a normalized distance $$y^+ >1$$, wall functions can be used. For example to activate wall functions on the markers `wall1` and `wall2`, we write:
147+
```
148+
MARKER_WALL_FUNCTIONS=(wall1,STANDARD_WALL_FUNCTION,wall2,STANDARD_WALL_FUNCTION)
149+
```
150+
The wall functions will now be used automatically. all functions have 5 additional expert parameters:
151+
```
152+
WALLMODEL_KAPPA= 0.41
153+
WALLMODEL_B= 5.5
154+
WALLMODEL_MINYPLUS= 5.0
155+
WALLMODEL_MAXITER= 200
156+
WALLMODEL_RELFAC= 0.5
157+
```
158+
The constant `WALLMODEL_KAPPA` is the von Karman constant, and `WALLMODEL_B` is an additional constant describing the universal 'law of the wall'. The constants are supposed to be universal, and do not change. The setting `WALLMODEL_MINYPLUS= 5` will activate the wall model only when the local value of $$y^+$$ is higher than the value given (default: 5). Note that in principle, this implementation is valid for any $$y^+ < 100-500$$ and will also work correctly for very small values of $$y^+$$. the upper limit that can be used depends on (and increases with) the Reynolds number. The universal law of the wall is an implicit function and a Newton iterator is used to determine $$u^+(y^+)$$. The maximum number of iterations can be set by `WALLMODEL_MAXITER` and the relaxation factor can be set with `WALLMODEL_RELFAC`. When the Newton solver does not converge within the maximum number of iterations given, a warning message will appear during the computation. When these warning messages do not disappear, you might consider increasing `WALLMODEL_MAXITER` or decreasing `WALLMODEL_RELFAC`.
159+
124160
## Inlet Boundary Condition ##
125161
Inlet boundary conditions are set using the option `MARKER_INLET`.
126162

0 commit comments

Comments
 (0)