|
[Sponsors] |
August 3, 2017, 16:31 |
User drag coefficient CFX
|
#1 |
Member
cfxtwophaseflow
Join Date: Aug 2017
Posts: 46
Rep Power: 8 |
Hi!
I'm simulating a bubbly flow using cfx. I want to use a user drag coefficient for that I'm trying to use the pt_drag_factor.F file in the cfx expemles directory. The input argument are the reynold number and the volume fraction. I created the expressions in the cfx_pre to calculate Re and the air velocity : Rep = air.density*airvelocity*air.mean particle diameter/air.viscosity airvelocity = sqrt(air.u^2+air.v^2+air.w^2) then in the drag coefficient box I call the function : UserDrag(Rep,air.vf) UserDrag is the name of the subroutine. I always have this error, I can't figure out how to fixe it : Fatal bounds error detected --------------------------- Variable: air | water.Drag Coefficient Locale : Default Domain +--------------------------------------------------------------------+ | Writing crash recovery file | +--------------------------------------------------------------------+ +--------------------------------------------------------------------+ | ERROR #001100279 has occurred in subroutine ErrAction. | | Message: | | Stopped in routine ENFORCE_BOUNDS | | | | | | | | | | | +--------------------------------------------------------------------+ +--------------------------------------------------------------------+ | An error has occurred in cfx5solve: | | | | The ANSYS CFX solver exited with return code 1. No results file | | has been created. | +--------------------------------------------------------------------+ |
|
August 3, 2017, 18:05 |
|
#2 |
Senior Member
Join Date: Jun 2009
Posts: 1,806
Rep Power: 32 |
Perhaps your drag coefficient is negative. Adding a write statement to your function to check it is computing a valid value ?
|
|
August 4, 2017, 10:02 |
using pt_drag_factor.F
|
#3 | |
Member
cfxtwophaseflow
Join Date: Aug 2017
Posts: 46
Rep Power: 8 |
Quote:
My questions are? is this the right way to calculate the reynold number Rep = air.density*airvelocity*air.mean particle diameter/air.viscosity airvelocity = sqrt(air.u^2+air.v^2+air.w^2)? and when I call the function UserDrag(Rep,air.vf) should I put only two input arguments? I'm using the pt_drag_factor.F without doing any modification. |
||
August 4, 2017, 12:02 |
|
#4 |
Member
cfxtwophaseflow
Join Date: Aug 2017
Posts: 46
Rep Power: 8 |
I found out where the error is. The pt_drag_factor.F can be used for the particle transport fluid model(Euler-Lagrange). And in my simulation, I was using the MUSIG model (Polydispersed model).
My question now is can I use a User drag coefficient for polydispersed and dispersed fluid (Euler-Euler) |
|
August 5, 2017, 06:14 |
|
#5 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,705
Rep Power: 143 |
The user fortran evaluates a CEL variable and you use that variable as the drag coefficient.
|
|
August 7, 2017, 14:35 |
|
#6 |
Member
cfxtwophaseflow
Join Date: Aug 2017
Posts: 46
Rep Power: 8 |
it works with the particle transport model but not with dispersed and polydispersed models.
Fatal bounds error detected --------------------------- Variable: air | water.Drag Coefficient Locale : Default Domain +--------------------------------------------------------------------+ | Writing crash recovery file | +--------------------------------------------------------------------+ +--------------------------------------------------------------------+ | ERROR #001100279 has occurred in subroutine ErrAction. | | Message: | | Stopped in routine ENFORCE_BOUNDS | | | | | | | | | | | +--------------------------------------------------------------------+ |
|
August 7, 2017, 19:13 |
|
#7 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,705
Rep Power: 143 |
That error message suggests your drag coefficient has a bounds error, which means that is a value which is not allowed. That could be a negative number, maybe zero or maybe larger than some upper bound.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Drag coefficient too high at flow around a cyclinder | Gunni | OpenFOAM Running, Solving & CFD | 17 | October 31, 2019 02:18 |
CFX User Fortran: Particle User Sources | hustxinxin | CFX | 0 | March 8, 2012 08:37 |
CFX User Fortran: Particle User Sources | hustxinxin | CFX | 0 | March 8, 2012 08:31 |
Automotive test case | vinz | OpenFOAM Running, Solving & CFD | 98 | October 27, 2008 08:43 |
drag and lift coefficient | Noé | Siemens | 5 | July 13, 2004 10:21 |