diff options
-rw-r--r-- | README.md | 14 | ||||
-rw-r--r-- | channel.cc | 2 | ||||
-rw-r--r-- | screenshot/channel_flow.png | bin | 0 -> 40696 bytes | |||
-rw-r--r-- | screenshot/lid_driven_cavity_with_box_grid.png | bin | 274390 -> 145689 bytes |
4 files changed, 12 insertions, 4 deletions
@@ -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 @@ -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 Binary files differnew file mode 100644 index 0000000..7fa21a8 --- /dev/null +++ b/screenshot/channel_flow.png diff --git a/screenshot/lid_driven_cavity_with_box_grid.png b/screenshot/lid_driven_cavity_with_box_grid.png Binary files differindex 5b2ca59..b5811b2 100644 --- a/screenshot/lid_driven_cavity_with_box_grid.png +++ b/screenshot/lid_driven_cavity_with_box_grid.png |