"This is based on section 9.3.3 of Krüger et al.'s \"The Lattice Boltzmann Method\", Springer 2017 (http://www.lbmbook.com).\n",
"Sample code is available at [https://github.com/lbm-principles-practice/code/](https://github.com/lbm-principles-practice/code/blob/master/chapter9/shanchen.cpp)."
"### Check the first time step against reference data\n",
"\n",
"The reference data was obtained with the [sample code](https://github.com/lbm-principles-practice/code/blob/master/chapter9/shanchen.cpp) after making the following changes:\n",
"```c++\n",
"const int nsteps = 1000;\n",
"const int noutput = 1;\n",
"const int nfluids = 2;\n",
"const double gA = 0;\n",
"```\n",
"\n",
"Remove the next cell if you changed the parameters at the beginning of this notebook."
This is based on section 9.3.3 of Krüger et al.'s "The Lattice Boltzmann Method", Springer 2017 (http://www.lbmbook.com).
Sample code is available at [https://github.com/lbm-principles-practice/code/](https://github.com/lbm-principles-practice/code/blob/master/chapter9/shanchen.cpp).
### Check the first time step against reference data
The reference data was obtained with the [sample code](https://github.com/lbm-principles-practice/code/blob/master/chapter9/shanchen.cpp) after making the following changes:
```c++
constintnsteps=1000;
constintnoutput=1;
constintnfluids=2;
constdoublegA=0;
```
Remove the next cell if you changed the parameters at the beginning of this notebook.