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

DPM update a scalar at reflection?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 11, 2010, 16:53
Default DPM update a scalar at reflection?
  #1
New Member
 
Ray Munoz
Join Date: Aug 2010
Posts: 3
Rep Power: 6
Fluent_user is on a distinguished road
Hi all,

I am working on writing a tribocharging UDF to simulate the flow of particles down a dispenser tube. The tube consists of a solid grooved core surrounded by a smooth outer sleeve.

So as the particle travels, its max possible distance from the centerline of the tube is constant, but the minimum possible distance changes due to the shape of the inner core.

The number of times a particle has collided with one of these surfaces affects the charge accumulated on it.

So my question is:
Can I set a scalar for each particle that will increment by 1 each time that particle collides with a wall?


The outer sleeve is the transparent red solid. The length of this is the region I am trying to right the UDF for.


Thanks all,
Ray

Last edited by Fluent_user; October 11, 2010 at 16:55. Reason: clarification
Fluent_user is offline   Reply With Quote

Old   October 13, 2010, 07:48
Default
  #2
New Member
 
sreenivasa rao gubba
Join Date: Sep 2010
Location: Leeds University, UK
Posts: 27
Rep Power: 6
sreerao is on a distinguished road
Hi

Yes you can setup a user defined scalar and initialise it in scalar updates. However, you may need to define number of scalars based on your particle number in your domain.

You can check with single particle and once you are happy with the results, you can define other scalars later.

Sree
sreerao is offline   Reply With Quote

Old   October 13, 2010, 16:00
Default
  #3
New Member
 
Ray Munoz
Join Date: Aug 2010
Posts: 3
Rep Power: 6
Fluent_user is on a distinguished road
By default the new variable created updates at each time step, correct?

If this is the case, I was thinking of having the variable run a check at each time step and only increment 'number of collisions' if the particle has just collided with one of the tube surfaces.

How will the UDF know to only update when there is a collision?

Thanks,
Ray
Fluent_user is offline   Reply With Quote

Old   October 14, 2010, 05:26
Default
  #4
New Member
 
sreenivasa rao gubba
Join Date: Sep 2010
Location: Leeds University, UK
Posts: 27
Rep Power: 6
sreerao is on a distinguished road
Hi

You are right. One way you can do this is writing and reading the number of collisions to/from a file. Make sure you append the file correctly each time.

Did you ever tried user defined memories? I feel that these memory locations wont be updated unless otherwise you initialise them every time. if you dont initialise them, they should have the previous value. (Just double check in the FLUENT manual what they say about user defined memory locations).

However, I feel confident about the writing and reading from a file, which wont be a problem from udf.

Sree
sreerao is offline   Reply With Quote

Reply

Tags
bounce, collision, particle, scalar update, tribocharging

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
dieselFoam problem!! trying to introduce a new heat transfer model vivek070176 OpenFOAM Programming & Development 10 December 24, 2014 00:48
DPM Scalar Update at specific time steps sega Fluent UDF and Scheme Programming 1 April 27, 2010 23:15
Reflection coefficient of particle in DPM model S.J.R FLUENT 1 June 9, 2007 19:03
particle body force and scalar update. Kasper Skriver FLUENT 1 March 21, 2006 10:55
UDF for DPM Reflection in "Porous Jump" Simon Steinmeyer FLUENT 0 December 22, 2004 08:22


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