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

DPM UDF Injection leads to 2 different particles

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 26, 2010, 06:06
Default DPM UDF Injection leads to 2 different particles
  #1
Senior Member
 
sega's Avatar
 
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 10
sega is on a distinguished road
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?
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!"
sega is offline   Reply With Quote

Old   March 10, 2010, 08:11
Default
  #2
Senior Member
 
Tian
Join Date: Mar 2009
Posts: 101
Rep Power: 7
tian is on a distinguished road
Hi,

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

Bye
Tian

Last edited by tian; March 10, 2010 at 20:44.
tian is offline   Reply With Quote

Old   March 10, 2010, 08:16
Default
  #3
Senior Member
 
sega's Avatar
 
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 10
sega is on a distinguished road
Quote:
Originally Posted by tian View Post
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 ...
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!"
sega is offline   Reply With Quote

Old   March 10, 2010, 20:38
Default
  #4
Senior Member
 
Tian
Join Date: Mar 2009
Posts: 101
Rep Power: 7
tian is on a distinguished road
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 Sometime I hate the search function on this website... my fault

Bye
Tian
tian 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
DPM: UDF - loop over all particles chris Fluent UDF and Scheme Programming 23 July 13, 2012 18:23
Injection of specific number of particles in DPM DH FLUENT 11 October 20, 2011 08:50
DPM: using UDF for creating and deleting Particles Markus Alzon FLUENT 0 July 4, 2007 02:18
DPM, UDF, Injection Type Zhang FLUENT 0 June 8, 2005 16:51
UDF DPM injection M.A. Rakib FLUENT 0 June 13, 2000 09:28


All times are GMT -4. The time now is 01:03.