-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Lorenz Hufnagel
authored and
Lorenz Hufnagel
committed
Dec 16, 2016
1 parent
3561494
commit bd4021e
Showing
6 changed files
with
33 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Lattice-Boltzmann lid driven cavity | ||
|
||
![Karman vortex street](example.png) | ||
|
||
A Lattice-Boltzmann method code to simulate the two-dimensional flow in a lid driven cavity. | ||
Submitted with [Metadelee](https://github.com/Metadelee), [brendelmeister](https://github.com/brendelmeister) and [HugoMichi](https://github.com/HugoMichi) | ||
for the summer '14 SiWiR2 class at FAU. | ||
|
||
### Requirements: | ||
* [NetPBM library](http://netpbm.sourceforge.net/) | ||
* OpenMP for improved performance | ||
|
||
### Usage | ||
Compile the code with the provided Makefile. | ||
|
||
The parameter file works as follows | ||
```sizex <horizontal domain size, overridden by pgm-geometry> | ||
sizey <vertical domain size, overridden by pgm-geometry> | ||
timesteps <number timesteps to simulate> | ||
omega <omega parameters for SRT LBM> | ||
vtk_file <name of output files, *.vtk is appended> | ||
vtk_step <timestep spacing between output files> | ||
geometry <file name of a black/white pgm-graphic to generate flow obstacles (black). Uncomment with '#' if not needed>``` | ||
Then run | ||
```./lbm params.dat``` | ||
to simulate the defined flow and generate VTK output. Upon completion of the simulation, the code outputs the Mega-Lattice-Updates/second (a performance measure). | ||
The output files can be visualized e.g. with | ||
[ParaView](http://www.paraview.org/) or [VisIt](ftp://ftp.llnl.gov/pub/visit) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters