This repository contains set of examples demonstrating the use of Nek5000 framework and toolboxes developed at KTH. The more in-depth description of the framework can be found at its doxygen documentation page, which contains variety of important information starting at downloading options and ending with detailed code description. List of all available tools can be found here.
All examples contain necessary files for code compilation and running the case except those, that can be easily recreated
using genbox
or genmap
. Moreover, to reduce a number of binary files in the repository, we do not include multiple copies
of the same file, so e.g. ext_cyl.re2
exists only under ext_cyl_DNS
and it has to be copied to ext_cyl_LIN
or ext_cyl_SFD
.
Each example consists of:
- required tools source and include files
- setup source file
###.usr
- required
SIZE
file containing definitions of static arrays dimensions - compilation script
compile_script
makefile_usr.inc
describing compilation rules for tools files- runtime parameters file
###.par
- mesh description; it can be
###.box
or###.re2
README.md
listing all the tools
To compile the code:
- make sure
compile_script
has set execute bit (chmode u+x compile_script
) - edit
compile_script
to set proper compilers - if you have not cloned this repo as a submodule of KTH_Framework, make sure that
in the
compile_script
theTOOLBOX_SRC
variable points to the root of KTH_Toolbox, andNEK_SOURCE_ROOT
points to the root of Nek5000. - clean directory
./compile_script --clean
(with the first compilation on a given machine clean the libraries as well) - build the code
./compile_script --all
To run the code:
- regenerate the mesh using
genbox
if###.re2
is not present - generate map file using
genmap
- execute the code using scripts from
Nek5000/bin/
directory
ext_cyl_DNS
- nonlinear simulation of the flow past circular cylinderext_cyl_LIN
- linear simulation of the flow past circular cylinderext_cyl_SFD
- nonlinear simulation of the flow past circular cylinder with Selective Frequency Damping to calculate base flowext_cyl_ARN
- linear stability tool for spectra calculation with Arnoldi algorithmext_cyl_PWI
- linear stability tool, power iterationphill_STAT
- nonlinear simulation of flow over periodic hill to calculate turbulence statistics (can be run in 2D or 3D mode)phill_PSTAT2D
- two-dimensional postprocessing of files produced byphill_STAT
phill_PSTAT3D
- three-dimensional postprocessing of files produced byphill_STAT
pipe_STAT
- likephill_STAT
but with preriodic pipe and mesh generated with gmshpipe_PSTAT2D
- likephill_PSTAT2D
but with preriodic pipe and mesh generated with gmshphill_TRIP
- nonlinear simulation of flow over periodic hill with tripping linephill_TSRS
- nonlinear simulation of flow over periodic hill to collect time series for point set.pipe_gSyEM
- generalsed synthetic eddy method for pipe inflow