Flow around parametric shapes
This example uses quadric obstacles : a cylinder along Y (cyly), an ellipsoid
(sphere with a non-uniform scale) and a cone along Z (conez), in a channel of 1.0 × 0.2 × 0.3 m (400 × 80 × 120
cells), periodic along X and Y. The flow is driven by a body force of 1.3 m/s² along X (\(\nu\) = 10⁻³ m²/s,
\(\tau\) = 0.65).
Deck
do_domain :
- domain :
bounds : [[ 0 , 0 , 0 ],[ 1.0 , 0.2 , 0.3 ]]
cell_dims : [ 400 , 80 , 120 ]
periodic : [ true , true , false ]
set_lbm_parameters :
- lbm_parameters :
Fext : [ 1.3 , 0.000000e+00 , 0.000000e+00 ]
nuth : 1e-3
tau : 0.65
set_obstacles :
- register_quadrics :
id : 0
quadrics : cyly
transform :
- scale : [ 0.05 , 1 , 0.05 ]
- translate : [ 0.15 , 0.1 , 0.1 ]
- register_quadrics :
id : 1
quadrics : sphere
transform :
- scale : [ 0.05 , 0.08 , 0.05 ]
- translate : [ 0.35 , 0.1 , 0.15 ]
- register_quadrics :
id : 2
quadrics : conez
transform :
- scale : [ 0.05 , 0.05 , 0.05 ]
- translate : [ 0.55 , 0.1 , 0.25 ]
collision : bgk # default model
boundary_conditions :
- neumann :
U : [ 0 , 0 , 0 ]
regions : [ plan_xy_l ]
- neumann :
U : [ 0 , 0 , 0 ]
regions : [ plan_xy_0 ]
pre_stream_bcs :
- wall_bounce_back
global :
simulation_paraview_freq : 25000
simulation_end_iteration : 1000000
simulation_print_log_freq : 100
output_directory : "QuadircsDir"
The three quadric obstacles projected on the grid
Run
./hippoLBM ../hippoLBM/example/lbm_quadrics.msp
This is a long run (10⁶ steps, ParaView outputs every 25,000 steps in QuadircsDir/).