turbinesFoam is a library for simulating wind and marine hydrokinetic turbines in OpenFOAM using the actuator line method. The NDF's version changes the points considered in the turbine blade discretization.
Pull requests are very welcome! See the issue tracker for more details.
fvOptions
classes for adding actuator lines and turbines constructed from
actuator lines to any compatible solver or turbulence model, e.g.,
simpleFoam
, pimpleFoam
, interFoam
, etc.
On a personal computer:
cd $WM_PROJECT_USER_DIR
git clone https://github.com/NDF-Poli-USP/TurbinesFoam.git
cd turbinesFoam
./Allwmake
On the NDF machines:
cd $WM_PROJECT_USER_DIR
git clone https://github.com/NDF-Poli-USP/TurbinesFoam.git
cd turbinesFoam
change the file "Allwmake" to include:
#!/usr/bin/env bash
source path_to_openfoam/etc/bashrc
# Parse arguments for library compilation without documentation by default
. $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments
wmake libso path_to_where_you_downloaded_the_turbinesfoam/turbinesFoam/src
An example of this file can be seen in the Allwmake_NDF .
After that, run:
./Allwmake
You also need to include the following in your .bashrc (located at /home/user directory) after the '# User specific aliases and functions' commentary :
source path_to_openfoam/etc/bashrc
On intel05 workstation, for example, it should be:
source /opt/spack/opt/spack/linux-centos8-sandybridge/gcc-8.5.0/openfoam-2106-uwp244xqtbuttkntvxfohr5uanbkkono/etc/bashrc
Reread the '~/.bashrc' configuration using the source command:
source ~/.bashrc
There are tutorials located in turbinesFoam/tutorials
.
On the NDF machines:
You need to load the following modules before to use the OpenFOAM + turbinesFoam library:
module load openfoam-version
module load openmpi-version
module load paraview-version
To view the program's version available on each workstation:
module avail
The latest release of turbinesFoam can be cited via DOI thanks to Zenodo:
The original TurbinesFoam project was funded through a National Science Foundation CAREER award, principal investigator Martin Wosnik (NSF CBET 1150797, Energy for Sustainability, original program manager Geoffrey A. Prentice, current program manager Gregory L. Rorrer).
OpenFOAM is free, open source software for computational fluid dynamics (CFD), developed primarily by CFD Direct, on behalf of the OpenFOAM Foundation.
Interpolation, Gaussian projection, and vector rotation functions adapted from NREL's SOWFA.