B.3. Multiphase DEFINE Macros

The following definitions for multiphase DEFINE macros (see Multiphase DEFINE Macros) are taken from the udf.h header file.

 #define DEFINE_CAVITATION_RATE(name, c, t, p, rhoV, rhoL, vofV, p_v, \
  cigma, f_gas, m_dot) \
  void name(cell_t c, Thread *t, real *p, real *rhoV, real *rhoL, \
    real *vofV, real *p_v, real *cigma, real *f_gas, real *m_dot)
 
 #define DEFINE_EXCHANGE_PROPERTY(name, c, mixture_thread, \
  phase_index_1, phase_index_2) \
  real name(cell_t c, Thread *mixture_thread, \
    int phase_index_1, int phase_index_2)
 
 #define DEFINE_HET_RXN_RATE(name, c, t, hr, mw, yi, rr, rr_t) \
  void name(cell_t c, Thread *t, \
  Hetero_Reaction *hr, real mw[MAX_PHASES][MAX_SPE_EQNS], \
    real yi[MAX_PHASES][MAX_SPE_EQNS], real *rr, real *rr_t)
 
 #define DEFINE_MASS_TRANSFER(name, c, mixture_thread, from_phase_index, \
  from_species_index, to_phase_index, to_species_index) \
  real name(cell_t c, Thread *mixture_thread, int from_phase_index, \
  int from_species_index, int to_phase_index, int to_species_index)
  
 #define DEFINE_VECTOR_EXCHANGE_PROPERTY(name, c, mixture_thread, \
  phase_index_1, phase_index_2, vector_result) \
  void name(cell_t c, Thread *mixture_thread, \
    int phase_index_1, \
    int phase_index_2, real *vector_result)