|
[Sponsors] |
Error when creating an expression for a drag coefficient |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 1, 2012, 11:27 |
Error when creating an expression for a drag coefficient
|
#1 |
New Member
Javier Climent Agustina
Join Date: Nov 2011
Posts: 7
Rep Power: 15 |
Hello,
I am working with lagrangian particles in a settling tank. The continuous fluid is water. At the menu: Default Domain> Fluid pair models> Particle Transport DRag coefficient; I have changed the constant value of 0,44 with an empirical expression that depends on a Reynolds Particle number. Previously, I've created an expression for a particle Reynolds number, that is: Rep=Density*abs(Velocity-floc.Velocity)*floc.Mean Particle Diameter/Dynamic Viscosity and then, I have defined the empirical expression for the Drag coeffcient: Drag= 1702.9-1270.9*Rep+49.14*Rep^2 Up here all is ok. Finally, Ansys v13.0 don't let me introduce this "drag" expression instead of a constant typical value = 0,44. The Error message from Ansys is: "It must be assigned a numerical value, or an expression that resolves to a constant value". Why can't I work with a variable instead of a constant value? Could anyone help me, please? Thanks and regards everyone |
|
May 1, 2012, 20:27 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,872
Rep Power: 144 |
Note that you are setting the drag coefficient, not the drag force. Have you confused the two? Also note your "Rep" function does not use the slip velocity variable (which is preferred).
In section 8.5.4.2 of the documentation it lists the options for particle drag. It clearly states that using a drag coefficient requires a constant value. So you will need to go to one of the other options. |
|
May 2, 2012, 06:38 |
|
#3 |
New Member
Javier Climent Agustina
Join Date: Nov 2011
Posts: 7
Rep Power: 15 |
Thanks for replying,
I have not confused drag force and drag coefficient. I want to modify the drag coefficient depending on Reynolds particle. In the same way, I think in “Rep” expression is considered slip velocity because the velocity term is a relative one, that is, the difference between fluid velocity and particle velocity (floc.Velocity). As you explain, I have learnt the guide again and it’s clearly specified that drag coefficient must be a constant value. Therefore, I’m going to try the last option, select the drag coefficient option as “None” and then, create a Fortran Code in a subroutine. P.S: It’s a pleasure to talk with you, I have read a lot from you in this forum. |
|
May 8, 2012, 03:56 |
|
#4 |
New Member
Javier Climent Agustina
Join Date: Nov 2011
Posts: 7
Rep Power: 15 |
Hello Ghorrocks,
I succed in introducing a subrutine (introduced as Partivle User Subroutine) based on the Fortran code example on the Ansys Guide: "7.5.4.2.1.*Particle User Source Example". However, I have problems to introduce the input arguments. The main expression need two: Reynolds particle and particle volume fraction. Is there a tutorial anywhere that uses this subroutine? It appears as "pt_drag_factor.F" on the guide but I cannot find an example. Sould I create another subroutine in order to calculate Reynolds particle? Thanks |
|
May 8, 2012, 07:56 |
|
#5 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,872
Rep Power: 144 |
It is preferable to access the existing variable. If you cannot figure out how to do it contact CFX support, they should have some examples of similar things.
|
|
May 8, 2012, 09:43 |
|
#6 |
New Member
Javier Climent Agustina
Join Date: Nov 2011
Posts: 7
Rep Power: 15 |
Ok,
thanks again |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Drag Coefficient Convergence Problem | John | FLUENT | 18 | June 24, 2023 10:22 |
problem with saving drag coefficient | colopolo | FLUENT | 5 | April 12, 2013 11:59 |
Calculation of Drag Coefficient, Help Please | teek22 | CFX | 1 | April 26, 2012 19:41 |
Automotive test case | vinz | OpenFOAM Running, Solving & CFD | 98 | October 27, 2008 09:43 |
Lift, Drag Vs time chart,calculations | Jamesd69climber | CFX | 8 | February 17, 2005 18:23 |