CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

How to add velocity in DPM?

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By Ebrahim

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 25, 2012, 10:08
Default How to add velocity in DPM?
  #1
New Member
 
Ebrahim
Join Date: Mar 2010
Posts: 28
Rep Power: 16
Ebrahim is on a distinguished road
Dear Freinds
I want track particles in a turbulent flow. for modeling the fluctuating velocities, I use a stochastic model which is not in FLUENT, so I should find fluctuating field, and supply these to the Lagrangian particle tracking unit and telling it to add those fluctuations to the mean velocities when doing trajectory computations!
Does anybody know how I can add the fluctuating velocity to the mean velocity?

Helps would be appreciated!
Ebrahim is offline   Reply With Quote

Old   January 6, 2014, 04:55
Default
  #2
New Member
 
Joshua
Join Date: Sep 2011
Posts: 3
Rep Power: 14
g0800276 is on a distinguished road
Hi Ebrahim, I am facing the same problem. Did you solve this problem? After a little search, I could not find a way in the UDF manual to change the fluctuating velocity. One possible way is to rewrite the formula through the macro for drag coefficient, body force or source. Please enlighten me if you have found a better solution already!!!
g0800276 is offline   Reply With Quote

Old   January 6, 2014, 14:47
Default
  #3
New Member
 
Ebrahim
Join Date: Mar 2010
Posts: 28
Rep Power: 16
Ebrahim is on a distinguished road
Quote:
Originally Posted by g0800276 View Post
Hi Ebrahim, I am facing the same problem. Did you solve this problem? After a little search, I could not find a way in the UDF manual to change the fluctuating velocity. One possible way is to rewrite the formula through the macro for drag coefficient, body force or source. Please enlighten me if you have found a better solution already!!!
Hi g0800276,

I explain this in another post to BehtashCFD. This is my reply. This way worked for me:

"
There is no special UDF for defining fluctuating velocities. However, you can use other UDFs such as defining Drag Coefficient (DEFINE_DPM_DRAG) or time step (DEFINE_DPM_TIMESTEP). I recommend you to use DEFINE_DPM_DRAG UDF.
When you use such UDF, you can define the drag coefficient in the same way that is defined in FLUENT.

Here is an example. in this UDF, the drag coefficient is obtained from the spherical law (which is one of the forms that is used in FLUENT).

#include "udf.h"
#include "dpm.h"

DEFINE_DPM_DRAG(particle_drag_force,Re,p)
{
real drag_force;

*************************************
Here you can write neccessary commands for obtaining the fluctuating velocities
and also adding the to the mean flow velocities.
At the end write the command below which defines the drag coefficient the same as FLUENT.
*************************************

drag_force = SphereDragCoeff(p->Re);

return drag_force;
}
"

Still having questions, do not hesitate to ask.

Bests,
Ebrahim
Ebrahim is offline   Reply With Quote

Old   July 16, 2014, 16:17
Smile
  #4
Azy
New Member
 
Azadeh Saeedi
Join Date: Mar 2014
Location: Canada
Posts: 23
Rep Power: 12
Azy is on a distinguished road
hello,

could you give me some help on calculating velocity gradient over tracked particle?
Azy is offline   Reply With Quote

Old   July 17, 2014, 11:14
Default
  #5
New Member
 
Ebrahim
Join Date: Mar 2010
Posts: 28
Rep Power: 16
Ebrahim is on a distinguished road
Quote:
Originally Posted by Azy View Post
hello,

could you give me some help on calculating velocity gradient over tracked particle?
Hello,

You can find the index of the cell which is occupied by the particle. Using that you may find approximate fluid velocity gradient at the particle location!
This method is not accurate, but may work for you
Ebrahim is offline   Reply With Quote

Old   July 18, 2014, 10:56
Default
  #6
Azy
New Member
 
Azadeh Saeedi
Join Date: Mar 2014
Location: Canada
Posts: 23
Rep Power: 12
Azy is on a distinguished road
Quote:
Originally Posted by Ebrahim View Post
Hello,

You can find the index of the cell which is occupied by the particle. Using that you may find approximate fluid velocity gradient at the particle location!
This method is not accurate, but may work for you
Hello Ebrahim,

Thanks for your reply.you mean I could use the particle index as the velocity gradient?

Thanks
Azy is offline   Reply With Quote

Old   July 19, 2014, 08:23
Default
  #7
New Member
 
Ebrahim
Join Date: Mar 2010
Posts: 28
Rep Power: 16
Ebrahim is on a distinguished road
Quote:
Originally Posted by Azy View Post
Hello Ebrahim,

Thanks for your reply.you mean I could use the particle index as the velocity gradient?

Thanks
Hi,

Here are the commands which I mean:

cell_t c;
Thread *t;
c = P_CELL(p);
t = P_CELL_THREAD(p);

Now, you can find velocity gradients in the occupied cell which is an approximation of what you want. Like:

C_U_G(c,t)

for a better estimation you may interpolate between the velocity gradients in the neighboring cells!

cheers
Azy likes this.
Ebrahim is offline   Reply With Quote

Old   July 19, 2014, 19:50
Default
  #8
Azy
New Member
 
Azadeh Saeedi
Join Date: Mar 2014
Location: Canada
Posts: 23
Rep Power: 12
Azy is on a distinguished road
Quote:
Originally Posted by Ebrahim View Post
Hi,

Here are the commands which I mean:

cell_t c;
Thread *t;
c = P_CELL(p);
t = P_CELL_THREAD(p);

Now, you can find velocity gradients in the occupied cell which is an approximation of what you want. Like:

C_U_G(c,t)

for a better estimation you may interpolate between the velocity gradients in the neighboring cells!

cheers
Thankss, you provide me with the great help.
Azy is offline   Reply With Quote

Reply

Tags
dpm, udf

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
UDF for DPM velocity, relative or real one? Zeallt Fluent UDF and Scheme Programming 3 March 4, 2015 18:41
Variables Definition in CFX Solver 5.6 R P CFX 2 October 26, 2004 03:13
How to compute an average slip velocity using DPM thomas FLUENT 0 February 9, 2004 09:17
particle velocity gradient in DPM winnie FLUENT 0 May 28, 2003 10:55
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 10:11


All times are GMT -4. The time now is 12:17.