From 74ec92324ed32a08c9117ab437e5c10845f85081 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Mon, 14 Jun 2021 00:06:52 +0200 Subject: Add basic how to / literate programming section --- tangle/channel-with-sphere.cu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tangle/channel-with-sphere.cu') diff --git a/tangle/channel-with-sphere.cu b/tangle/channel-with-sphere.cu index d2effb0..401f0c9 100644 --- a/tangle/channel-with-sphere.cu +++ b/tangle/channel-with-sphere.cu @@ -17,7 +17,7 @@ using DESCRIPTOR = descriptor::D3Q19; int main() { cudaSetDevice(0); -const descriptor::Cuboid cuboid(300, 80, 80); +const descriptor::Cuboid cuboid(448, 64, 64); Lattice lattice(cuboid); CellMaterials materials(cuboid, [&cuboid](uint3 p) -> int { @@ -70,7 +70,7 @@ renderer.add(lattice, bulk_mask, obstacle); renderer.add(lattice, bulk_mask, obstacle); renderer.run([&](std::size_t iStep) { const float tau = 0.51; - const float inflow = 0.08; + const float inflow = 0.05; lattice.apply(Operator(BgkCollideO(), bulk_mask, tau), Operator(BounceBackFreeSlipO(), wall_mask_z, WallNormal<0,0,1>()), -- cgit v1.2.3