XLB
XLB copied to clipboard
FullwayBounceBack BC registered but not simulated in flow past sphere example
Using the flow past sphere example.
The following lines were changed:
# bc_left = RegularizedBC("velocity", profile=bc_profile(), indices=inlet)
bc_left = RegularizedBC("velocity", prescribed_value=(u_max, 0.0, 0.0), indices=inlet)
bc_sphere = FullwayBounceBackBC(indices=sphere)
Also the FullwayBounceBackBC on the sphere is registered in simulation setup:
Warp 1.6.2 initialized:
CUDA Toolkit 12.8, Driver 12.0
Devices:
"cpu" : "x86_64"
"cuda:0" : "NVIDIA RTX A2000 12GB" (12 GiB, sm_86, mempool enabled)
Kernel cache:
/home/z004ky4k/.cache/warp/1.6.2
registered bc RegularizedBC_8761954115455 with id 1
registered bc FullwayBounceBackBC_8761954115452 with id 2
registered bc ExtrapolationOutflowBC_8761932727447 with id 3
registered bc FullwayBounceBackBC_8761932743056 with id 4
Module xlb.operator.equilibrium.quadratic_equilibrium a7e63a8 load on device 'cuda:0' took 1.21 ms (cached)
Module xlb.operator.boundary_masker.indices_boundary_masker ba1bde6 load on device 'cuda:0' took 1.24 ms (cached)
Module xlb.operator.boundary_condition.boundary_condition d038e91 load on device 'cuda:0' took 1.37 ms (cached)
Module xlb.operator.stepper.nse_stepper 52f7e03 load on device 'cuda:0' took 15.50 ms (cached)
XLB 0.2.1 installed from src with pip.
The results show that the sphere is not simulated:
Versus HalfwayBounceBackBC (only change this one line):