|
[Sponsors] |
May 6, 2021, 11:14 |
Error in subroutine cal_WALLDIST
|
#1 |
New Member
Pengyu SHI
Join Date: Dec 2016
Location: Dresden
Posts: 15
Rep Power: 9 |
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 |
|
May 6, 2021, 12:28 |
|
#2 |
Senior Member
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,928
Rep Power: 28 |
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.
|
|
May 6, 2021, 13:59 |
|
#3 | |
New Member
Pengyu SHI
Join Date: Dec 2016
Location: Dresden
Posts: 15
Rep Power: 9 |
Quote:
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 | | | | | | | | | | | +--------------------------------------------------------------------+ |
||
May 6, 2021, 19:14 |
|
#4 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
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. |
|
May 7, 2021, 04:18 |
|
#5 | |
New Member
Pengyu SHI
Join Date: Dec 2016
Location: Dresden
Posts: 15
Rep Power: 9 |
Quote:
So, it seems that one can multiply a function of the wall-distance to any of the interfacial force coefficients except the drag coefficient. |
||
May 7, 2021, 05:38 |
|
#6 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
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. |
|
May 7, 2021, 11:37 |
|
#7 |
New Member
Pengyu SHI
Join Date: Dec 2016
Location: Dresden
Posts: 15
Rep Power: 9 |
yes. this is for sure, although "Liquid.Wall Distance" is the same as "Gas.Wall Distance".
|
|
May 7, 2021, 11:42 |
problem solved
|
#8 |
New Member
Pengyu SHI
Join Date: Dec 2016
Location: Dresden
Posts: 15
Rep Power: 9 |
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. |
|
Tags |
cfx, drag coefficient, wall distance |
|
|
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 |