summaryrefslogtreecommitdiff
path: root/tangle
diff options
context:
space:
mode:
authorAdrian Kummerlaender2021-06-14 00:06:52 +0200
committerAdrian Kummerlaender2021-06-14 00:06:52 +0200
commit74ec92324ed32a08c9117ab437e5c10845f85081 (patch)
tree7ddae006dceb5d9bd7d04b5cd3d905f39b5aa8d2 /tangle
parentad2f632fb355c9bc91246552d97c7c1a4304ec99 (diff)
downloadLiterateLB-74ec92324ed32a08c9117ab437e5c10845f85081.tar
LiterateLB-74ec92324ed32a08c9117ab437e5c10845f85081.tar.gz
LiterateLB-74ec92324ed32a08c9117ab437e5c10845f85081.tar.bz2
LiterateLB-74ec92324ed32a08c9117ab437e5c10845f85081.tar.lz
LiterateLB-74ec92324ed32a08c9117ab437e5c10845f85081.tar.xz
LiterateLB-74ec92324ed32a08c9117ab437e5c10845f85081.tar.zst
LiterateLB-74ec92324ed32a08c9117ab437e5c10845f85081.zip
Add basic how to / literate programming section
Diffstat (limited to 'tangle')
-rw-r--r--tangle/channel-with-sphere.cu4
-rw-r--r--tangle/nozzle.cu2
-rw-r--r--tangle/util/volumetric_example.h2
3 files changed, 4 insertions, 4 deletions
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<DESCRIPTOR> cuboid(300, 80, 80);
+const descriptor::Cuboid<DESCRIPTOR> cuboid(448, 64, 64);
Lattice<DESCRIPTOR,T> lattice(cuboid);
CellMaterials<DESCRIPTOR> materials(cuboid, [&cuboid](uint3 p) -> int {
@@ -70,7 +70,7 @@ renderer.add<CurlNormS>(lattice, bulk_mask, obstacle);
renderer.add<VelocityNormS>(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>()),
diff --git a/tangle/nozzle.cu b/tangle/nozzle.cu
index 43217dc..c3f343d 100644
--- a/tangle/nozzle.cu
+++ b/tangle/nozzle.cu
@@ -17,7 +17,7 @@ using DESCRIPTOR = descriptor::D3Q19;
int main() {
cudaSetDevice(0);
-const descriptor::Cuboid<DESCRIPTOR> cuboid(448, 64, 64);
+const descriptor::Cuboid<DESCRIPTOR> cuboid(400, 80, 80);
Lattice<DESCRIPTOR,T> lattice(cuboid);
CellMaterials<DESCRIPTOR> materials(cuboid, [&cuboid](uint3 p) -> int {
diff --git a/tangle/util/volumetric_example.h b/tangle/util/volumetric_example.h
index cc6a24e..da5e4c4 100644
--- a/tangle/util/volumetric_example.h
+++ b/tangle/util/volumetric_example.h
@@ -75,7 +75,7 @@ void run(TIMESTEP step) {
ImGui::EndCombo();
}
_current->interact();
- ImGui::SliderInt("Timestep/s", &_steps_per_second, 1, 2000);
+ ImGui::SliderInt("Timestep/s", &_steps_per_second, 1, 1500);
ImGui::SliderInt("Samples/s", &_samples_per_second, 1, 60);
if (simulate) {
simulate = !ImGui::Button("Pause");