Skip to main content

Periodic hill

Overview

Case description

Mesh

  • 3D structured mesh created using blockMesh

  • hills described by the function

    y(x)={min(1,a1+b1x+c1x2+d1x3)0x<9,a2+b2x+c2x2+d2x39x<14,a3+b3x+c3x2+d3x314x<20,a4+b4x+c4x2+d4x320x<30,a5+b5x+c5x2+d5x330x<40,max(0,a6+b6x+c6x2+d6x3)40x<54. y(x) = \begin{cases} \min(1, a_1 + b_1 x + c_1 x^2 + d_1 x^3) & 0 \le x \lt 9, \\ a_2 + b_2 x + c_2 x^2 + d_2 x^3 & 9 \le x \lt 14, \\ a_3 + b_3 x + c_3 x^2 + d_3 x^3 & 14 \le x \lt 20, \\ a_4 + b_4 x + c_4 x^2 + d_4 x^3 & 20 \le x \lt 30, \\ a_5 + b_5 x + c_5 x^2 + d_5 x^3 & 30 \le x \lt 40, \\ \max(0, a_6 + b_6 x + c_6 x^2 + d_6 x^3) & 40 \le x \lt 54. \\ \end{cases}
abcd
12828006.775070969851×1036.775070969851 \times 10^{-3}2.124527775800×103- 2.124527775800 \times 10^{-3}
225.07355893131×100 25.07355893131 \times 10^00.9754803562315×1000.9754803562315 \times 10^{0}1.016116352781×101- 1.016116352781 \times 10^{-1}1.889794677828×1031.889794677828 \times 10^{-3}
32.579601052357×1012.579601052357 \times 10^18.206693007457×101 8.206693007457 \times 10^{-1}9.055370274339×102- 9.055370274339 \times 10^{-2}1.626510569859×1031.626510569859 \times 10^{-3}
44.046435022819×1014.046435022819 \times 10^11.379581654948×100-1.379581654948 \times 10^{0}1.945884504128×1021.945884504128 \times 10^{-2}2.070318932190×104 - 2.070318932190 \times 10^{-4}
51.792461334664×1011.792461334664 \times 10^18.743920332081×101 8.743920332081 \times 10^{-1}5.567361123058×102- 5.567361123058 \times 10^{-2}6.277731764683×104 6.277731764683 \times 10^{-4}
65.639011190988×1015.639011190988 \times 10^12.010520359035×100-2.010520359035 \times 10^{0}1.644919857549×1021.644919857549 \times 10^{-2}2.674976141766×105 2.674976141766 \times 10^{-5}
  • this has been set in the blockMeshDict using a codeStream

Close-up around a hill

Boundary conditions

  • The mean bulk velocity ub\u_b at the inlet patch is defined as:

    ub=12.0355HH3.035Hux(y)dy \u_b = \frac{1}{2.0355H}\int\limits_{H}^{3.035H} \u_x (y) dy
  • This is set to 1 m/s, and maintained using a mean velocity force fvOption

  • The laminar viscosity is set to achieve the target Reynolds numbers, where the reference length scale is given by the hill height

  • The laminar viscosity is derived from the Reynolds number, i.e.

    ν=ubHRe=1×0.02810565=2.65×106m2/s \nu_\infty = \frac{|\u_b| H}{Re} = \frac{1 \times 0.028}{10565} = 2.65 \times 10^{-6} m^2/s

Common fields

Velocity: U

PatchConditionValue
Inletcyclic
Outletcyclic
HillsnoSlip
WallsnoSlip

Pressure: p

PatchConditionValue
Inletcyclic
Outletcyclic
HillszeroGradient
WallszeroGradient

Turbulence fields

Turbulence viscosity: nut

PatchConditionValue
Inletcyclic
Outletcyclic
HillsnutUSpaldingWallFunction
WallsnutUSpaldingWallFunction

Spalart-Allmaras IDDES

Modified turbulence viscosity: nuTilda

PatchConditionValue
Inletcyclic
Outletcyclic
HillsfixedValue0
WallsfixedValue0

Results

The precursor steady computation is used to initialise the transient calculation. After evolving the transient case for XXX flow-throughs a fully turbulent flow is established, as shown by the instantaneous velocity:

Instantaneous velocity

The average velocity prediction shows differences compared to the velocity derived from the precursor steady calculation:

Mean velocity

Turbulent structures are clearly evident in the instantaneous Q criterion prediction:

Instantaneous Q critereon

The following series of images provide a quantitative comparison between OpenFOAM predictions and both measured data and results from another CFD code at various streamwise locations.

Profiles

Average velocity profiles:

U 0.05
U 0.5
U 1
U 2
U 3
U 4
U 5
U 6
U 7
U 8

Average normal stresses: uu

uu 0.05
uu 0.5
uu 1
uu 2
uu 3
uu 4
uu 5
uu 6
uu 7
uu 8

Average normal stresses: vv

vv 0.05
vv 0.5
vv 1
vv 2
vv 3
vv 4
vv 5
vv 6
vv 7
vv 8

Average shear stress: uv

uv 0.05
uv 0.5
uv 1
uv 2
uv 3
uv 4
uv 5
uv 6
uv 7
uv 8