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

Changing the acceleration of DPM particles??

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 26, 2010, 04:50
Default Changing the acceleration of DPM particles??
  #1
Member
 
Roman Gobitz-Pfeifer
Join Date: Dec 2009
Location: Stuttgart
Posts: 83
Rep Power: 16
Wikie is on a distinguished road
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
Wikie is offline   Reply With Quote

Old   April 27, 2010, 02:47
Default
  #2
Senior Member
 
Max
Join Date: Mar 2009
Posts: 133
Rep Power: 17
coglione is on a distinguished road
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
coglione is offline   Reply With Quote

Old   April 27, 2010, 04:41
Default
  #3
Member
 
Roman Gobitz-Pfeifer
Join Date: Dec 2009
Location: Stuttgart
Posts: 83
Rep Power: 16
Wikie is on a distinguished road
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.
Wikie 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 05:52
Injection of specific number of particles in DPM DH FLUENT 12 March 16, 2016 21:04
dpm and size of particles anissa FLUENT 1 July 20, 2009 13:36
DPM - do the particles affect the liquid? Nikhil Dani FLUENT 0 January 1, 2009 11:58
DPM - Why do the particles not vanish? Johannes FLUENT 12 July 6, 2007 11:19


All times are GMT -4. The time now is 14:29.