![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
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) |