CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (http://www.cfd-online.com/Forums/fluent-udf/)
-   -   DPM UDF Injection leads to 2 different particles (http://www.cfd-online.com/Forums/fluent-udf/72121-dpm-udf-injection-leads-2-different-particles.html)

sega January 26, 2010 06:06

DPM UDF Injection leads to 2 different particles
 
Hello World.

All I wanted to do is as particle surface injection with specified Diameter and Density via UDF:

Code:

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

DEFINE_DPM_INJECTION_INIT(testInjection,I)
{
    Particle *p;

    cell_t cell;
    Thread *cthread;

loop(p,I->p)
{
    cell = P_CELL(p);
    cthread = P_CELL_THREAD(p);
   
    P_DIAM(p) = 1e-3;
    P_RHO(p) = 1.0;
}

}

Not problem so far, but when I have a look at the results I get two different kinds of particles.
One with the properties defined in the UDF and one with the properties defined unter Define / Materials.

Why is that so? Does the UDF not overwrite the entry in the GUI?

tian March 10, 2010 08:11

Hi,

did you finish your work? I also need particle surface injection for my case. Thank you

Bye
Tian

sega March 10, 2010 08:16

Quote:

Originally Posted by tian (Post 249332)
Hi,

did you finish your work? I also need particle surface injection for my case. It would be nice if you can share your solver with me. Thank you

Bye
Tian

I didn't follow this problem.
I simply don't touch the input from the GUI via the UDF (so far).

But I suppose your question is a little more general.
For surface injection there is nothing to share.
All informations are in the User Guide ...

tian March 10, 2010 20:38

Hi Sega,

I want to simulate a complicated surface smell. From this surface particles should to come out. I want to examine whether my air conditioning system functions. The particles should be only passive scalars.

Oh, I just see this is a wrong forum, sorry, should be in OpenFOAM question :mad: Sometime I hate the search function on this website... my fault

Bye
Tian


All times are GMT -4. The time now is 19:18.