[ANSYS, Inc. Logo] return to home search
next up previous contents index

2.5.11 DEFINE_DPM_SOURCE



Description


You can use DEFINE_DPM_SOURCE to specify particle source terms. The function allows access to the accumulated source terms for a particle in a given cell before they are added to the mass, momentum, and energy exchange terms for coupled DPM calculations.



Usage



DEFINE_DPM_SOURCE( name, c, t, S, strength, p)


Argument Type Description
symbol name UDF name.
cell_t c Index that identifies the cell that the particle is currently in.
Thread *t Pointer to the thread the particle is currently in.
dpms_t *S Pointer to the source structure dpms_t, which contains the
  source terms for the cell.
real strength Particle number flow rate in particles/second (divided by the
  number of tries if stochastic tracking is used).
Tracked_Particle *p Pointer to the Tracked_Particle data structure which
  contains data related to the particle being tracked.
   
Function returns  
void  
   

There are six arguments to DEFINE_DPM_SOURCE: name, c, t, S, strength, and p. You supply name, the name of the UDF. c, t, S, strength, and p are variables that are passed by the ANSYS FLUENT solver to your UDF. The modified source terms, after they have been computed by the function, will be stored in S.

figure   

Pointer p can be used as an argument to the macros defined in Section  3.2.7 to obtain information about particle properties (e.g., injection properties).



Example


See Section  2.5.13 for an example of DEFINE_DPM_SOURCE usage.



Hooking a DPM Source Term UDF to ANSYS FLUENT


After the UDF that you have defined using DEFINE_DPM_SOURCE is interpreted (Chapter  4) or compiled (Chapter  5), the name of the argument that you supplied as the first DEFINE macro argument will become visible in the Discrete Phase Model dialog box in ANSYS FLUENT. See Section  6.4.11 for details on how to hook your DEFINE_DPM_SOURCE UDF to ANSYS FLUENT.


next up previous contents index Previous: 2.5.10 DEFINE_DPM_SCALAR_UPDATE
Up: 2.5 Discrete Phase Model
Next: 2.5.12 DEFINE_DPM_SPRAY_COLLIDE
Release 12.0 © ANSYS, Inc. 2009-01-14