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

accessing dpm data commands, help!!!

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 9, 2011, 17:51
Default accessing dpm data commands, help!!!
  #1
New Member
 
patty
Join Date: Nov 2010
Posts: 21
Rep Power: 16
TedBrogan is on a distinguished road
hey,

does anyone know where all of the random commands used in udf's by fluent and even some users on here can be found? i'm talking about things that i can't find documented anywhere that seem to be critical for some udf's. for example:

p->stream_index = -1 to turn off a particle stream
loop(I, Ilist) { } to loop through all injections

i cant find documentation on these anywhere. it makes me wonder what other commands are out there that could really help me. can i go through any of the "xxx.h" files to find these?

in particular, im trying to set the start and stop time of an unsteady particle injection in a udf, but i can't find a macro for that in fluent's udf manual. id also like to know where people find these obscure commands so i can help myself more easily in the future.

thanks!
TedBrogan is offline   Reply With Quote

Old   May 10, 2011, 12:02
Default
  #2
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 22
Bernhard is on a distinguished road
Did you check dpm.h in the /src dir of your installation (for me in /opt/packages)? It is nice for accessing information of particles, but you should be very carefull to changes the variables from your udf.
Bernhard is offline   Reply With Quote

Old   May 10, 2011, 12:28
Default
  #3
New Member
 
patty
Join Date: Nov 2010
Posts: 21
Rep Power: 16
TedBrogan is on a distinguished road
Thank you for the reply, Bernhard.

I did look through all dpm_xxx.h and dpm.h files, and dpm_types.h seems to be the most resourceful file where things like P_INIT_RHO(p) or P_POS(p) are defined. Here's one line of code from the file:

#define P_INIT_RHO(p)((p)->init_state.rho)

To me, that means I could use either the macro P_INIT_RHO(p) or p->init_state.rho in a udf and get the same result. There's nothing defined in this file for start/stop time, however. The deeper question to me is where are things like init_state.rho or state.pos defined in the first place? That file is the one that would probably list all data access variables.
TedBrogan is offline   Reply With Quote

Old   May 11, 2011, 03:44
Default
  #4
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 22
Bernhard is on a distinguished road
I can find the time_of_birth real in the tracked_particle_struct

I'm not exactly sure what time you mean exactly with start/stop time, but I suppose those are solver settings, that you cannot change for a single particle.
Bernhard is offline   Reply With Quote

Old   May 19, 2011, 17:58
Default
  #5
New Member
 
patty
Join Date: Nov 2010
Posts: 21
Rep Power: 16
TedBrogan is on a distinguished road
I got it now, so here's how it works.

loop(p,I->p_init)
{
I->unsteady_start = ...
I->unsteady_stop = ...
}

You need to have initial values inserted in the GUI other than 0 for both or FLUENT will completely ignore the injection.
TedBrogan is offline   Reply With Quote

Reply

Tags
dpm, udf


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
Export Data DPM OSouza FLUENT 0 March 20, 2009 08:48
OpenFOAM14 for Mac OSX Darwin 104 gschaider OpenFOAM Installation 118 July 20, 2008 06:19
Saving particle (DPM) data to file? Philip FLUENT 2 June 12, 2006 02:41
How to update polyPatchbs localPoints liu OpenFOAM Running, Solving & CFD 6 December 30, 2005 18:27
Accessing solution data in UDF Ale FLUENT 1 June 12, 2002 01:25


All times are GMT -4. The time now is 05:27.