|
[Sponsors] | |||||
|
|
|
#1 |
|
Senior Member
Daniel WEI (老魏)
Join Date: Mar 2009
Location: South Bend, IN, USA
Posts: 569
Blog Entries: 2
Rep Power: 7 ![]() |
Anyone knows how to get the production and dissipation of TKE (turbulence kinetic energy)? Thanks
Is it in this way: Code:
volSymmTensorField D = symm(fvc::grad(U));
//volTensorField Dprim = symm(fvc::grad(U - UMean));
volScalarField prod = -((U - UMean)*(U - UMean)) && D;
volScalarField epsilon = sgsModel->epsilon();
__________________
Daniel WEI -------------------- NatHaz Modeling Laboratory Department of Civil Engineering and Geological Sciences University of Notre Dame Email || my-personal-website || my-New-CFD-Blog Last edited by lakeat; June 28, 2009 at 06:14. |
|
|
|
|
|
|
|
|
#2 |
|
New Member
Join Date: Mar 2010
Posts: 6
Rep Power: 4 ![]() |
Dear Daniel
I am also interested in this topic. Therefore, I would like to know if you found an answer to your question in the meantime. Cheers, Irina |
|
|
|
|
|
|
|
|
#3 |
|
Senior Member
Daniel WEI (老魏)
Join Date: Mar 2009
Location: South Bend, IN, USA
Posts: 569
Blog Entries: 2
Rep Power: 7 ![]() |
Sorry, it'e been a long time, but doesn't the codes in my last post work for you?
you can try with a channel case and see if its distribution is correct. Bye
__________________
Daniel WEI -------------------- NatHaz Modeling Laboratory Department of Civil Engineering and Geological Sciences University of Notre Dame Email || my-personal-website || my-New-CFD-Blog |
|
|
|
|
|
|
|
|
#4 |
|
Senior Member
John Deas
Join Date: Mar 2009
Posts: 160
Rep Power: 5 ![]() |
Hi,
why did you take the symmetrical part of grad(U) ? Why didn't you compute Code:
R && fvc::grad(Umean) Regards, JD |
|
|
|
|
|
|
|
|
#5 |
|
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,814
Rep Power: 21 ![]() |
Notice that the method epsilon() returns the SGS dissipation rate. Check doxygen to see how it is computed, depending on the specific model.
__________________
Alberto GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as live DVD/USB, hard drive image and virtual image. GeekoCFD 32bit - The 32bit edition of GeekoCFD. GeekoCFD text mode - A smaller version of GeekoCFD, text-mode only, with only OpenFOAM. Available in a variety of virtual formats. |
|
|
|
|
|
|
|
|
#6 |
|
Senior Member
John Deas
Join Date: Mar 2009
Posts: 160
Rep Power: 5 ![]() |
Hi Alberto,
thank you for your answer. When I take a look at src\turbulenceModels\LES\incompressible\oneEqEddy\ oneEqEddy.C, I read: Code:
void oneEqEddy::correct(const tmp<volTensorField>& gradU)
{
GenEddyVisc::correct(gradU);
volScalarField G = 2.0*nuSgs_*magSqr(symm(gradU));
solve
(
fvm::ddt(k_)
+ fvm::div(phi(), k_)
- fvm::laplacian(DkEff(), k_)
==
G
- fvm::Sp(ce_*sqrt(k_)/delta(), k_)
);
bound(k_, k0());
nuSgs_ = ck_*sqrt(k_)*delta();
nuSgs_.correctBoundaryConditions();
}
Code:
ce_*sqrt(k_)/delta() Code:
2.0*nuSgs_*magSqr(symm(gradU)) I also do not understand why the symmetric part of the gradient of U is mentionned in the previous post. Regards, JD |
|
|
|
|
|
|
|
|
#7 |
|
Senior Member
David Boger
Join Date: Mar 2009
Location: Penn State Applied Research Laboratory
Posts: 146
Rep Power: 5 ![]() |
The double-inner product of a symmetric and asymmetric second-rank tensor is zero, so in that sense, only the symmetric part of gradU "survives" anyway. So using only the symmetric part is harmless, but perhaps unnecessary.
__________________
David A. Boger |
|
|
|
|
|
|
|
|
#8 | |
|
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,814
Rep Power: 21 ![]() |
Quote:
volScalarField epsilon = sgsModel->epsilon(); does not return what you want. That epsilon is only the SGS epsilon. Since you do DNS, just apply the definition and you will be fine :-) Best,
__________________
Alberto GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as live DVD/USB, hard drive image and virtual image. GeekoCFD 32bit - The 32bit edition of GeekoCFD. GeekoCFD text mode - A smaller version of GeekoCFD, text-mode only, with only OpenFOAM. Available in a variety of virtual formats. |
||
|
|
|
||
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Turbulent Dissipation Rates - epsilon | Otute | Main CFD Forum | 5 | May 20, 1999 10:51 |