SkillAgentSearch skills...

PimpleTKEBudgetFoam

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

Install / Use

/learn @AndreaDesan/PimpleTKEBudgetFoam
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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).

View on GitHub
GitHub Stars30
CategoryDevelopment
Updated4mo ago
Forks12

Languages

C++

Security Score

92/100

Audited on Nov 11, 2025

No findings