aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md14
-rw-r--r--channel.cc2
-rw-r--r--screenshot/channel_flow.pngbin0 -> 40696 bytes
-rw-r--r--screenshot/lid_driven_cavity_with_box_grid.pngbin274390 -> 145689 bytes
4 files changed, 12 insertions, 4 deletions
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
--- /dev/null
+++ b/screenshot/channel_flow.png
Binary files 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
--- a/screenshot/lid_driven_cavity_with_box_grid.png
+++ b/screenshot/lid_driven_cavity_with_box_grid.png
Binary files differ