CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Issues with swak4Foam gradient

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 4, 2018, 11:22
Default Issues with swak4Foam gradient
  #1
New Member
 
Join Date: Apr 2018
Posts: 3
Rep Power: 8
Egge is on a distinguished road
Hi guys,


I am calculating the dissipation of the turbulent kinetic energy with swak4foam. Compared to DNS-Data I got good agreemant in the domain bad a far to high value at the wall. So I tried another version, which I called version 2



Code:
gradUiMeanXjGradUiMeanXj
                {
                        type expressionField;
                        dimension [0 2 -3 0 0 0 0];
                        fieldName "gradUiMeanXjGradUiMeanXj";
                        expression "pow(gradUMean.xx,2) + pow(gradUMean.xy,2) + pow(gradUMean.xz,2) + pow(gradUMean.yx,2) + pow(gradUMean.yy,2) + pow(gradUMean.yz,2) + pow(gradUMean.zx,2) + pow(gradUMean.zy,2) + pow(gradUMean.zz,2)"; //tr=Trace
                        autowrite yes;
                        outputControl outputTime;
                }
This is one term to calculate the dissipation. This version is working good, also in the wall region.


In my first version I calculated e.g. this term

Code:
pow(gradUMean.xx,2)
in that way (version 1)

Code:
pow(grad(UMean.x).x,2)
.

In my eyes both versions are equal but version 1 gives to high values near the wall.


Can someone explain me please what is going wrong?


Thanks in advance


Egge
Egge is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
pimpleFoam in OF1612 shows same time step twice in log file shang OpenFOAM Bugs 10 January 24, 2018 10:43
pisoFOAM (LES) - internal pipe flow - convergence gu1 OpenFOAM Running, Solving & CFD 0 January 11, 2018 16:39
question regarding LES of pipe flow - pimpleFoam Dan1788 OpenFOAM Running, Solving & CFD 37 December 26, 2017 14:42
Periodic flow using Cyclic - comparison with Fluent nusivares OpenFOAM Running, Solving & CFD 30 December 12, 2017 05:35
[swak4Foam] fails in parallel with -otherTime? Phicau OpenFOAM Community Contributions 3 June 26, 2013 13:00


All times are GMT -4. The time now is 09:34.