|
[Sponsors] |
Turbulence injection via fvOptions: addSup, constrain, or correct? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 3, 2016, 13:59 |
Turbulence injection via fvOptions: addSup, constrain, or correct?
|
#1 |
Senior Member
Pete Bachant
Join Date: Jun 2012
Location: Boston, MA
Posts: 173
Rep Power: 14 |
I'm trying to create a turbulence source to accompany a momentum source (think a bluff body or stalled airfoil). I have some reference values for k and epsilon from a simulation with a body-fitted grid that I am trying to match, but I am having trouble figuring out how to translate those values into source values (or constraints or corrections). Here is the k equation syntax:
Code:
// Turbulent kinetic energy equation tmp<fvScalarMatrix> kEqn ( fvm::ddt(alpha, rho, k_) + fvm::div(alphaRhoPhi, k_) - fvm::laplacian(alpha*rho*DkEff(), k_) == alpha*rho*G - fvm::SuSp((2.0/3.0)*alpha*rho*divU, k_) - fvm::Sp(alpha*rho*epsilon_/k_, k_) + kSource() + fvOptions(alpha, rho, k_) ); kEqn.ref().relax(); fvOptions.constrain(kEqn.ref()); solve(kEqn); fvOptions.correct(k_); bound(k_, this->kMin_); Is the`addSup` method more correct to use if this is a turbulence source, and if so, how would you go about estimating a rate from a target value? |
|
May 22, 2020, 23:48 |
|
#2 |
Senior Member
René Thibault
Join Date: Dec 2019
Location: Canada
Posts: 114
Rep Power: 6 |
Did you find a solution about your problem?
I got similar issue. Regards |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Moving mesh | Niklas Wikstrom (Wikstrom) | OpenFOAM Running, Solving & CFD | 122 | June 15, 2014 07:20 |
Is this understanding of turbulence models correct? | 3kha | Main CFD Forum | 3 | January 31, 2011 22:31 |
pimpleDyMFoam turbulence -> correct | josp | OpenFOAM Bugs | 1 | May 8, 2010 06:43 |
correct turbulence model | co2 | FLUENT | 1 | May 7, 2004 15:23 |
turbulence modeling questions | llowen | Main CFD Forum | 3 | September 11, 1998 05:24 |