A 1D MATLAB LBGK-ES code is available to download. Ehrenfests' steps belong to a class on nonequilibrium entropy limiters for lattice
Boltzmann methods. The 1D code also implements other examples of limiters of nonequilibrium entropy as described by Brownlee et al in "Nonequilibrium entropy limiters
in lattice Boltzmann methods" (to appear Physica A). A 2D FORTRAN LBGK limiter code is also available to download. The code solves the classical
lid-driven cavity problem (see below) but can be easily adpated to solve other problems. Both codes are free software but are only made available under the proviso that
no support will be be given. Freely distributable movies and figures produced using these codes are also available (see below).
1D isothermal shock-tube
The following applies to all of the 1d shock tube simulations below:
-
801 uniformly spaced lattice sites are used;
-
initial density discontinuity in ratio 2:1;
-
initial condition is (ρL,ρR,vL,vR,tend)=(1.0,0.5,0.0,0.0,400);
-
initial condition is unsmoothed;
-
discrete relaxation frequency ω=2(1-10-9);
-
bounce-back boundary condition are used.
Shock tube simulations:
2D-flow around a square cylinder
Unless otherwise stated, the following applies to all of the 2d square cylinder simulations below:
-
characteristic length L=20 (side of cylinder);
-
601×501 uniformly spaced square lattice in used (301101 lattice sites in total);
-
channel blockage ratio of 4%;
-
free-stream velocity (u∞,v∞)=(0.05,0.0) (in lattice units);
-
constant inlet condition, zeroth-order extrapolation at outlet;
-
free-slip boundary condition on channel walls;
-
Maxwell diffusive boundary condition on cylinder;
-
simulation run for 125000 time steps;
-
Ehrenfests' tolerances (k,δ)=(10,10-3);
-
only part of the computational domain is shown.
Square cylinder simulations:
2D lid-driven cavity flow
The following applies to all of the lid-driven cavity simulations below:
-
characteristic length L=320 (length of lid);
-
321×321 uniformly spaced square lattice in used (103041 lattice sites in total);
-
fluid initially at rest;
-
Maxwell diffusive boundary condition on all sides of the cavity;
-
lid moving with constant velocity (u∞,v∞)=(0.075,0.0);
-
simulation run for 500000 time steps;
-
Ehrenfests' tolerances (k,δ)=(16,10-3).
Lid-driven cavity simulations: