|
[Sponsors] |
May 18, 2005, 05:05 |
Using UDF to alter particle size
|
#1 |
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. |
|
May 18, 2005, 14:45 |
Re: Using UDF to alter particle size
|
#2 |
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. |
|
May 23, 2005, 08:50 |
Re: Using UDF to alter particle size
|
#3 |
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. |
|
May 23, 2005, 12:13 |
Re: Using UDF to alter particle size
|
#4 |
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. |
|
May 25, 2005, 04:21 |
Re: Using UDF to alter particle size
|
#5 |
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. |
|
May 27, 2005, 04:23 |
Re: Using UDF to alter particle s. Problem Solved
|
#6 |
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. |
|
April 7, 2011, 11:17 |
|
#7 |
New Member
fabien tagada
Join Date: Oct 2010
Posts: 5
Rep Power: 16 |
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 |
|
February 28, 2019, 09:27 |
UDF to consider the particle size in DPM
|
#8 |
Member
Liliana de Luca Xavier Augusto
Join Date: Feb 2013
Posts: 68
Rep Power: 13 |
Hi all,
I am simulating a situation where I have a particle travelling in a fluid. The gap where the fluid flows is too small, and the particle size became important in this case. Does anyone know how can I use an UDF to consider the particle size? I would be an UDF to make the collision between the particle and the boundary when the distance between the "point" (particle in DPM) is equal or smaller than the diameter of the particle. Thanks! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF for a field size | spring | FLUENT | 0 | May 11, 2010 10:02 |
SPH particle vs. real fragment size | Katarina | FLUENT | 0 | April 8, 2009 10: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 |