udf宏的功能
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
2.3. Model-Specific DEFINE Macros
The DEFINE macros presented in this section are used to set parameters for a particular model in ANSYS Fluent. Table 2.2: Quick Reference Guide for Model-Specific DEFINE Functions – Table 2.6: Quick Reference Guide for Model-Specific DEFINE Functions MULTIPHASE ONLY provides a quick reference guide to the DEFINE macros, the functions they are used to define, and the dialog boxes where they are activated in ANSYS Fluent. Definitions of each DEFINE macro are listed in udf.h. For your convenience, they are listed in Appendix B.
DEFINE_ANISOTROPIC_CONDUCTIVITY
DEFINE_CHEM_STEP
DEFINE_CPHI
DEFINE_DIFFUSIVITY
DEFINE_DOM_DIFFUSE_REFLECTIVITY
DEFINE_DOM_SOURCE
DEFINE_DOM_SPECULAR_REFLECTIVITY
DEFINE_ECFM_SOURCE
DEFINE_ECFM_SPARK_SOURCE
DEFINE_EC_RATE
DEFINE_EMISSIVITY_WEIGHTING_FACTOR
DEFINE_FLAMELET_PARAMETERS
DEFINE_ZONE_MOTION
DEFINE_GRAY_BAND_ABS_COEFF
DEFINE_HEAT_FLUX
DEFINE_IGNITE_SOURCE
DEFINE_NET_REACTION_RATE
DEFINE_NOX_RATE
DEFINE_PDF_TABLE
DEFINE_PR_RATE
DEFINE_PRANDTL UDFs
DEFINE_PROFILE
DEFINE_PROPERTY UDFs
DEFINE_REACTING_CHANNEL_BC
DEFINE_REACTING_CHANNEL_SOLVER
DEFINE_SBES_BF
DEFINE_SCAT_PHASE_FUNC
DEFINE_SOLAR_INTENSITY
DEFINE_SOLIDIFICATION_PARAMS
DEFINE_SOOT_MASS_RATES
DEFINE_SOOT_NUCLEATION_RATES
DEFINE_SOOT_OXIDATION_RATE
DEFINE_SOOT_PRECURSOR
DEFINE_SOURCE
DEFINE_SOX_RATE
DEFINE_SPARK_GEOM (R14.5 spark model)
DEFINE_SPECIFIC_HEAT
DEFINE_SR_RATE
DEFINE_THICKENED_FLAME_MODEL
DEFINE_TRANS UDFs
DEFINE_TRANSIENT_PROFILE
DEFINE_TURB_PREMIX_SOURCE
DEFINE_TURB_SCHMIDT UDF
DEFINE_TURBULENT_VISCOSITY
DEFINE_VR_RATE
DEFINE_WALL_FUNCTIONS
DEFINE_WSGGM_ABS_COEFF
Table 2.2: Quick Reference Guide for Model-Specific DEFINE Functions
Function DEFINE Macro Dialog Box Activated In anisotropic thermal conductivity DEFINE_ANISOTROPIC_CONDUCTIVITY Create/Edit Materials
mixing constant DEFINE_CPHI User-Defined Function Hooks homogeneous net mass reaction rate for
DEFINE_CHEM_STEP User-Defined Function Hooks
all species, integrated over a time step
species mass or UDS diffusivity DEFINE_DIFFUSIVITY Create/Edit Materials diffusive reflectivity for discrete
DEFINE_DOM_DIFFUSE_REFLECTIVITY User-Defined Function Hooks ordinates (DO) model
source for DO model DEFINE_DOM_SOURCE User-Defined Function Hooks specular reflectivity for DO model DEFINE_DOM_SPECULAR_REFLECTIVITY User-Defined Function Hooks ECFM source DEFINE_ECFM_SOURCE User-Defined Function Hooks ECFM spark source DEFINE_ECFM_SPARK_SOURCE Set Spark Ignition electrochemical reaction rate DEFINE_EC_RATE User-Defined Function Hooks emissivity weighting factor for the
DEFINE_EMISSIVITY_WEIGHTING_FACTOR User-Defined Function Hooks radiative transfer equation of the non-
gray P-1 model and the non-gray DO
model
variation of scalar dissipation, mean
DEFINE_FLAMELET_PARAMETERS Species Model
mixture fraction grid, and mean
progress variable grid for flamelet
generation
cell zone motion components in a
DEFINE_ZONE_MOTION cell zone condition
moving reference frame or moving
mesh simulation
gray band absorption coefficient for DO
DEFINE_GRAY_BAND_ABS_COEFF Create/Edit Materials model
weighted-sum-of-gray-gases model
DEFINE_WSGGM_ABS_COEFF Create/Edit Materials (WSGGM) absorption coefficient
soot absorption coefficient DEFINE_WSGGM_ABS_COEFF Create/Edit Materials
wall heat flux DEFINE_HEAT_FLUX User-Defined Function Hooks ignition time source DEFINE_IGNITE_SOURCE User-Defined Function Hooks homogeneous net mass reaction rate for
DEFINE_NET_REACTION_RATE User-Defined Function Hooks all species
Table 2.3: Quick Reference Guide for Model-Specific DEFINE Functions–Continued
Function DEFINE Macro Dialog Box Activated In NOx formation rates (for Thermal NOx,
DEFINE_NOX_RATE NOx Model
Prompt NOx, Fuel NOx, and O
Pathways) and upper limit for
temperature PDF
PDF lookup table DEFINE_PDF_TABLE User-Defined Function Hooks particle surface reaction rate DEFINE_PR_RATE User-Defined Function Hooks Prandtl numbers DEFINE_PRANDTL Viscous Model
species mass fraction DEFINE_PROFILE boundary condition (for example,
Velocity Inlet)
velocity at a boundary DEFINE_PROFILE boundary condition
pressure at a boundary DEFINE_PROFILE boundary condition temperature at a boundary DEFINE_PROFILE boundary condition
mass flux at a boundary DEFINE_PROFILE boundary condition
target mass flow rate for pressure outlet DEFINE_PROFILE Pressure Outlet
turbulence kinetic energy DEFINE_PROFILE boundary condition (for example,
Velocity Inlet)
turbulence dissipation rate DEFINE_PROFILE boundary condition
specific dissipation rate DEFINE_PROFILE boundary condition
porosity DEFINE_PROFILE boundary condition
viscous resistance DEFINE_PROFILE boundary condition
inertial resistance DEFINE_PROFILE boundary condition
porous resistance direction vector DEFINE_PROFILE boundary condition
user-defined scalar boundary value DEFINE_PROFILE boundary condition
internal emissivity DEFINE_PROFILE boundary condition