Skip to content

OpenFOAM solver to calculate the resolved Reynolds stress, turbulent kinetic energy and dissipation rate at runtime in LES

License

Notifications You must be signed in to change notification settings

AndreaDesan/pimpleTKEBudgetFoam

Repository files navigation

pimpleTKEBudgetFoam

Extension of the OpenFOAM's pimpleFoam solver to calculate the total (SGS + resolved) turbulent kinetic energy k and turbulent dissipation rate \varepsilon at runtime during LES simulations. It can be easily extended to include all the terms of the turbulent kinetic energy budget.

In addition, the LES resolution index

LES_{ResIndex}=\frac{k_{Res}}{k_{Res}+k_{SGS}}

is also calculated at runtime.

Please note that the utlity assumes that the fieldAverage utility is used to calculate UMean. This is then used to calculate the fluctuating velocity vector UPrime within tkeBudget.H as UPrime = U - UMean.

If the time-averaging of U via fieldAverage is not set up in controlDict, the solver raises a warning and both kTot and epsilonTot will not be updated at runtime, keeping their initial value of zero (see the intialization in createFields.H and the "if" statement in tkeBudget.H).

About

OpenFOAM solver to calculate the resolved Reynolds stress, turbulent kinetic energy and dissipation rate at runtime in LES

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published