Skip to content

Couette flow

Couette

A shear flow in a 0.1 m cube discretized with 100 cells per axis, periodic in X and Y: the upper wall (Z = 0.1 m) moves at 1 mm/s along X, the lower wall is at rest. Four decks are provided:

Deck Driving Collision
lbm_couette.msp Neumann walls BGK
lbm_couette_mrt.msp Neumann walls MRT
lbm_prepro_couette.msp Neumann walls + relaxation force towards the linear profile bgk_couette_relax
lbm_prepro_double_couette.msp walls at ±1 mm/s, started from the steady profile (init_double_couette) BGK

Decks

do_domain:
  - domain:
     bounds:    [ [0, 0, 0],[0.1 m, 0.1 m, 0.1 m] ]
     cell_dims: [ 100 , 100 , 100 ]
     periodic:  [ true, true, false ]

set_lbm_parameters:
  - lbm_parameters:
     Fext: [0,0,0]
     nuth: 1e-3  # m2/s
     tau: 0.7

boundary_conditions:
  - neumann:
     U: [0.001,0,0]
     regions: [plan_xy_l]
  - neumann:
     U: [0,0,0]
     regions: [plan_xy_0]

analysis:
  - plane_velocity_profile:
     dimension: Z
  - plot_line_velocity:
     line: [[0.05,0.05,0],[0.05,0.05,0.1]]

global:
   simulation_paraview_freq: 100
   simulation_end_iteration: 3000
   simulation_analysis_freq: 300
   simulation_print_log_freq: 10   
   output_directory: "CouetteTestDir"   
do_domain:
  - domain:
     bounds:    [ [0, 0, 0],[0.1 m, 0.1 m, 0.1 m] ]
     cell_dims: [ 100 , 100 , 100 ]
     periodic:  [ true, true, false ]

set_lbm_parameters:
  - lbm_parameters:
     Fext: [0,0,0]
     nuth: 1e-3  # m2/s
     tau: 0.7

boundary_conditions:
  - neumann:
     U: [0.001,0,0]
     regions: [plan_xy_l]
  - neumann:
     U: [0,0,0]
     regions: [plan_xy_0]

collision: mrt

analysis:
  - plane_velocity_profile:
     dimension: Z
  - plot_line_velocity:
     line: [[0.05,0.05,0],[0.05,0.05,0.1]]

global:
   simulation_paraview_freq: 100
   simulation_end_iteration: 3000
   simulation_analysis_freq: 300
   simulation_print_log_freq: 10   
   output_directory: "CouetteMRTTestDir"   
do_domain:
  - domain:
     bounds:    [ [0,0,0],[0.1,0.1,0.1] ]
     cell_dims: [ 100 , 100 , 100 ]
     periodic:  [ true, true, false ]

#set_distributions:
#  - init_couette:
#     U_inf: [0,0,0]
#     U_sup: [0.001,0,0]
#     dimension: Z

set_lbm_parameters:
  - lbm_parameters:
     nuth: 1e-2
     celerity: 1.0

compute_macro_variables:
  - macro_variables_couette_relax:
     U_inf: [0,0,0]
     U_sup: [0.001,0,0]

collision:
  - bgk_couette_relax:
     U_inf: [0,0,0]
     U_sup: [0.001,0,0]

boundary_conditions:
  - neumann:
     U: [0.001,0,0]
     regions: [plan_xy_l]
  - neumann:
     U: [0,0,0]
     regions: [plan_xy_0]

global:
   simulation_paraview_freq: 10
   simulation_end_iteration: 200
   simulation_print_log_freq: 1
   output_directory: "PreProCouetteDir"
do_domain:
  - domain:
     bounds:    [ [0,0,0],[0.1,0.1,0.1] ]
     cell_dims: [ 100 , 100 , 100 ]
     periodic:  [ true, true, false ]

set_distributions:
  - init_double_couette:
     U: [0.001,0,0]
     dimension: Z

set_lbm_parameters:
  - lbm_parameters:
     Fext: [0,0,0]
     nuth: 1e-2
     celerity: 1.0

boundary_conditions:
  - neumann:
     U: [-0.001,0,0]
     regions: [plan_xy_l]
  - neumann:
     U: [0.001,0,0]
     regions: [plan_xy_0]        

global:
   simulation_paraview_freq: 1
   simulation_end_iteration: 20
   simulation_print_log_freq: 1   
   output_directory: "PreProDoubleCouetteDir"   

Run

1
2
3
4
5
./hippoLBM ../hippoLBM/example/lbm_couette.msp --omp_num_threads 4
./hippoLBM ../hippoLBM/example/lbm_couette_mrt.msp --omp_num_threads 4
./hippoLBM ../hippoLBM/example/lbm_prepro_couette.msp
./hippoLBM ../hippoLBM/example/lbm_prepro_double_couette.msp
python3 ../hippoLBM/script/profile/plot_line_couette.py CouetteTestDir/Profile --nu 1e-3 --dt 6.666667e-05

lbm_couette.msp and lbm_couette_mrt.msp run 3,000 steps (\(\Delta t = 6.67 \times 10^{-5}\) s, \(\tau = 0.7\)), with line profiles every 300 steps.

Results

BGK and MRT

During the 0.2 s of the run, the momentum of the moving wall diffuses into the fluid. The profile is compared with the solution of the Rayleigh problem (wall suddenly set in motion above a semi-infinite fluid, valid while \(\sqrt{\nu t} \ll L\)):

\[ u_x(z, t) = U \left(1 - \mathrm{erf}\,\frac{L - z}{2\sqrt{\nu t}}\right). \]
Couette BGK MRT
Velocity profiles at the center of the domain, BGK and MRT (hippoLBM v1.0.2, CPU runs)

BGK and MRT both follow the analytical solution; they differ by less than \(6 \times 10^{-8}\) m/s (\(6 \times 10^{-5}\,U\)). The regression test regression_lbm_couette_mrt_bgk_equiv checks that MRT with all its rates equal to \(1/\tau\) reproduces BGK.

The steady state (linear profile) is reached after a diffusion time \(L^2/\nu = 10\) s:

Couette steady profile

Couette operators

Couette prepro
Left: relaxation force (bgk_couette_relax). Right: double Couette started from its steady profile.
  • Relaxation force (lbm_prepro_couette.msp, \(\nu\) = 10⁻² m²/s, \(\tau = 30.5\)): the force pulls the whole bulk towards the linear profile, which is reached after about 200 steps instead of the \(L^2/\nu = 1\) s (\(10^3\) steps) of the diffusion. The step visible in the early profiles is the signal of the moving wall, which travels one node per step in this very viscous regime (\(\tau \gg 1\)).
  • Double Couette (lbm_prepro_double_couette.msp): started from the equilibrium of its steady profile, the flow stays on it.