Migration of a cylinder in a shear flow¶
Comparison with the reference data by Feng et al., J. Fluid Mech. (277), 1994 is described, who simulated the lateral migration of a neutrally-buoyant circular object in a two-dimensional wall-bounded shear flow.
Configuration¶
We consider a square domain (\(l_x = l_y = 1\)), in which a circular object (whose radius is \(0.125\)) is positioned at \(x = 0.25, y = 0\). The particle is stationary at \(t = 0\), while the liquid (viscosity is adjusted so that the bulk Reynolds number leads \(40\)) and the wall have a profile of the laminar Couette flow. Spatial resolutions are varied from \(16\) to \(48\) grids per domain size (\(4\) to \(12\) grids per diameter) to check the spatial convergence.
In practice, the configuration is specified as follows (\(16\) grids per domain):
#!/bin/bash
## directory name containing flow fields to restart
# export dirname_restart="output/save/stepxxxxxxxxxx"
## durations
# maximum duration (in free-fall time)
export timemax=1.5e+2
# maximum duration (in wall time [s])
export wtimemax=6.0e+2
# logging rate (in free-fall time)
export log_rate=1.0e+0
# logging after (in free-fall time)
export log_after=0.0e+0
# save rate (in free-fall time)
export save_rate=1.0e+3
# save after (in free-fall time)
export save_after=0.0e+0
# statistics collection rate (in free-fall time)
export stat_rate=1.0e-1
# statistics collection after (in free-fall time)
export stat_after=2.0e+3
## domain
# domain lengths
export ly=1.0e+0
# number of grids
export itot=16
export jtot=16
## dt safe factors, adv and dif
export safefactor_adv=0.9
export safefactor_dif=0.9
## physical parameters
export Re=4.e+1
# export Fr=1.e+0
## external forcing in y direction
export extfrcy=0.
mpirun -n 1 --oversubscribe ./a.out
Note
src/fluid/boundary_conditions.c
and src/fluid/init.c
are modified so that the specified initial conditions (Couette flow profile) are given and the moving walls are treated, respectively.
Results¶
Note
Conducted by GitHub Actions.
OS : "Ubuntu 22.04.3 LTS"
Date : Sat Feb 10 13:46:23 UTC 2024
Hash : bc64913d53d88051808a651acdffa80b0fbaada0
OS : "Ubuntu 22.04.3 LTS"
Date : Sat Feb 10 13:46:32 UTC 2024
Hash : bc64913d53d88051808a651acdffa80b0fbaada0
OS : "Ubuntu 22.04.3 LTS"
Date : Sat Feb 10 13:47:11 UTC 2024
Hash : bc64913d53d88051808a651acdffa80b0fbaada0
The final flow field is shown below. Note that the picture is transposed, i.e., in the picture, \(x\) and \(y\) directions in the simulation are shown as the vertical and horizontal directions, respectively.
The colour denotes the size of the stream-wise velocity, while the center gray object is the immersed particle.
Lateral (wall-normal, \(x\) direction) migration of a particle as a function of the simulation time \(t\) is shown below.