|
[Sponsors] |
DPM UDF Injection leads to 2 different particles |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 26, 2010, 06:06 |
DPM UDF Injection leads to 2 different particles
|
#1 |
Senior Member
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 20 |
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; } } 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!" |
|
March 10, 2010, 08:11 |
|
#2 |
Senior Member
Tian
Join Date: Mar 2009
Location: Berlin, germany
Posts: 122
Rep Power: 17 |
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. |
|
March 10, 2010, 08:16 |
|
#3 | |
Senior Member
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 20 |
Quote:
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!" |
||
March 10, 2010, 20:38 |
|
#4 |
Senior Member
Tian
Join Date: Mar 2009
Location: Berlin, germany
Posts: 122
Rep Power: 17 |
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 |
|
December 28, 2017, 23:57 |
me too
|
#5 |
New Member
kresnadevaihza
Join Date: Dec 2017
Posts: 3
Rep Power: 9 |
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?
|
|
|
|
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 |