Error when creating an expression for a drag coefficient
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:
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
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 18.104.22.168 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.
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.
I succed in introducing a subrutine (introduced as Partivle User Subroutine) based on the Fortran code example on the Ansys Guide: "22.214.171.124.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?
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.
|All times are GMT -4. The time now is 04:26.|