diff options
author | Adrian Kummerlaender | 2021-07-03 16:39:53 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2021-07-03 16:39:53 +0200 |
commit | 1eb15a532461a3546c84da072aba13a5182da460 (patch) | |
tree | 4223ab17b9b7c7db04a85eded9977eeb091ad601 | |
parent | 7102c4740d7062c471893d72335bcec4158ec9e4 (diff) | |
download | LiterateLB-1eb15a532461a3546c84da072aba13a5182da460.tar LiterateLB-1eb15a532461a3546c84da072aba13a5182da460.tar.gz LiterateLB-1eb15a532461a3546c84da072aba13a5182da460.tar.bz2 LiterateLB-1eb15a532461a3546c84da072aba13a5182da460.tar.lz LiterateLB-1eb15a532461a3546c84da072aba13a5182da460.tar.xz LiterateLB-1eb15a532461a3546c84da072aba13a5182da460.tar.zst LiterateLB-1eb15a532461a3546c84da072aba13a5182da460.zip |
Add Taylor-Couette video
-rw-r--r-- | lbm.org | 14 | ||||
-rw-r--r-- | tangle/taylor-couette.cu | 2 |
2 files changed, 12 insertions, 4 deletions
@@ -5547,7 +5547,7 @@ cudaSetDevice(0); After including the relevant headers we construct the D3Q19 lattice. #+BEGIN_SRC cpp :tangle tangle/taylor-couette.cu -const descriptor::Cuboid<DESCRIPTOR> cuboid(320, 96, 96); +const descriptor::Cuboid<DESCRIPTOR> cuboid(500, 96, 96); Lattice<DESCRIPTOR,T> lattice(cuboid); #+END_SRC @@ -5624,8 +5624,8 @@ lattice.apply<BouzidiO>(bouzidi.getCount(), bouzidi.getConfig()); lattice.stream(); #+END_SRC -Finally the volumetric renderer is used to control the simulation -loop and to provide velocity and curl norm visualizations. +Finally the volumetric example renderer is used to control the simulation +loop and to provide velocity, curl norm and shear layer visualizations. #+BEGIN_SRC cpp :tangle tangle/taylor-couette.cu VolumetricExample renderer(cuboid); @@ -5637,6 +5637,14 @@ renderer.run([&](std::size_t iStep) { } #+END_SRC +After compiling the tangled program and playing around with the rendering +settings for the shear layer sampler, we end up with something similar to +this: + +#+BEGIN_EXPORT html +<video style="width:100%" src="https://literatelb.org/media/taylor-couette.webm" playsinline muted controls/> +#+END_EXPORT + ** Nozzle This is the example that was used to provide the teaser video at the start of this document. It simulates the turbulent flow that develops when a channel flow diff --git a/tangle/taylor-couette.cu b/tangle/taylor-couette.cu index 86f739e..48b0d87 100644 --- a/tangle/taylor-couette.cu +++ b/tangle/taylor-couette.cu @@ -17,7 +17,7 @@ using DESCRIPTOR = descriptor::D3Q19; int main() { cudaSetDevice(0); -const descriptor::Cuboid<DESCRIPTOR> cuboid(320, 96, 96); +const descriptor::Cuboid<DESCRIPTOR> cuboid(500, 96, 96); Lattice<DESCRIPTOR,T> lattice(cuboid); CellMaterials<DESCRIPTOR> materials(cuboid, [&cuboid](uint3 p) -> int { |