5.1. Population Balance Variables

The macros listed in Table 5.1: Macros for Population Balance Variables Defined in sg_pb.h can be used to return real variables associated with the population balance model. The variables are available in both the pressure-based and density-based solvers. The macros are defined in the sg_pb.h header file, which is included in udf.h.

Table 5.1:  Macros for Population Balance Variables Defined in sg_pb.h

Macro Argument Types Returns
C_PB_DISCI cell_t c, Thread *t, int i fraction () of the total volume fraction for the th size bin
C_PB_SMMI cell_t c, Thread *t, int i th moment
C_PB_QMOMI cell_t c, Thread *t, int i th moment, where
C_PB_QMOMI_L cell_t c, Thread *t, int i abscissa , where
C_PB_QMOMI_W cell_t c, Thread *t, int i weight , where
C_PB_DISCI_PS cell_t c, Thread *t, int i net source term to th size bin
C_PB_SMMI_PS cell_t c, Thread *t, int i net source term to th moment
C_PB_QMOMI_PS cell_t c, Thread *t, int i net source term to th moment


Release 18.2 - © ANSYS, Inc. All rights reserved.