An external library for OpenFOAM, containing a custom boundary condition for a velocity field behind cylinder.
WakeFoam library contains a custom inflow boundary condition, which uses a trained Neural Network to simulate the velocity field of a cylinder wake at the inflow boundary.
When using the wakeFoam library the net.pt
and wake_BC
files must be present in the simulations folder.
cd $WM_PROJECT_USER_DIR
git clone https://github.com/ComputationalDomain/wakeFoam.git
cd wakeFoam
wmake
flowSpeed
Defines the flowspeed outside of the wake (Note: the velocity should be adjusted according to parameterD
such that the Reynolds number stays equal to 100).locationY
Defines the location of the center axis in spanwise direction.locationStreamwise
Defines the distance of inlet surface from the cylinder (e.g. 8 diameters behind cylinder).D
Diameter of the cylinder.streamwise
streamwise axis (e.g. x).spanwise
spanwise axis (e.g. y).
There are tutorials located in wakeFoam/tutorials
.
This repository is licensed under MIT as given in LICENSE.