ANSYS Fluent UDF Manual 16.0

所需积分/C币:50 2019-02-01 11:10:14 15.21MB PDF
收藏 收藏 4
举报

ANSYS官方用户自定义函数学习文档,可以用于被ANSYS FLUENT求解器动态加载以增强其标准功能的C语言程序。
Table of contents Using this manual.............. ,非。·非非来··。。非非非非非 1. The Contents of this manual XXV 2. The Contents of the fluent manua|s∴….Xvi 3. Typographical Conventions XXVIll 4. Mathematical Conventions. 5. Technical Support...... XXXI l. Creating and Using User Defined Functions.. 音 1. overview of User-Defined Functions(UDFs). ···· 1. What is a User-Defined function? 1334 1.2. Limitations∴4 1.3. Defining Your UDF Using DEFINE Macros. ................4 1.3.1. ncluding the udf. h Header file in your source file…………………………..5 14. Interpreting and Compiling UDFs….........….……,………,6 14.1. Compiled∪DFs………,…,…,…,…,…,…,…,…,…,…,…,…,…,…………………6 1.4.2. Interpreted UDFs 鲁·着普。音。看音音 14.3. Differences Between Interpreted and Compiled UDFs……….…………6 1.5. Hooking UDFs to Your aNsYS Fluent Model 7 1.6. Mesh Terminology……,…,…,…,…,…,…,…,,, ·····4············:··4·:················ 8 1.7. Data Types in ANSYS Fluent 1. 8. UDF Calling Sequence in the Solution Process. .............................................................10 1.8.1. Pressure-Based Segregated Solver. 1.8.2. Pressure-Based Coupled Solver..........................12 1.8.3. Density-Based Solver...............................13 1.9. Special Considerations for Multiphase UDFs........................... 14 1.9.1. Multiphase- specific Data Types…… 14 2. DEFINE Macros∴ 17 2.1. Introduction…,,…………117 2.2. General Purpose DEFInE Macros.......... 17 2.2.1. DEFINE ADJUST……………418 2.2.1.1. Description 18 22.1.2. Usage……,…,…,…,…,…,…,…,…,…,…,,…,…,,19 22.1.3. Example1......... 19 2. 2.1.4. Example 2............................. ·:········:::···:··中··:·················:···4· 20 2215. Hooking an Adjust UDF to ANSYS Fluent.....………20 2.2.2. DEFINE DE工TAT,,…,20 2,2.2.1. Description,,…,……,…,…,…,…,…,…,…,…,…,…,…,…,…,20 2.2.2.2. Usage,.,.,…,,…,…,,…,…,,,……,…,20 2.2.2.3. Example…………,…,…,,…,,…,…,,…,…,…,…,,…,…,…,,…,,,,21 2.2.2.4. Hooking an Adaptive time Step udF to ansyS Fluent 21 2.2.3. DEFINE EXECUTE T END 非。音非。非非自非非·非·自非普·。非自普。音非非普非 21 2.2.3.1. Description…… ·+··+··+ 21 2.2.3.2. Usage ········:····:···························:···:·:····:··· ···音音非音普音非·D 22 2.2.3.3. Example.... 22 2.2.3.4. Hooking an Execute-at-End UdF to ANSYS Fluent.........................22 2.2.4. DEFINE三Ⅹ ECUTE AT EⅩ工T23 2.,2.4.1. Description……,,…,…… ,23 2.2.4.2. Usage… ·.·鲁非·音着非 ········:·:···:············.····;········· 23 224.3. Hooking an Execute-at-Exit UDF to ANSYS Fluent.…………23 2.2.5. DEFINE三Ⅹ ECUTE FROM GU工,, 23 2.2.5.1. Description………………… 23 Release 16.0-O SAS /P Inc. All rights reserved. -Contains proprietary and confidential information of ansys inc and its subsidiaries and affiliates Customization manual 2.,2.5.2. Usage…,…,,…,,…,…,,…,…,…,…,…,…,…,,…,……,…,…,23 2. 2.5.3. Example 24 2.2.5.4. Hooking an Execute From GUl UDF to ANSYS Fluent........ 音非·非D非非非看非 25 2.2.6. DEFINE EⅩ E CUTE○NL○ ADING 25 2. 2.6.1. Description............. 25 2.2.6.2. Usage,…,…,…, ··非音非音·着·。非非·非·非音,非非看非D非非非非非非···非 25 2.2.6.3. Example 1 自音非 25 2.2.6.4. Example 2................... ························:······:····:·:····:······:························:··· 26 2.2.6.5. Hooking an Execute On Loading UDF to ANSYS Fluent...... 27 2.2.7. DEFINE卫 XECUTE AFTER CASE/DATA∴ 27 2.2.7.1. Description 27 2. 2.7. 2 Usage 27 2.2,7.3. Example… 28 2.2.7.4. Hooking an Execute After Reading Case and Data File UdF to ANSYS Fluent.....28 2.2.8. DEFINE工N工T.28 2.28.1. Description…….…,…,…,…,…,…,…,…,…,…,…,…,,…,……,…,…,28 2. 2.8.2. Usage 28 2.2.8.3. Example.......... 29 2.2.8.4. Hooking an Initialization UdF to ANSYS Fluent 29 2.2.9. DEFINE ON DEMAND ······;······ 29 2.2.9.1. Description……,…,…,…,…,…,…,…,…,,,… 29 2.2.9.2. Usage...........,…….,30 2.2.9.3. Example..........,)0 2.2.9.4. Hooking an On-Demand UdF to ANSYS Fluent 31 2.2.10. DEFINE OUTPUT PARAME四三R∴.31 2.2.10.1. Description…,…, 31 2.2.10.2. Usage,..,.,.,,…,,…,…, 31 2.,2.10.3. Example……,…,…,…,…,…,…,,…,…,,…,,……,……,,32 2.2.10.4. Hooking an Output Parameter UDF to ANSYS Fluent ···:········ 32 2.2.11. DE FINE RW F工L…………33 2.2.11.1.Description........... 33 2.2.11.2. Usage 33 2.2.11.3. Example 33 2.2.11.4. Hooking a read/ Write case or data file udf to aNSyS fluent….………134 2.2.12. DEF INE RW HDE E工LE∴ 4 2.2.12.1. Description……,…,…,,…,…,…,…,…,… ·:···:·:··::·:·:··:····: 34 2.,2.12.2. Usage…,,… 34 2.2.12.3. Helper Functions ................................................................34 2.2.12.4. Examples……,…,,.,.,….,….,,.,.,…,.,.,,,….…,…,9 2.2.12.5. Hooking a Read/Write HDF Case or Data File UdF to ANSYS Fluent ·····:·:····· 40 2.3. Model-Specific DEF工Ⅳ彐 Macros……,…,…,…,…,…,…,,…,,,,…,,……,240 2.3.1. DEFINE ANI SOTROPIC CONDUCTIVITY 47 2.3.1.1. Description……,…,…,…,…,…,…,…,…,…,…,…,,…,, 47 23.1.2. Usage……,…, ..47 2313. Example… 47 2.3.1.4. Hooking an Anisotropic Conductivity UDF to ANSYS Fluent ··· 48 2.3.2. DEFINE CHEM STEP…,…………………………………49 23.2.1. Description……… 49 2.3.2.2. Usage,,… .··:·:····::.:::·.:··:··:.···::.·::·:::.···.··: 49 23.2.3. Example,… ·。音·垂··。非 …50 2.3.24. Hooking a Chemistry Step UDF to ANSYS Fluent………,…,……………………50 2.3.3. DEFINE CPH工∴ 50 Release 16.0-O SAS /P Inc. All rights reserved. -Contains proprietary and confidential information of ansys inc and its subsidiaries and affiliates Custom ization manual 2.3.3.1. Description...,.,.,,…,.,…,….,…,…,…,…,,……,50 2.3.3.2. Usage∴ 50 2.3.3.3. Hooking a Mixing Constant UDF to ANSYS Fluent D。非非非音非着·,非非·番。非。非来非非非非非·非非·非。音非。非 2.3.4. DEFINE D工 FFUSIV工TY,,451 2.3.4.1. Description…… 51 2.3.4.2. Usage,…,…,…,… ·非章非·非·音,非·着·着非D自非非音非非非·非 51 2.3.4.3. Example 51 23.44. Hooking a diffusivity UDF to ANSYS F|uent….……… 52 2.3.5. DEFINE DOM DIFFUSE REFLECTIVITY .52 2.3.5.1. Description.......…, 非鲁非着非鲁 5 2 2.3.5.2. Usage,… 52 2.3.5.3. Example.....................53 2.3.5.4. Hooking a Discrete Ordinates Model (dom)Diffuse Reflectivity UdF to ANSYS Flu ent ..:.:· ·· 。非垂 53 2.3.6. DEFINE D○ M SOURCE∴54 2.3.6.1. Description……,…,…,…,…,…,…,…,…,…,…,…,…,,…,………,…54 2.3.6.2.∪sage,,…,…,…,…,…,…,…,…,,… 54 2.3.6.3. Example....... 54 2.3.6.4. Hooking a dom source udf to ANSYS Fluent ······························4··· 55 2.3.7. DEFINE DOM SPECULAR REFLECTIVITY 55 2.3.7.1. Description………,…,…,…,…,…,…,…,…,…,…,…,…,…,…,…, 55 2.3.7.2. Usage… 55 2.3.7.3. Example........................ ······*······.·················.····:····:······ 56 2.3.7.4. Hooking a Discrete Ordinates Model (doM)Specular Reflectivity UDF to ANSYS Flu- ent ···:·:····:····4· ·.··· 56 2.3.8. DEFINE ECFM SOURCE ,57 2.3.8.1. Description,…….,…,…. 57 2.3.8.2. Usage 57 2.3.83. Example...............157 23.84. Hooking an ECFM Flame Density Area Source UDF to ANSYS Fluent……………58 239. DEFINE ECFM SPARK SOURCE 58 2.3.9.1,. Description……,…,…,…,…,…,…,…,…,…,…,…,…,…,…………58 2.3.9.2. Usage 58 2.3.93. Example..................159 2.3.9.4. Hooking an ECFM Spark Source UDF to ANSYS Fluent 59 2.3.10. DEFINE EMISSIVITY NE IGHTING FACTOR .................................................59 2.3.10.1. Description………,…,…,…,…,…,…,…,…,…,…,…,……,59 2.3.10.2. Usage.…..,.,.,.,…,…,…,…,…,…,…,…,…,…,,59 23.10.3. Example…………,…,,…,,…,…,,…,…,,…,………50 2.3.104. Hooking an Emissivity Weighting Factor UDF to ANSYS Fluent…………0 2.3.11. DEFINE Z○NEM○T工○N……60 2.3.11.1. Description 60 2.3.11.2. Usage,…,…,…,…,…,…,…,… :····· ····;···· 60 23.113. Example… .61 23.114. Hooking a Frame Motion UDF to ANSYS Fluent……… 62 2.3.12. DEFINE GRAY BAND ABS COEFE 62 23.12.1. Description……,….,….,…,…,…,…,…,…,…,…,…………62 23.122. Usage,……,…,…,…,,…,.…,….,…,….…,…,….,…,…,….……,62 2.3.123. Example.62 2.3.12.4. Hooking a gray band coefficient udf to ANSYS Fluent................ 63 2.3.13. DEFINE HEAT FLUX 2.3.13.1. Description…… 63 Release 16.0-O SAS /P Inc. All rights reserved. -Contains proprietary and confidential information of ansys inc and its subsidiaries and affiliates Customization manual 23.132. Usage,……,…,… 63 2.3.133. Example… 64 2.3.13.4. Hooking a heat flux Udf to ANSYS Fluent........................64 2.3.14. DEFINE工GN工 TE SOURCE……………… 64 2.3.14.1.Description 64 2.3.14.2. Usage ··非非·.···音非非非·非非非·鲁,非··非非D·,非·非非着非 ·非非·非非非非鲁自非‖非非非非非非,非·非·非自···。音非非着非D·非非·非·自自非非非南非非非·非·非 64 2.3.. Example 音非音。音。自指。音自。音。音音音由自音。自。自鲁;。自自。着自曲。曲自音。音曲曲自非着音音自着音。 2.3.14.4. Hooking an lgnition Source udf to aNsyS Fluent 66 2.3.15. DEFINE NET REACTION RATE ..66 2.3.15.1. Description 。·非非非非非。曹 非非着·非·非·自非4 D· 66 23.15.2. Usage. ·········曲 .67 2.3.15.3. Example….....67 2.3.154. Hooking a Net reaction Rate UdF to ANSYS Fluent…,…,…,………………,68 2.3.16. DEFINE NOX RATE ··· 68 23.16.1. Description……,…,…,…,…,…,…,…,,……,…,………………,.68 2.3.162. Usage,…,,,…,.,…,…,.,…,…,…,,…,…,,…,…,…,…….,69 2.3.16.3. Example 1 :·····;······:·······.····:.···:······· 70 2.3.16.4. Example 2 鲁 B。音鲁曲。音曲音音。鲁自。音。 71 2.3.165. Hooking a NOx Rate UDF to ANSYS Fluent.……,…,…,………………72 23.17 DEFINE PDF TABLE 72 2.3.17.1. Description………,…,,… ·4·······.····;··· 72 2.317.2. Usage…… 73 23.173. Example1........75 2.3.17. 4 Example 2 76 2.3.17.5. Hooking a define pdf TABlE Udf to ANSYS Fluent...............78 2.3.18. DEFINE PR RA卫巳 78 2.3.18.1. Description…,…, 78 2.3.18.2. Usage… ····:········a···.中··:·.··:·:·.·:······.:··.··:··.···.··:.··.·:·中·:······· 78 2.3.18.3. Auxiliary function........,.,,.,,,…,,…,,,,,,79 2.3.18.4. Example1…….…….….…..…..….….….….….….…...…......79 2.3.18.5. Example 2 80 2.3.18.6. Hooking a particle reaction rate udf to ansys fluent.................81 23.19 DEFINE PRANDTL UDES 81 23.19.1. DEFINE PRANDTL 2.3.19.2. Description……………… 带看看垂 82 2.3.193. Usage,,.,,…,,,…,,,…,…,…,…,…,……,…,…………,,82 2.3.194. Example…………,…… 82 2.3.19.5. Hooking a Prandtl Number UDF to ANSYS Fluent 82 2.3.19.6. DEFINE PRANDTL K 2.3.19.7. Description……,…,,…,…,…,…,…,…,…,…,…,…,…,…,…,.,82 2.3.198. Usage……,…,…,…,…,…,…,…,…,…,…,…,…,…,…,…,, 82 2.3.199. Example.83 23.19.10. Hooking a Prandtl Number UDF to ANSYS Fluent……………………284 2.3.19.11. DEFINE PRANDTL, O 84 2.3.19.12. Description………,…,…,…,…,…,…,…,……,…,…,……………,84 23.19.13. Usage. ·······“· ········ 84 2.3.19.14. Example.,5 2.3.19.15 Hooking a Prandtl Number UdF to ANSYS Fluent 85 2.3.19.16. DEFINE PRANDTL T 85 2.3.19.17. Description.………………85 23.19.18. Usage 85 2.3.19.19. Example 85 Release 16.0-O SAS /P Inc. All rights reserved. -Contains proprietary and confidential information of ansys inc and its subsidiaries and affiliates Custom ization manual 2.3.19.20 Hooking a Prandtl Number UdF to aNSYS Fluent..... 86 2.3.19.2T. DE FINE PRANDTL T WALL 86 2.3.19.22. Description…….…4.186 2.3.1923. Usage…,…,…,…,…,…,…,…,…,…,…,…,…,…,…,… 86 2.3.19.24. Example. 86 23.19.25. Hooking a Prandtl Number UDF to ANSYS Fluent…………………………286 23.20, DEFINE PROFILE 87 2.3.20.1. Description….,.,…,…,….,…,.,…,,…,…,…,………,……,87 2.3.202. Usage…… .87 2.320.3. Example1- Pressure profile……….8 2.3.20.4. Example 2-Velocity, Turbulent Kinetic Energy, and Turbulent Dissipation Rate Pro filesww.wwwwwwwwwww..w..w....ww.....4.89 23,20.5. Example3- Fixed Velocity UDF………,……,…,…,…,……… 91 2.3.20.6. Example 4-Wall Heat Generation Rate profile 23.20.7. Example5- Beam Direction Profile at sem- Transparent Wal|!s,……,……,……93 2.3.20.8. Example 6-viscous Resistance Profile in a porous Zone..............94 2.3.20.9. Example7- Porous resistance direction vector……………………………95 2.3.20.10. Example 8-Target Mass low Rate UdF as a Function of Physical Flow Time...95 23.20.11. Example9- Mass flow rate udf for the mass flow inlet………,…,,…,…, 96 2.3.20.12 Hooking a Boundary Profile UDF to ANSYS Fluent .......96 2.3.21. DEFINE PR○ PERTY UDES氰96 2.3.21.1. Description 96 2.3.21.2. Usage,… 98 23213 Auxiliary Utilities…… 98 2.3.21.4. Example 1- Temperature-dependent viscosity Property............ 100 2.3.21.5. Example 2-User-defined Mixing Law for Thermal Conductivity ...........100 2.3.21.6. Example 3-Surface Tension Coefficient UDF........................101 2.3.21.7. Example4- Density Function for Compressible Liquids……,…,………………10 2.3.21. 8 Hooking a Property UdF to ANSYS Fluent........................102 2.3.22. DEFINE REACTING CHANNEL BC 2.3.22.1 Description……… 102 23.22.2. Usage ·非鲁省·非鲁非普非鲁非非·非非自非·非非鲁非非·非非鲁··非鲁自非普·音自。非··非自自非非着音,自非非。自非。非,音非·非音自非非非非鲁d 102 2.3.22.3. Example t非自4·非。着B鲁自。 103 2.3.22.4. Hooking a Reacting Channel Solver UDF to ANSYS Fluent……………………104 2.3.23. DEFINE REACTING CHANNEL SOLVER 104 2.3.23.1. Description……. ··· 104 2.3.232. Usage....,… 105 2.3.23.3. Example… 1非。·······.···着 105 2.3.23.4. Hooking a reacting channel solver udf to aNsys Fluent 107 2.3.24. DEFINE SCAT PHASE FUNC.…………………107 2.3.24.1. Description……,……,…,,,,, 107 2.3.24.2. Usage,..,.,…,.,…,…,…,…,…,,…,……,108 2.3.24.3. Example………,…,…,…,…,…,…,…,…,…,…,…,…,,,108 2.3.24.4. Hooking a Scattering phase udf to ANSYS Fluent 鲁普。鲁,。音非番布音音非 109 2.3.25.DEF工NES○LAR工NTNS工TY,109 2.3.25.1. Description .109 2.3.25.2. Usage,..,.,…,…,…,,…,…,109 2.3.25.3. Example 110 23,254. Hooking a Solar Intensity UDF to ANSYS Fluent……,,,……………,110 23.26 DEFINE SOLIDIFICATION PARAMS ········ 110 2.3.26.1. Description …………………10 2.3.26.2. Usage…,,…,…,…,…,…,…,…,…,…,…,…,…,…,…,,,……,110 Release 16.0-O SAS /P Inc. All rights reserved. -Contains proprietary and confidential information of ansys inc and its subsidiaries and affiliates Customization manual 23.263. Example..11 2.3.26.4. Hooking a Solidification Parameter UDF in ANSYS Fluent 2.3.27.DEF工NES○○ T MASS RATES∴…,111 2.3.27.1. Description………,…,…,…,…,…,…,…,…,…,…,… 111 2.327.2.U5age………… 111 2.3.27.3. Example: Soot Mass Rate 非非音非非非·。非。·非非 …4112 2.3.27. 4 Hooking a Soot mass rate UdF to ANSYS Fluent.........................113 2.3.28. DEFINE S○○ T NUCLEA∏I○ N RATES.…………114 2.3.28.1. Description 114 2.3.282. Usage,… ·非非·非自非非非。非非非自非普·非自·非。非 着·非非·非·非非看音非非 ∴…114 2.3.28.3. Example: Soot Nucleation and coagulation Rates 2.3.28.4. Hooking a Nucleation and Coagulation Rates UDF to ANSYS Fluent. ...................116 2.3.29. DEFINE S○○T○Ⅹ IDATION RAT三,116 2.3. 29.1.Description....... 116 2.3.29,2. Usage………………………………116 2.3.29.3. Example: Soot Oxidation Rate..................................117 2.3.29.4. Hooking a Soot Oxidation Rate UDF to ANSYS Fluent 18 23.30 DEFINE SOOT PRECURSOR 鲁音非鲁非普 18 2.3.30.1. Description…….…………,…,…,…,…,,…,…,…,………118 2.3.30.1.1. Usage.. 118 2330.1,2. Example: Soot precursor……,,,,,….,,,…,118 2.3.30.1.3. Hooking a soot PReCUrSOR UdF to ANSYS Fluent 119 2.3.31.DEF工 NE SOURCE 19 23.31.1. Description……… 119 23.31.2. Usage…...,.,… 119 2.3.31. 3 Example 1- Source Term Addition 120 23.314. Example2- Degassing Boundary Condition…,,…,……,…,………………121 23.315. Hooking a Source UDF to ANSYS Fluent…… 非非。音·d·非音音非非非··非非市音鲁非。非·非非申非·。自。非非非音 122 2.3.32. DEFINE S○ X RATE,,,………… 122 2.3.32.1. Description............................. ····.········ 122 2.3.32.2. Usage,....,.,,…,…,…,,…,,…,…,…,……,123 23.323. Example1...........,, 非非卷 124 2.3.32.4. Example 2 26 23.325. Hooking a Sox Rate UDF to ANSYS Fluent……...,………,127 2333. DEF INE SPARK GEOM(R14.5 spark mode1)…………… 127 2.3.33.1. Description…,…,…,…,,…,…,…,…,…,…,,…,……,……,127 2.3.33.2. Usage…,…,…,…,…,…,…,…,…,…,…,…,…,…,……,127 2.3.33.3. Example ……1 23.33.4. Hooking a spark geometry udf to ANSYS Fluent.……,…………129 2.3.34. DEFINE SPECIFIC HEAT,……4130 2.3.34.1. Description………………,…,…,…,……,…,…,…,…,…,………,………………130 2.3.34.2. Usage 130 23.34.3. Example…...,.,.,.,.,.,.,.,.,.,,,,130 2.3.34.4. Hooking a specific heat UDF to ANSYS Fluent 131 23.35 DEFINE SR RATE 131 2.3.35.1. Description…… 131 23.352. Usage…,, 131 2.3.35.3. Example 1-Surface Reaction Rate Using Species Mass Fractions.........132 2.3.35.4. Example 2- Surface Reaction Rate Using Site Species.............. 132 2.3.35.5. Hooking a Surface reaction Rate Udf to ansyS fluent ................. 133 23.36. DEFINE THICKENED三LAMM○DEL……………… 133 2.3.36.1. Descrⅰ ption…… 133 Release 16.0-O SAS /P Inc. All rights reserved. -Contains proprietary and confidential information of ansys inc and its subsidiaries and affiliates Custom ization manual 2.3.362. Usage,..,.,.,,…,…,… 133 2.3.36.3. Example-Thickened Flame Model 134 2.3.36.4. Hooking a thickened flame model udf to aNSYS Fluent ......................................134 2.3.37. DEFINE TRANS UDFS∴……… 134 2.3.37.1. DEFINE TRANS FLENGTH∴… 135 23.372. Description……… ·D·非看 135 2.3.37.3. Usage 135 23.37.4. Example........,.,...,135 2.3.37.5. Hooking a Transition Correlation UDF to ANSYS Fluent 135 2.3.37.6. DEFINE TRANS RETHETA C∴…135 2.3.37.7. Description 135 2.3.37.8. Usage,…,…,…,…,…,…,,…,,………,…,……,,135 2.3.379. Example…… 136 2.3.37.10. Hooking a Transition Correlation UDF to ANSYS Fluent…………136 2.3.37.11. DEFINE TRANS RETHETA T............................... 136 2337.12. Description............,..,….,…,…,…,…136 2.3.37.13. Usage,…,…,…,…,…,…,… 136 2.3.37.14. Example 137 2.3.37.15 Hooking a Transition Correlation UDF to ANSYS Fluent 137 2.3. 38 DEFINE TRANSIENT PROFILE .137 2.3.38.1. Description 非 137 23.38.2. Usage… ···· 137 2.3.38.3. Example.138 2.3.38.4. Hooking a transient profile udf to ansys Fluent 138 2.3.39. DEFINE TURB PREMIX SOURCE. ............................................................................138 2.3.39.1. Description……,…,…,…,…,…,…,…,…,…,…,…,…,…,……,…,…,……,138 2.3.392. Usage,..,......,,.,.,…,,…,…,……,…,…,……,138 2.3.393. Example…..,.,.,.,…,….,…,…,…,,………,139 2.3.394 Hooking a turbulent Premixed Source UDF to ANSYS Fluent.….……………139 2.3.40. DEFINE TURB SCHⅣ MIDT UDE…………………………140 2.3.40.1. Description · 140 2.3.40.2. Usage… 140 2.3.40.3. Example 140 2.3.40.4. Hooking a turbulent Schmidt Number UdF to ANSYS Fluent. ...........................140 2.3.41. DEFINE卫 RBULENT VISCOSITY∴ 鲁番垂看看D量鲁,垂 鲁垂看,垂 14 2.3.41.1. Description …………141 2.3.41.3. Example 1-Single Phase Turbulent Viscosity UDF....................141 23.414. Example2- Multiphase Turbulent Viscosity UDF……………………142 23.41.5. Hooking a Turbulent Viscosity UDF to ANSYS Fluent…………………,142 2.3.42. DEFINE VR RAT,……142 2.3.42.1. Description......... 。。由 142 2.3.42,2. Usage…,,…,…,…,…,…,…,…,…,…,,…,…,…,…,…,,…,…,……,………,,143 23423. Example1… ∴143 2.3. 4 Example 2.............. 144 2.3.42.5. Hooking a volumetric Reaction rate udf to ansys Fluent 145 2.3.43. DEFINE№ ALL FUNCTIONS∴……145 2.3.43.1. Description 145 23.43.2. Usage,.,.,,.,….,…,…,…,,…,…,,,…,……………,145 2.3.43.3. Example……,….,.,..,.,.…..,.,.,.,..,....…....,145 2.3.43.4. Hooking a Wall Function UDF to ANSYS Fluent. ···::·.·············:················· 146 23.44 DEFINE WSGGM ABS COEFF 146 Release 16.0-O SAS /P Inc. All rights reserved. -Contains proprietary and confidential information of ansys inc and its subsidiaries and affiliates Customization manual 2.3.44.1. Description 46 23.44.2. Usage 146 2344.3. Example.147 23.44.4. Hooking a Wall Function UDF to ANSYS Fluent…………………………148 2.4. Multiphase DEFINE Macros...............................148 2.4.1.DEF工NE3◎工L工NGPR○ PERTY,, 150 2.4.1.1. Description 150 24.1.2. Usage…,…,…,…,…,…,…,…,…,…,…,…,…,…,…,…,…,……,…,…,…,150 2.4.1.3. Example 51 24.14. Hooking a Boiling Property UDF to ANSYS Fluent…….….,.,…,….,…,…,…,,,151 2.4.2. DEFINE CAVITATION RATE 151 2.4.2.1. Description 151 24.2.2. Usage……,…,…,…,…,…,…,…,…,…,…,…,…,…,…,…,…,…,…,…,…,151 24.2.3. Example..........,...........,152 2.4.2.4. Hooking a cavitation rate udf to ANSYS Fluent………,153 2.4.3. DEFINE EXCHANGE PROPERTY 53 2.4.3.1. Description ·。.。· ·+。非。非非。 153 2.4.3.2. Usage… 鲁音非鲁非普 154 24.33. Example1- Custom Drag Law…….….….….….…,….,…,………………,…,155 2.4.3.4. Example 2-Custom Lift Law....................156 24.3.5. Example3- Heat Transfer…… 157 2.4.3.6. Example 4-Custom Interfacial Area......... 157 24.3.7. Hooking an Exchange Property UDF to ANSYS Fluent………………157 2.4 4 DEFINE HET RXN RATE 158 244.1. Description.....,.,,.,….,…,…………158 2.4.4.2. Usage 158 2.4.4.3. Example :····:·············:· 159 2.4.4.4. Hooking a heterogeneous reaction rate udf to aNSyS Fluent ··················.·.····· 160 2.. DEFINE LINEARIZED MASS TRANSFER, .................................................................161 2.4.5.1. Description……,…,…,…,…,…,…,…,,…,………,…,…,…,……,……………,161 2.4.5.2.U5age,....,...,,…,,…,,,…,,……,…,…,161 2.4.5.3 Example 162 2.4.5.4. Hooking a Linearized Mass Transfer UdF to ANSYS Fluent 163 2.4.6. DEFINE MASS TRANSFER ..........................................................................................164 2.4.6.1. Description 164 2. 4.6.2. Usage 164 2.4.6.3. Example……….,,,,,,,,,,,,.,,,,,165 2.4.6.4. Hooking a Mass Transfer UDF to ANSYS Fluent.........................165 2.4.7. DEFINE VECTOR EⅩ CHANGE PR○ PERTY,,………… ∴166 24.7.1. Description.…,…,…,…,…,…,,…,…,…,…,…,…,166 24.7.2. Usage,……,…,…,…,…,…,…,……,…,…,…,…,…,……,…,……,166 24.73 Example1- Custom Slip velocity………….……………167 24.7.4. Example2- Custom Turbulent Dispersion……………………,167 2.4.7.5. Hooking a Vector Exchange Property UDF to ANSYS Fluent........168 2. Discrete phase model(DPM)DE彐 INE Macros… 168 2.5.1. DEFINE DPM BC ·······“· ········ 169 25.1.1. Description…,,…,…,.,.,…,…,…,…,,….….,…,,…,169 25.1.2. Usage,…… 170 2.5.1.3. Examp|e1 ·········;······················4············:·.··:····· 70 2.5.1.4. Example 2 ·················;·:···:···4·:········ 172 25.1.5. Hooking a dPM Boundary Condition UDF to ANSYS F|uent……,,…, 174 2.5.2. DEFINE DPM BODY FORCE 174 Release 16.0-O SAS /P Inc. All rights reserved. -Contains proprietary and confidential information of ansys inc and its subsidiaries and affiliates

