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

Error when creating an expression for a drag coefficient

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 1, 2012, 11:27
Exclamation Error when creating an expression for a drag coefficient
  #1
New Member
 
Javier Climent Agustina
Join Date: Nov 2011
Posts: 7
Rep Power: 15
CFD_UJI is on a distinguished road
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
CFD_UJI is offline   Reply With Quote

Old   May 1, 2012, 20:27
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,872
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
ghorrocks is offline   Reply With Quote

Old   May 2, 2012, 06:38
Default
  #3
New Member
 
Javier Climent Agustina
Join Date: Nov 2011
Posts: 7
Rep Power: 15
CFD_UJI is on a distinguished road
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.
CFD_UJI is offline   Reply With Quote

Old   May 8, 2012, 03:56
Default
  #4
New Member
 
Javier Climent Agustina
Join Date: Nov 2011
Posts: 7
Rep Power: 15
CFD_UJI is on a distinguished road
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
CFD_UJI is offline   Reply With Quote

Old   May 8, 2012, 07:56
Default
  #5
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,872
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
ghorrocks is offline   Reply With Quote

Old   May 8, 2012, 09:43
Default
  #6
New Member
 
Javier Climent Agustina
Join Date: Nov 2011
Posts: 7
Rep Power: 15
CFD_UJI is on a distinguished road
Ok,

thanks again
CFD_UJI 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 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


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