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

B.5 Discrete Phase Model DEFINE Macros

The following definitions for DPM DEFINE macros (see Section  2.5) are taken from the dpm.h header file. Note that dpm.h is included in the udf.h header file.

#define DEFINE_DPM_BC(name, p, t, f, normal, dim) \
  int name(Tracked_Particle *p, Thread *t, face_t f, \
           real normal[], int dim)

#define DEFINE_DPM_BODY_FORCE(name, p, i) \
  real name(Tracked_Particle *p, int i)

#define DEFINE_DPM_DRAG(name, Re, p) \
  real name(real Re, Tracked_Particle *p)

#define DEFINE_DPM_EROSION(name, p, t, f, normal, alpha, Vmag, mdot) \
  void name(Tracked_Particle *p, Thread *t, face_t f, real normal[], \
	    real alpha, real Vmag, real mdot)

#define DEFINE_DPM_HEAT_MASS(name, p, Cp, hgas, hvap, cvap_surf, dydt, dzdt) \
  void name(Tracked_Particle *p, real Cp, \
            real *hgas, real *hvap, real *cvap_surf, real *dydt, dpms_t *dzdt)

#define DEFINE_DPM_INJECTION_INIT(name, I) void name(Injection *I)

#define DEFINE_DPM_LAW(name, p, ci) \
  void name(Tracked_Particle *p, int ci)

#define DEFINE_DPM_OUTPUT(name, header, fp, p, t, plane) \
  void name(int header, FILE *fp, Tracked_Particle *p, \
            Thread *t, Plane *plane)

#define DEFINE_DPM_PROPERTY(name, c, t, p) \
  real name(cell_t c, Thread *t, Tracked_Particle *p)

#define DEFINE_DPM_SCALAR_UPDATE(name, c, t, initialize, p) \
  void name(cell_t c, Thread *t, int initialize, Tracked_Particle *p)

#define DEFINE_DPM_SOURCE(name, c, t, S, strength, p) \
  void name(cell_t c, Thread *t, dpms_t *S, real strength,\
            Tracked_Particle *p)

#define DEFINE_DPM_SPRAY_COLLIDE(name, tp, p) \
  void name(Tracked_Particle *tp, Particle *p)

#define DEFINE_DPM_SWITCH(name, p, ci) \
  void name(Tracked_Particle *p, int ci)

#define DEFINE_DPM_TIMESTEP(name, p, ts) \
  real name(Tracked_Particle *p,real ts)

#define DEFINE_DPM_VP_EQUILIB(name, p, cvap_surf) \
  void name(Tracked_Particle *p, real *cvap_surf)


next up previous contents index Previous: B.4 Dynamic Mesh Model
Up: B. DEFINE Macro Definitions
Next: B.6 User-Defined Scalar (UDS)
Release 12.0 © ANSYS, Inc. 2009-01-14