|
[Sponsors] |
April 26, 2010, 05:50 |
Changing the acceleration of DPM particles??
|
#1 |
Member
Roman Gobitz-Pfeifer
Join Date: Dec 2009
Location: Stuttgart
Posts: 83
Rep Power: 16 |
Hello,
I want to change just the acceleration for the DPM particles. Instead of -9.81 m/s² i want to have -0.004 m/s². For all the other phases except the particles it should still be -9.81 m/s². I tried to change it, including a UDF for the particles, but I'm new to FLUENT, especially to UDF and so it's not working in the way I want. In my case I can neglect all other acceleration, body forces an and drag forces. This is my first try of the UFD. Can anybody help me with this problem?? #include "udf.h" DEFINE_DPM_BODY_FORCE(particle_body_force,p,i) { real bforce=0; if(i==1) bforce=-0.004; /* an acceleration should be returned */ return (bforce); } Thanks a lot Wikie |
|
April 27, 2010, 03:47 |
|
#2 |
Senior Member
Max
Join Date: Mar 2009
Posts: 133
Rep Power: 17 |
Hello Wikie,
I'm not sure but I guess your particles still "feel" the gravitational acceleration of -9.81 m/s2 incorporated as standard body force term in the equation of motion for particles as soon as gravitation is on (operating condition). In my opinion to force a net-acceleration of -0.004 m/s2 your udf should return an acceleration of +9.806 m/s2. Just try and see if this matches your expectations. cheers |
|
April 27, 2010, 05:41 |
|
#3 |
Member
Roman Gobitz-Pfeifer
Join Date: Dec 2009
Location: Stuttgart
Posts: 83
Rep Power: 16 |
Hello coglione,
thanks for your reply. I tried your suggestion and changed the acceleration to +9.806 m/s², but without any success. Based on an acceleration of -0.004m/s² the particle resistance time should be something about 20s, now it's just 0.41s. If I change the gravity for the whole setup to -0.004 m/s² it's working fine for the particles but not for the surrounding humid air flow. In my opinion the main problem is how I'm trying to write the UDF. This is my first time programming an UDF. Could anybody please have a look at my first try?? As written above I want to have an acceleration for all particles everywhere and every time of -0.004 m/s². #include "udf.h" DEFINE_DPM_BODY_FORCE(particle_body_force,p,i) { real bforce=0; if(i==1) bforce=-0.004; /* an acceleration should be returned */ return (bforce); } Thanks a lot Wikie Last edited by Wikie; April 27, 2010 at 06:04. |
|
|
|
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 and size of particles | anissa | FLUENT | 1 | July 20, 2009 14:36 |
DPM - do the particles affect the liquid? | Nikhil Dani | FLUENT | 0 | January 1, 2009 12:58 |
DPM - Why do the particles not vanish? | Johannes | FLUENT | 12 | July 6, 2007 12:19 |