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

Error in subroutine cal_WALLDIST

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By spy_hzdr

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 6, 2021, 11:14
Default Error in subroutine cal_WALLDIST
  #1
New Member
 
Pengyu SHI
Join Date: Dec 2016
Location: Dresden
Posts: 15
Rep Power: 9
spy_hzdr is on a distinguished road
Why in CFX drag coefficient cannot be defined as a function of the wall-distance?

Hi there, I am working on Euler-Euler simulation of bubbly flows in vertical pipes. My aim is to test a new drag force model, according to which the drag coefficient would increase when the bubble is approaching the wall.
I first tested the standard drag force model of Ishii-Zuber and the simulation was ok. I then modified the drag coefficient by multiplying the standard drag coefficient by a prefactor. This prefacor is a function of wall distance normalized by the bubble radius (e.g. prefacor = min(10, (1+0.1*LR^-4)) with LR = Liquid.Wall Distance/1 [mm]). The new simulation crashes in the first loop with the report given below. Can anyone give me a hint?
Best regards,
Pengyu

OUTER LOOP ITERATION = 1 CPU SECONDS = 3.218E+00
----------------------------------------------------------------------
| Equation | Rate | RMS Res | Max Res | Linear Solution |
+----------------------+------+---------+---------+------------------+
| Wallscale-Liquid | 0.00 | 2.6E-04 | 3.1E-04 | 42.4 2.6E-01 ok|
+----------------------+------+---------+---------+------------------+
----------------------------------
Error in subroutine cal_WALLDIST :
Error calculating WALLDIST_FL2
GETVAR originally called by subroutine cal_CAB_MOM

+--------------------------------------------------------------------+
| Writing crash recovery file |
+--------------------------------------------------------------------+

+--------------------------------------------------------------------+
| ERROR #001100279 has occurred in subroutine ErrAction. |
| Message: |
| Stopped in routine GV_ERROR |

Last edited by spy_hzdr; May 6, 2021 at 12:11. Reason: emphasis the key point
spy_hzdr is offline   Reply With Quote

Old   May 6, 2021, 12:28
Default
  #2
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,928
Rep Power: 28
Gert-Jan will become famous soon enough
I think the variable "WALLDIST_FL2" is refering to the second fluid. I would therefore try Gas.Wall Distance in stead of Liquid.Wall Distance.
Gert-Jan is offline   Reply With Quote

Old   May 6, 2021, 13:59
Default
  #3
New Member
 
Pengyu SHI
Join Date: Dec 2016
Location: Dresden
Posts: 15
Rep Power: 9
spy_hzdr is on a distinguished road
Quote:
Originally Posted by Gert-Jan View Post
I think the variable "WALLDIST_FL2" is refering to the second fluid. I would therefore try Gas.Wall Distance in stead of Liquid.Wall Distance.
thank you for the suggestion. I tried but got the following error:

Error in subroutine cal_WALLDIST :
Error calculating WALLDIST_FL1
GETVAR originally called by subroutine cal_CAB_MOM

+--------------------------------------------------------------------+
| Writing crash recovery file |
+--------------------------------------------------------------------+

+--------------------------------------------------------------------+
| ERROR #001100279 has occurred in subroutine ErrAction. |
| Message: |
| Stopped in routine GV_ERROR |
| |
| |
| |
| |
| |
+--------------------------------------------------------------------+
spy_hzdr is offline   Reply With Quote

Old   May 6, 2021, 19:14
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
I suspect the Wall Distance variable is only calculated if you are using a model which requires it - which is normally a turbulence model in the SST family. So unless you are using an SST based turbulence model the Wall Distance variable will not exist.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   May 7, 2021, 04:18
Default
  #5
New Member
 
Pengyu SHI
Join Date: Dec 2016
Location: Dresden
Posts: 15
Rep Power: 9
spy_hzdr is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
I suspect the Wall Distance variable is only calculated if you are using a model which requires it - which is normally a turbulence model in the SST family. So unless you are using an SST based turbulence model the Wall Distance variable will not exist.
thank you Glenn for the kind reply. Indeed, I am using SST. Also, I am pretty sure the Wall Distance variable is available in the setting: I also tried to modify the rest interfacial forces (e.g. lift, virtual mass, turbulent dispersion, wall lubrication) in a similar way as I did for the drag and all these simulations are ok.
So, it seems that one can multiply a function of the wall-distance to any of the interfacial force coefficients except the drag coefficient.
spy_hzdr is offline   Reply With Quote

Old   May 7, 2021, 05:38
Default
  #6
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Are you sure the Wall Distance variable is by phase? I mean you have "Liquid.Wall Distance", but is it just "Wall Distance"? The wall distance is the same as a location for all phases.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   May 7, 2021, 11:37
Default
  #7
New Member
 
Pengyu SHI
Join Date: Dec 2016
Location: Dresden
Posts: 15
Rep Power: 9
spy_hzdr is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
Are you sure the Wall Distance variable is by phase? I mean you have "Liquid.Wall Distance", but is it just "Wall Distance"? The wall distance is the same as a location for all phases.
yes. this is for sure, although "Liquid.Wall Distance" is the same as "Gas.Wall Distance".
spy_hzdr is offline   Reply With Quote

Old   May 7, 2021, 11:42
Default problem solved
  #8
New Member
 
Pengyu SHI
Join Date: Dec 2016
Location: Dresden
Posts: 15
Rep Power: 9
spy_hzdr is on a distinguished road
Hey everyone,
the problem disappears when I switch from CFX19.2 to CFX21.1. So, likely it is a bug with CFX19.2. Thank you veryone for your time.
Opaque likes this.
spy_hzdr is offline   Reply With Quote

Reply

Tags
cfx, drag coefficient, wall distance


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
Calculation Error in USER subroutine Asif17 CFX 3 June 29, 2016 04:45
Compiling User Fortran with CFX 14.0 on Win64 Raijin Thunderkeg CFX 29 March 9, 2016 12:45
Error in subroutine CONVERT_NAME_U2S_INT JDQFD CFX 2 January 21, 2014 10:19
Fortran Subroutine Error sergiorbrett CFX 12 September 3, 2012 08:40
Errorin subroutine appeared when applying cavitation model pitisrisuk CFX 1 July 2, 2012 04:36


All times are GMT -4. The time now is 14:51.