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

DPM UDF Injection leads to 2 different particles

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread 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: 20
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's Avatar
 
Tian
Join Date: Mar 2009
Location: Berlin, germany
Posts: 122
Rep Power: 17
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: 20
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's Avatar
 
Tian
Join Date: Mar 2009
Location: Berlin, germany
Posts: 122
Rep Power: 17
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

Old   December 28, 2017, 23:57
Default me too
  #5
New Member
 
kresnadevaihza
Join Date: Dec 2017
Posts: 3
Rep Power: 8
toto98 is on a distinguished road
hi i want to do the same but i want to make particle generator in another program and make a file from it, and then i plug that file to dpm_inject udf to hook it up to the fluent. DO you solve it?
toto98 is offline   Reply With Quote

Reply


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
DPM: UDF - loop over all particles chris Fluent UDF and Scheme Programming 31 June 17, 2020 06:52
Injection of specific number of particles in DPM DH FLUENT 12 March 16, 2016 22:04
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 11:17.