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

User drag coefficient CFX

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 3, 2017, 16:31
Exclamation User drag coefficient CFX
  #1
Member
 
cfxtwophaseflow
Join Date: Aug 2017
Posts: 46
Rep Power: 8
sarrazs is on a distinguished road
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. |
+--------------------------------------------------------------------+
sarrazs is offline   Reply With Quote

Old   August 3, 2017, 18:05
Default
  #2
Senior Member
 
Join Date: Jun 2009
Posts: 1,806
Rep Power: 32
Opaque will become famous soon enough
Perhaps your drag coefficient is negative. Adding a write statement to your function to check it is computing a valid value ?
Opaque is offline   Reply With Quote

Old   August 4, 2017, 10:02
Default using pt_drag_factor.F
  #3
Member
 
cfxtwophaseflow
Join Date: Aug 2017
Posts: 46
Rep Power: 8
sarrazs is on a distinguished road
Quote:
Originally Posted by Opaque View Post
Perhaps your drag coefficient is negative. Adding a write statement to your function to check it is computing a valid value ?
Thank you for your reply Opaque. All the parameter on the CD expression are positive.
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.
sarrazs is offline   Reply With Quote

Old   August 4, 2017, 12:02
Default
  #4
Member
 
cfxtwophaseflow
Join Date: Aug 2017
Posts: 46
Rep Power: 8
sarrazs is on a distinguished road
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)
sarrazs is offline   Reply With Quote

Old   August 5, 2017, 06:14
Default
  #5
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,705
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
The user fortran evaluates a CEL variable and you use that variable as the drag coefficient.
ghorrocks is offline   Reply With Quote

Old   August 7, 2017, 14:35
Default
  #6
Member
 
cfxtwophaseflow
Join Date: Aug 2017
Posts: 46
Rep Power: 8
sarrazs is on a distinguished road
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 |
| |
| |
| |
| |
| |
+--------------------------------------------------------------------+
sarrazs is offline   Reply With Quote

Old   August 7, 2017, 19:13
Default
  #7
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,705
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
ghorrocks 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
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


All times are GMT -4. The time now is 15:29.