...展开详情
试读 127P ANSYS Fluent UDF Manual 16.0
立即下载 低至0.43元/次 身份认证VIP会员低至7折
    抢沙发
    一个资源只可评论一次,评论内容不能少于5个字
    关注 私信 TA的资源
    上传资源赚积分,得勋章
    最新推荐
    ANSYS Fluent UDF Manual 16.0 50积分/C币 立即下载
    1/127
    ANSYS Fluent UDF Manual 16.0第1页
    ANSYS Fluent UDF Manual 16.0第2页
    ANSYS Fluent UDF Manual 16.0第3页
    ANSYS Fluent UDF Manual 16.0第4页
    ANSYS Fluent UDF Manual 16.0第5页
    ANSYS Fluent UDF Manual 16.0第6页
    ANSYS Fluent UDF Manual 16.0第7页
    ANSYS Fluent UDF Manual 16.0第8页
    ANSYS Fluent UDF Manual 16.0第9页
    ANSYS Fluent UDF Manual 16.0第10页
    ANSYS Fluent UDF Manual 16.0第11页
    ANSYS Fluent UDF Manual 16.0第12页
    ANSYS Fluent UDF Manual 16.0第13页
    ANSYS Fluent UDF Manual 16.0第14页
    ANSYS Fluent UDF Manual 16.0第15页
    ANSYS Fluent UDF Manual 16.0第16页
    ANSYS Fluent UDF Manual 16.0第17页
    ANSYS Fluent UDF Manual 16.0第18页
    ANSYS Fluent UDF Manual 16.0第19页
    ANSYS Fluent UDF Manual 16.0第20页

    试读已结束,剩余107页未读...

    50积分/C币 立即下载 >