CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

Divergence problem in domain??

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 24, 2016, 01:16
Smile Divergence problem in domain??
  #1
New Member
 
Yousef
Join Date: Dec 2015
Posts: 14
Rep Power: 11
yousefaz is on a distinguished road
Hello,

I am trying to simulate a homogeneous atmospheric boundary layer in FLUENT using steady state RANS. I am using a Standard k-e model with inlet UDF functions for velocity, k, and epsilon as specified by Richards and Hoxey (1993).

For the most part, I seem to have set up the model correctly. Here is a comparison of the inlet and outlet profiles (which would collapse for a perfectly homogeneous ABL):



However, there seems to be a divergence issue at the bottom corner of the domain near the outlet (right hand side), which particularly affects the kinetic energy throughout the entire domain. It seems to occur in the boundary layer. The solution is fully converged with residual values dropping to 10E-7.

Here is the velocity contour (note the blue (=0 velocity) on the bottom right):



There is a concentration of negative pressure at that corner. Interestingly, no warnings of reverse flow appeared:



The turbulent kinetic energy contour shows values blowing up near that corner:




Zoomed pics with mesh shown:

Pressure:



TKE:



Epsilon:




Any ideas on how to resolve this issue would be greatly appreciated.
Thanks in advance.
yousefaz is offline   Reply With Quote

Old   November 23, 2016, 13:33
Default
  #2
New Member
 
U.S
Join Date: Jan 2016
Posts: 16
Rep Power: 10
sariug is on a distinguished road
hey man.

I have the same problem.

Have you figured it out ?
sariug is offline   Reply With Quote

Old   November 23, 2016, 22:13
Default
  #3
New Member
 
Yousef
Join Date: Dec 2015
Posts: 14
Rep Power: 11
yousefaz is on a distinguished road
Hi Sariug,

It turns out the problem is due to the standard wall function (SWF) in ANSYS Fluent, which is ideal for mechanical applications, not so much for atmospheric boundary flow.

The roughness value specified for the SWF in ANSYS Fluent is based on the equivalent sand grain roughness (Ks), whereas the log-law ABL equation is based on the aerodynamic roughness height (y0). The relationship between the two has been derived in the literature for the ANSYS Fluent code as follows:

Ks = 9.793*y0/Cs (default value of roughness constant: Cs = 0.5).

The problem here is that in urban flows (y0 = 0.5 - 2m) the resulting Ks value is very large (9.8 - 39.2 m). Fluent requires the centroid height of the near-ground cell (yp) to be at least equal to the equivalent sand grain roughness (yp>Ks). This means that your total first cell height would be unreasonably large (20-80m) and would not allow you to achieve high mesh refinement near the ground surface.

Ignoring the condition (yp>Ks) results in the problem described in this post, where there is an imbalance between the equations for the inlet profile, the turbulence model, and the SWF. This manifests as an initial acceleration of the flow near the ground surface, and a spike in the turbulent kinetic energy. However, as the flow travels across the domain, it adapts to the SWF, and the spike in TKE disappears. But you end up with a different Vel, tke, and epsilon profiles than what you specified at the inlet (i.e. an inhomogenous ABL).

PS: I noticed that in the posted images, the inlet is at the right hand side (flow is in the +ve x direction). So the issues described occur at the inlet, not the outlet.

This 2007 paper by Bert Blocken: (http://dx.doi.org/10.1016/j.atmosenv.2006.08.019) discusses the problem in more detail and suggests remedial measures to reduce this error.
There is no easy fix to this problem, but a few thing you can try:
  1. Select ABL profiles with smaller roughness values (y0)
  2. The inflation layer near the ground needs to transition smoothly to the far field (unlike the images attached in this post). This often requires increasing the number of inflation cells.
  3. In FLUENT, you can maximize the value of Cs (and hence minimize Ks). The maximum value allowed in the input window is 1, however, you can specify a larger value using this UDF:

    //Define roughness constant Cs
    DEFINE_PROFILE(roughness_constant_Cs,t,i)
    {
    real x[ND_ND];
    real z;
    face_t f;

    begin_f_loop(f,t)
    {
    F_CENTROID(x,f,t);
    z = x[2];
    F_PROFILE(f,t,i) = **; //replace ** with Cs value
    }
    end_f_loop(f,t)
    }
Note that these measures will not fully resolve the problem. The only way to do that is to develop a new wall function based on y0 instead of Ks.

Good luck
Y.A.Z
yousefaz 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
Rotating domain problem danielom ANSYS 0 November 22, 2013 11:16
Error finding variable "THERMX" sunilpatil CFX 8 April 26, 2013 08:00
Divergence problem Smaras FLUENT 13 February 21, 2013 06:03
Different conductivities for a SINGLE domain for CHT problem in CFX Mehul CFX 3 August 3, 2012 10:01


All times are GMT -4. The time now is 20:19.