Gyredocs
Depth Practice
API

Gyre/Examples

Laminar cylinder

In one minuteA viscous case with separation — the steady wake of a circular cylinder at Reynolds number 40 — showing no-slip walls, skin friction and the separation point.

Written at L1 Essentials goes to L3 Mechanics 353 words Markdown
Streamwise velocity: the closed recirculation bubble behind the cylinderPart of the domain: window x ∈ [-3, 8], y ∈ [-4, 4] · the 146 mesh elements that reach into it · 8×8 points each

Fields: velocity_x [-0.0964, 1.161], mach [8.03e-05, 0.2359], pressure [17.38, 18.49], temperature [0.9974, 1.009]. Raw sample (JSON)

gyre 0.4.0 · 39979fcf90 · · cpu · example_cylinder/field.jsonSame code as this build

PassedExample: laminar cylinder, Re = 404 of 4 checks passed · 51.5 s · quick suite

Steady separated flow past a circular cylinder at Re_D = 40, Mach 0.2 (p = 3, 24 x 10 curved elements). Surface pressure and skin friction over the upper half, from the front stagnation point (0°) to the rear (180°).

  • convergedyesexpected truepass
  • drag coefficient1.537expected 1.45 … 1.65pass
  • front stagnation cp1.153expected 1.0 … 1.25pass
  • separation angle from the rear stagnation point [deg]53.75expected 45 … 60pass

gyre 0.4.0 · 39979fcf90 · · cpu · quick suite · record (JSON)Same code as this build

bash
gyre run cylinder_re40 -o runs/cylinder

The preset uses a 24 × 10 curved O-mesh reaching 40 diameters, p=3p = 3, an adiabatic no-slip wall and a far-field boundary at Mach 0.2.

OutputsExample: laminar cylinder, Re = 40
cdclseparation from rear [deg]Newton stepsDOFfield
1.53727-1.7153e-1453.74731615360example_cylinder/field.json

gyre 0.4.0 · 39979fcf90 · · cpu · quick suite · record (JSON)Same code as this build

Surface pressure coefficientExample: laminar cylinder, Re = 40
Data table
θ from front stagnation [deg]cp
4.14591.15293
10.85411.07967
151.00662
151.00292
19.14590.905836
25.85410.710071
300.573596
300.567372
34.14590.419849
40.85410.165764
450.00371642
450.0107632
49.1459-0.145918
55.8541-0.377553
60-0.502503
60-0.508746
64.1459-0.615786
70.8541-0.761584
75-0.825954
75-0.829818
79.1459-0.874213
85.8541-0.916813
90-0.922989
90-0.922387
94.1459-0.91662
100.854-0.887142
105-0.861206
105-0.859542
109.146-0.830883
115.854-0.777551
120-0.747173
120-0.744984
124.146-0.715562
130.854-0.668527
135-0.644654
135-0.643014
139.146-0.620141
145.854-0.586121
150-0.567973
150-0.56663
154.146-0.550636
160.854-0.526003
165-0.514384
165-0.513175
169.146-0.504217
175.854-0.494036
180-0.492681
180-0.492681

gyre 0.4.0 · 39979fcf90 · · cpu · quick suite · record (JSON)Same code as this build

Skin-friction coefficient (signed)Example: laminar cylinder, Re = 40

The sign change marks separation; literature places it about 53° from the rear stagnation point at Re = 40.

Data table
θ from front stagnation [deg]cf
4.14590.0734808
10.85410.185903
150.258294
150.250527
19.14590.318278
25.85410.40863
300.460132
300.456147
34.14590.49935
40.85410.548881
450.568988
450.568032
49.14590.578289
55.85410.576352
600.559642
600.564671
64.14590.539849
70.85410.49041
750.44672
750.452809
79.14590.406092
85.85410.331474
900.284805
900.280959
94.14590.236672
100.8540.167521
1050.128622
1050.129719
109.1460.0947858
115.8540.0488208
1200.0265861
1200.0265019
124.1460.00717135
130.854-0.0156629
135-0.0251225
135-0.0255124
139.146-0.033027
145.854-0.0402093
150-0.0415744
150-0.0418127
154.146-0.041486
160.854-0.0368469
165-0.0307411
165-0.0314626
169.146-0.0240381
175.854-0.00990457
180-5.8400e-04
1805.8400e-04

gyre 0.4.0 · 39979fcf90 · · cpu · quick suite · record (JSON)Same code as this build

  • Pressure recovers only partly on the rear half: the flow has separated.
  • The skin friction changes sign where the flow separates. Its location is reported in the table as the angle from the rear stagnation point.
  • The drag coefficient is compared with the literature in Physical validation.

The wall imposes zero velocity through the BR2 lifting and zero heat flux through the viscous boundary flux (boundary conditions). The numerical energy flux through the adiabatic wall is zero by construction, for any state. The validation study checks instead that the conduction the converged solution carries at the wall, which vanishes for the exact solution, decreases with the polynomial degree. The Reynolds number is a differentiable input: --gradients --of cd --wrt re,mach.

    ↑ ↓ moveEnter open[ ] change depthResults show section and depth level