CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > FLUENT

Using UDF to alter particle size

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 18, 2005, 04:05
Default Using UDF to alter particle size
  #1
Tumppi
Guest
 
Posts: n/a
Hello everybody

Kind of newbie quetion here. I'm trying to alter the particle size (diameter) with UDF in fluent. I made a little code for testing purposes and interpreted it and then defined an injection which uses this UDF. But when I dislay particle track, the diameter doesn't change. I used DEFINE_DPM_LAW as define function. If someone could help me it would be great.
  Reply With Quote

Old   May 18, 2005, 13:45
Default Re: Using UDF to alter particle size
  #2
Allan Walsh
Guest
 
Posts: n/a
I assume you are manipulating P_DIAM(p). Print out P_DIAM(p) in your UDF, before and after manipulating it. Depending on particle type (i.e. inert, combusting, etc.) FLUENT could reset it somewhere else.

Good luck.
  Reply With Quote

Old   May 23, 2005, 07:50
Default Re: Using UDF to alter particle size
  #3
Tumppi
Guest
 
Posts: n/a
Well seems thet I'm dooing something really wrong. When I put printf lines to see what happens I only get 0 values for P_DIAM(p) and its only reported once at the start.

If someone can guide me to right direction that would be nice.
  Reply With Quote

Old   May 23, 2005, 11:13
Default Re: Using UDF to alter particle size
  #4
Allan Walsh
Guest
 
Posts: n/a
Do the values for P_DIAM(P) match up with what FLUENT shows if you do a step-by-step particle tracking? They should.

If it is only getting to your print statement once, it could be that FLUENT is only using your UDF once and then setting the particle to use the next law. Can you check that.

  Reply With Quote

Old   May 25, 2005, 03:21
Default Re: Using UDF to alter particle size
  #5
Tumppi
Guest
 
Posts: n/a
I think I found the answer why I cant get the UDF to work. If you read part 19.9.3 Particle Types at the manual you can see that only law 1 is active when one uses inert particle (which I did). So I gues that I have to use a droplet particle type to get my UDF to work, am I right?

Thank you for your help so far Allan.
  Reply With Quote

Old   May 27, 2005, 03:23
Default Re: Using UDF to alter particle s. Problem Solved
  #6
Tumppi
Guest
 
Posts: n/a
Well I solved the problem and got it to work with inert particle, I had selected wrong law from the custom laws panel at injection properties. When I put my custom law as Law 1 I got it to work.

Thanks for help.
  Reply With Quote

Old   April 7, 2011, 10:17
Default
  #7
New Member
 
fabien tagada
Join Date: Oct 2010
Posts: 5
Rep Power: 6
tagada is on a distinguished road
Hello Tumppi,

I'm very interested to have a look on your UDF, I'm also trying to alter the particle size with UDF an,d it doesn't work.
This is my code:

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

DEFINE_DPM_LAW (diam_particle, p, ci)
{
/* compute new particle diameter */
P_DIAM(p) = 6*pow((0.015/2*0.7*1000.0*9.81)* 0.000300*P_POS(p)[0],1/3);
}
Thank you
tagada is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF for a field size spring FLUENT 0 May 11, 2010 09:02
SPH particle vs. real fragment size Katarina FLUENT 0 April 8, 2009 09:48
HELP! HELP! For udf of particle body force!!!! zhaoh FLUENT 0 February 5, 2007 05:10
udf about particle concentration--who can help me? zhaoh FLUENT 1 January 17, 2007 12:46
Help: UDF of "particle body force" !!! zhaoh FLUENT 3 January 16, 2007 21:17


All times are GMT -4. The time now is 22:13.