This repository contains code used in my master's thesis titled: Turbulence modeling in computational fluid dynamics as part of my master's degree in Applied Mathematics at the University of Southern Denmark (SDU). It is also part of a submission for the proceedings of the FEniCS 2024 conference (FEniCS 2024).
Although only one turbulence model was implemented, namely the Lam-Bremhorst TurbulenceModel.py
file.
Two test cases have been implemented to validate the model: fully developed channel flow (ChannelSimulation.py
) and flow over a backward-facing step (BackStepSimulation.py
). However, meshes for flow around a cylinder and flow in a diffuser geometry are also provided.
To install, simply copy this repository to your machine. Besides FEniCS, make sure you also have the following packages installed: numpy
, matplotlib
.
The
One of the key features of turbulent flow is the high diffusivity of heat/momentum caused by the large swirling bodies forming in the flow, called turbulent eddies. The turbulence is therefore modeled using the so-called turbulent viscosity (
where
Additionally,
On top of that