aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2018-10-13 20:53:54 +0200
committerAdrian Kummerlaender2018-10-13 20:55:42 +0200
commitd1d96371a0d857bf874d6370c17595ffa0bfeaec (patch)
treeaf0a883d13dddadd6e7cc6f342e00537f2f339ff
parent0fa5d14b73737673f5c5d698ecc02fbc0861a679 (diff)
downloadboltzbub-d1d96371a0d857bf874d6370c17595ffa0bfeaec.tar
boltzbub-d1d96371a0d857bf874d6370c17595ffa0bfeaec.tar.gz
boltzbub-d1d96371a0d857bf874d6370c17595ffa0bfeaec.tar.bz2
boltzbub-d1d96371a0d857bf874d6370c17595ffa0bfeaec.tar.lz
boltzbub-d1d96371a0d857bf874d6370c17595ffa0bfeaec.tar.xz
boltzbub-d1d96371a0d857bf874d6370c17595ffa0bfeaec.tar.zst
boltzbub-d1d96371a0d857bf874d6370c17595ffa0bfeaec.zip
Update README.md
-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