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 Macro Definitions.
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_EDC_SCALES
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 UDFsDEFINE_PROFILE
DEFINE_PROPERTY UDFsDEFINE_REACTING_CHANNEL_BC
DEFINE_REACTING_CHANNEL_SOLVER
DEFINE_RELAX_TO_EQUILIBRIUM
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 UDFsDEFINE_TRANSIENT_PROFILE
DEFINE_TURB_PREMIX_SOURCE
DEFINE_TURB_SCHMIDT UDFDEFINE_TURBULENT_VISCOSITY
DEFINE_VR_RATE
DEFINE_WALL_FUNCTIONS
DEFINE_WSGGM_ABS_COEFF
Table 2.2: Quick Reference Guide for Model-Specific DEFINE Functions
|
Function |
|
Dialog Box Activated In |
|---|---|---|
|
anisotropic thermal conductivity |
|
Create/Edit Materials |
|
mixing constant |
|
User-Defined Function Hooks |
|
homogeneous net mass reaction rate for all species, integrated over a time step |
|
User-Defined Function Hooks |
|
species mass or UDS diffusivity |
|
Create/Edit Materials |
|
diffusive reflectivity for discrete ordinates (DO) model |
|
User-Defined Function Hooks |
|
source for DO model |
|
User-Defined Function Hooks |
|
specular reflectivity for DO model |
|
User-Defined Function Hooks |
|
ECFM source |
|
User-Defined Function Hooks |
|
ECFM spark source |
|
Set Spark Ignition |
|
electrochemical reaction rate |
|
User-Defined Function Hooks |
|
scales for the EDC model |
|
Species Model |
|
emissivity weighting factor for the radiative transfer equation of the non-gray P-1 model and the non-gray DO model |
|
User-Defined Function Hooks |
|
variation of scalar dissipation, mean mixture fraction grid, and mean progress variable grid for flamelet generation |
|
Species Model |
|
cell zone motion components in a moving reference frame or moving mesh simulation |
|
cell zone condition |
|
gray band absorption coefficient for DO model |
|
Create/Edit Materials |
|
weighted-sum-of-gray-gases model (WSGGM) absorption coefficient |
|
Create/Edit Materials |
|
soot absorption coefficient |
|
Create/Edit Materials |
|
wall heat flux |
|
User-Defined Function Hooks |
|
ignition time source |
|
User-Defined Function Hooks |
|
homogeneous net mass reaction rate for all species |
|
User-Defined Function Hooks |
Table 2.3: Quick Reference Guide for Model-Specific DEFINE Functions–Continued
|
Function |
|
Dialog Box Activated In |
|---|---|---|
|
NOx formation rates
(for Thermal NOx, Prompt NOx, Fuel NOx, and |
|
NOx Model |
|
PDF lookup table |
|
User-Defined Function Hooks |
|
particle surface reaction rate |
|
User-Defined Function Hooks |
|
Prandtl numbers |
|
Viscous Model |
|
species mass fraction |
|
boundary condition (for example, Velocity Inlet) |
|
velocity at a boundary |
|
boundary condition |
|
pressure at a boundary |
|
boundary condition |
|
temperature at a boundary |
|
boundary condition |
|
mass flux at a boundary |
|
boundary condition |
|
target mass flow rate for pressure outlet |
|
Pressure Outlet |
|
turbulence kinetic energy |
|
boundary condition (for example, Velocity Inlet) |
|
turbulence dissipation rate |
|
boundary condition |
|
specific dissipation rate |
|
boundary condition |
|
porosity |
|
boundary condition |
|
viscous resistance |
|
boundary condition |
|
inertial resistance |
|
boundary condition |
|
porous resistance direction vector |
|
boundary condition |
|
user-defined scalar boundary value |
|
boundary condition |
|
internal emissivity |
|
boundary condition |
Table 2.4: Quick Reference Guide for Model-Specific DEFINE Functions–Continued
|
Function |
|
Dialog Box Activated In |
|---|---|---|
|
wall thermal conditions (heat flux, heat generation rate, temperature, heat transfer coefficient, external emissivity, external radiation and free stream temperature) |
|
boundary condition |
|
shell layer heat generation rate |
|
Shell Conduction Layers |
|
wall radiation (internal emissivity, irradiation) |
|
boundary condition |
|
wall momentum (shear stress x, y, z components swirl component, moving wall velocity components, roughness height, roughness constant) |
|
boundary condition |
|
wall species mass fractions |
|
boundary condition |
|
wall user-defined scalar boundary value |
|
boundary condition |
|
wall discrete phase boundary value |
|
boundary condition |
|
density (as function of temperature) |
|
Create/Edit Materials |
|
density (as function of pressure for compressible liquids) |
|
Create/Edit Materials |
|
viscosity |
|
Create/Edit Materials |
|
mass diffusivity |
|
Create/Edit Materials |
|
thermal conductivity |
|
Create/Edit Materials |
|
thermal diffusion coefficient |
|
Create/Edit Materials |
Table 2.5: Quick Reference Guide for Model-Specific DEFINE Functions–Continued
|
Function |
|
Dialog Box Activated In |
|---|---|---|
|
absorption coefficient |
|
Create/Edit Materials |
|
scattering coefficient |
|
Create/Edit Materials |
|
laminar flame speed |
|
Create/Edit Materials |
|
rate of strain |
|
Create/Edit Materials |
|
speed of sound function |
|
Create/Edit Materials |
|
user-defined mixing law for mixture materials (density viscosity, thermal conductivity) |
|
Create/Edit Materials |
|
reacting channel inlet boundary conditions |
|
Reacting Channel Model |
|
reacting channel solver |
|
User-Defined Function Hooks |
|
species characteristic time for reaching chemical equilibrium |
|
User-Defined Function Hooks |
|
blending function for the Stress-Blended Eddy Simulation (SBES) model |
|
Viscous Model |
|
scattering phase function |
|
Create/Edit Materials |
|
solar intensity |
|
Radiation Model |
|
back diffusion |
|
Solidification and Melting |
|
mushy zone |
|
Solidification and Melting |
|
soot nucleation, surface growth, and oxidation rates for soot mass fraction equation |
|
Soot Model |
|
soot nucleation and coagulation rates for soot nuclei equation |
|
Soot Model |
|
soot oxidation rate |
|
Soot Model |
|
soot precursor |
|
Soot Model |
|
mass source |
|
cell zone condition |
|
momentum source |
|
cell zone condition |
|
energy source |
|
cell zone condition |
|
turbulence kinetic energy source |
|
cell zone condition |
|
turbulence dissipation rate source |
|
cell zone condition |
|
species mass fraction source |
|
cell zone condition |
|
user-defined scalar source |
|
cell zone condition |
|
P1 radiation model source |
|
cell zone condition |
|
SOx formation rate and upper limit for temperature PDF |
|
SOx Model |
|
spark kernel volume shape |
|
Set Spark Ignition |
|
specific heat and sensible enthalpy |
|
Create/Edit Materials |
|
surface reaction rate |
|
User-Defined Function Hooks |
|
thickened flame model |
|
User-Defined Function Hooks |
|
transition correlation numbers |
|
Viscous Model |
|
time-varying profiles |
|
cell zone condition |
|
turbulent premixed source |
|
User-Defined Function Hooks |
|
turbulent Schmidt number |
|
Viscous Model |
|
turbulent viscosity |
|
Viscous Model |
|
volume reaction rate |
|
User-Defined Function Hooks |
|
wall function |
|
Viscous Model |
Table 2.6: Quick Reference Guide for Model-Specific DEFINE Functions MULTIPHASE ONLY
|
Function |
|
Dialog Box Activated In |
|---|---|---|
|
volume fraction (all multiphase models) |
|
boundary condition |
|
contact angle (VOF) |
|
Wall boundary condition |
|
heat transfer coefficient (Eulerian) |
|
Phase Interaction |
|
surface tension coefficient (VOF) |
|
Phase Interaction |
|
cavitation surface tension coefficient (Mixture) |
|
Phase Interaction |
|
cavitation vaporization pressure (Mixture) |
|
Phase Interaction |
|
particle or droplet diameter (Mixture) |
|
Create/Edit Materials |
|
diameter (Eulerian, Mixture) |
|
Secondary Phase |
|
solids pressure (Eulerian, Mixture) |
|
Secondary Phase |
|
radial distribution (Eulerian, Mixture) |
|
Secondary Phase |
|
elasticity modulus (Eulerian, Mixture) |
|
Secondary Phase |
|
viscosity (Eulerian, Mixture) |
|
Secondary Phase |
|
temperature (Eulerian, Mixture) |
|
Secondary Phase |
|
bulk viscosity (Eulerian) |
|
Secondary Phase |
|
frictional viscosity (Eulerian) |
|
Secondary Phase |
|
frictional pressure (Eulerian) |
|
Secondary Phase |
|
frictional modulus (Eulerian) |
|
Secondary Phase |
|
granular viscosity (Eulerian) |
|
Secondary Phase |
|
granular bulk viscosity (Eulerian) |
|
Secondary Phase |
|
granular conductivity (Eulerian) |
|
Secondary Phase |
|
temperature source (Eulerian, Mixture) |
|
boundary condition |