# Changing the acceleration of DPM particles??

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

 April 26, 2010, 04:50 Changing the acceleration of DPM particles?? #1 Member   Roman Gobitz-Pfeifer Join Date: Dec 2009 Location: Stuttgart Posts: 76 Rep Power: 7 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, 02:47 #2 Senior Member   Max Join Date: Mar 2009 Posts: 133 Rep Power: 8 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, 04:41 #3 Member   Roman Gobitz-Pfeifer Join Date: Dec 2009 Location: Stuttgart Posts: 76 Rep Power: 7 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 05:04.

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post chris Fluent UDF and Scheme Programming 24 April 11, 2015 00:47 DH FLUENT 11 October 20, 2011 07:50 anissa FLUENT 1 July 20, 2009 13:36 Nikhil Dani FLUENT 0 January 1, 2009 12:58 Johannes FLUENT 12 July 6, 2007 11:19

All times are GMT -4. The time now is 16:48.