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

LES: Why is there no nuSgs field output?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 3, 2014, 10:39
Default LES: Why is there no nuSgs field output?
  #1
Senior Member
 
Huang Xianbei
Join Date: Sep 2013
Location: Yangzhou,China
Posts: 302
Rep Power: 13
huangxianbei is on a distinguished road
Hi, all:
As I have post some threads in our forum, I implemented the dynamic Vreman model in OF. While, for the first version, the program can run as good as dynamic Smagorinsky. The results are similar,however, the problem is that the nuSgs file contains only the boundaries set as in the initial condition.

Here is the version-1
DVM-1.tar.gz

While, I rewrite the code like this
DVM-3.tar.gz
The nuSgs field can be output as usual, but the calculation breaks down in the second time step

Could anyone give me some help about this problem? I have been worked on it for two days, problem still exists

Any help is appreciated

Xianbei
huangxianbei is offline   Reply With Quote

Old   September 3, 2014, 10:40
Default
  #2
Senior Member
 
Huang Xianbei
Join Date: Sep 2013
Location: Yangzhou,China
Posts: 302
Rep Power: 13
huangxianbei is on a distinguished road
here is the equations used in this model

huangxianbei is offline   Reply With Quote

Old   September 3, 2014, 22:55
Default
  #3
Senior Member
 
Huang Xianbei
Join Date: Sep 2013
Location: Yangzhou,China
Posts: 302
Rep Power: 13
huangxianbei is on a distinguished road
well, I think I get some idea about how.

First, I rewrote the code again( once again!!)

Here is the final version
DVM-final.tar.gz

First problem I faced: diverge after one time step

reason: unstable nuSgs values in the field. As can be seen from
http://www.cfd-online.com/Forums/ope...agorinsky.html
The dynamicSmagorinsky model is bounded to avoid negtive nuSgs. This is a good way to avoid divergence in dynamic model. Thus, I rewrote this part

Code:
nuSgs_ = max(-0.5*nu()*cV(alpha),-nu());
    nuSgs_.correctBoundaryConditions();
This significantly prevent divergence. Also , this is correct because in most cases, the backward energy transfer is negligible.Now the nuSgs field can be output. Also, in order to further improve the steadiness of the calculation, fvc::average is also used before the volume average.

Second problem: why the nuSgs field contains only part of the values. Not all the cells' value in the domain are output.

Reason: I think it's due to the zero value of nuSgs. Only the non-zero values are output in the nuSgs file.

Although problem seems been solved, still, most of the nuSgs value may be 0 as the calculation runs for several steps. I'll test it with a much longer time running.

If anyone is interested in this model, I'll be glad one can test this model in other cases.

PS: my case is the centrifugal pump impeller
huangxianbei 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
Finding time averaged flow field from LES? odellar OpenFOAM Post-Processing 9 July 8, 2021 10:00
funkySetBoundaryFields - Manipulation of existing field jhertel OpenFOAM Pre-Processing 16 May 18, 2020 06:32
How to control output time of pressureTools functions? Fluido OpenFOAM Post-Processing 1 May 19, 2014 08:49
RNG diverged during the analysis the flow over a multi element airfoil, why? s.m OpenFOAM Running, Solving & CFD 0 August 5, 2013 08:39
kEpsilon divergence s.m OpenFOAM Running, Solving & CFD 0 May 27, 2013 09:30


All times are GMT -4. The time now is 03:05.