From d1d96371a0d857bf874d6370c17595ffa0bfeaec Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sat, 13 Oct 2018 20:53:54 +0200 Subject: Update README.md --- README.md | 14 +++++++++++--- channel.cc | 2 +- screenshot/channel_flow.png | Bin 0 -> 40696 bytes screenshot/lid_driven_cavity_with_box_grid.png | Bin 274390 -> 145689 bytes 4 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 screenshot/channel_flow.png diff --git a/README.md b/README.md index 049f502..385627b 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,23 @@ # boltzbub -…Lattice Boltzmann code experiment written in C++ that is to a full LBM code as a boy is to a man. +…simple Lattice Boltzmann code experiments written in C++. -![lid driven cavity with a grid of boxes visualized using ParaView](screenshot/lid_driven_cavity_with_box_grid.png) +![channel flow visualized using ParaView](screenshot/channel_flow.png) + +## Experiments + +| Code | Description | +| - | - | +| `lid_driven_cavity.cc` | Lid driven cavity using Zou/He boundary conditions for the top wall and simple bounce back for all other walls | +| `lid_driven_cavity_with_obstacles.cc` | Same as `lid_driven_cavity.cc` but includes a grid of boxes to make things more interesting | +| `channel.cc` | Channel flow some obstacles and Dirichlet inflow | ## Build git clone https://github.com/KnairdA/boltzbub.git cd boltzbub nix-shell - mkdir --parents build/result + mkdir build cd build cmake .. make diff --git a/channel.cc b/channel.cc index c4a4199..3e7641b 100644 --- a/channel.cc +++ b/channel.cc @@ -93,7 +93,7 @@ int main() { for ( std::size_t t = 0; t <= 5000; ++t ) { computeLbmStep(); - if ( t % 50 == 0 ) { + if ( t % 100 == 0 ) { std::cout << "."; std::cout.flush(); fluid.writeAsVTK("result/data_t" + std::to_string(t) + ".vtk"); diff --git a/screenshot/channel_flow.png b/screenshot/channel_flow.png new file mode 100644 index 0000000..7fa21a8 Binary files /dev/null and b/screenshot/channel_flow.png differ diff --git a/screenshot/lid_driven_cavity_with_box_grid.png b/screenshot/lid_driven_cavity_with_box_grid.png index 5b2ca59..b5811b2 100644 Binary files a/screenshot/lid_driven_cavity_with_box_grid.png and b/screenshot/lid_driven_cavity_with_box_grid.png differ -- cgit v1.2.3