fluent UDF手册

所需积分/C币:27 2013-08-03 08:42:43 3.94MB PDF
收藏 收藏 3
举报

fluent 自带UDF手册,英文版,用到UDF的用户可以学一下
Contents reface Overview 1.1 What is a User-Defined Function(UDF)? 1.2 Why Use UDFs? 1.3 Limitations 1.4 Defining Your UDf USing DEFINE Macros 1. 4. 1 Including the udf. h Header File in Your Source File 1.5 Interpreting and Compiling UdFs 1.5. 1 Differences Between Interpreted and Compiled UDFs 1.6 Hooking udfs to your fluent model 1.7 Grid terminology 1.8 Data 'Types in FLUENT 1-10 1.9 UDF Calling Sequence in the Solution Process 1-12 1.10 Special Considerations for Multiphase UDFs .1-17 1.10.1 Multiphase-specific Data Types .1-17 2 DEFINE Macros 2.1 Introduction 2.2 General Purpose DEFINE Macros 2-2 2.2.1 DEFINE AD JUST 2-4 2. 2.2 DEFINE DELTAT 2-7 2.2.3 DEFINE EXECUTE AT END 2-9 2.2.4 DEFINE EXECUTE AT EXIT 2-11 2.2.5 DEFINE EXECUTE FROM GUI .,,,,2-12 c Fluent Inc. September 11, 2006 CONTENTS 2. 2.6 DEFINE EXECUTE ON LOADING .2-14 2.2.7 DEFINE工NIT. .,.,,,,.2-17 2. 2. 8 DEFINE_ON DEMAND 2-19 2.2.9 DEFINE RW_ FILE 2-22 2.3 Model-Specific DEFINE Macros 2-24 2.3.1 DEFINE CHEM STEP .2-29 2.3.2 DEFINE CPHI 2-31 2.3.3 DEFINE DIFFUSIVITY .2-32 2.3.4 DEFINE DOM_DIFFUSE REFLECTIVITY .2-34 2.3.5 DEFINE DOM SOURCE .2-36 2.3.6 DEFINE DOM SPECULAR REFLECTIVITY .2-38 2.3.7 DEFINE GRAY BAND_ ABS_ COEFF 2-40 2.3.8 DEFINE_HEAT FLUX ..,.2-42 2.3.9 DEFINE_ NET_ REACTION_ RATE 2-44 2.3.10 DEFINE NOX RATE ..2-46 2.3.11 DEFINE PR RATE .2-50 2.3.12 DEFINE PRANDTL UDES 2-55 2.3.13 DEFINE PROFILE 2-63 2.3.14 DEFINE- PROPERTY UDFS .2-76 2.3.15 DEFINE SCAT PHASE FUNC 2-84 2.3.16 DEFINE SOLAR INTENSITY 2-87 2.3.17 DEFINE SOURCE 2-89 2.3.18 DEFINE_SOX RATE 2-92 2.3.19 DEFINE_SR_ RATE 2-97 2. 3.20 DEFINE TURB PREMIX SOURCE 2-101 2.3.21 DEFINE TURBULENT VISCOSITY .2-103 2.3.22 DEFINE VR RATE ....2-107 2.3.23 DEFINE WALL FUNCTIONS C Fluent Inc. September 11. 2006 CONTENTS 2.4 Multiphase DEFINE Macros .2-113 2. 4.1 DEFINE CAVITATION RATE .,.,,,...,,...,,.2-115 2.4.2 DEFINE EXCHANGE PROPERTY 2-118 2.4.3 DEFINE HET RXN_ RATE .2-123 2.4.4 DEFINE MASS TRANSFER 2-120 2.4.5 DEFINE VECTOR EXCHANGE PROPERTY 2-132 2.5 Discrete Phase Model(DPM) DEFINE Macros .2-135 2.5.1 DEFINE_DPM_BC 2-137 2.5.2 DEFINE DPM BODY FORCE .2-145 2.2.3 DEFINE DPM DRAG .2-147 2.5.4 DEFINE DPM EROSION .2-149 2.5.5 DEFINE_ DPM_ HEAT MASS 2-155 2.5.6 DEFINE DPM_INJECTION_INIT ....,2-158 2.5.7 DEFINE DPM_ LAW ..2-162 2.5.8 DEFINE DPM_OUTPUT ..2-164 2.5.9 DEFINE DPM PROPERTY .2-168 2.5.10 DEFINE DPM_ SCALAR_ UPDATE 2-172 2.5.11 DEFINE DPM_ SOURCE 2-176 2.5.12 DEFINE DPM_SPRAY_ COLLIDE .2-178 2.5.13 DEFINE DPM SWITCH .2-181 2.5.14 DEFINE DPM_ TIMESTEP 2-186 2.5.15 DEFINE_DPM_VP_EQUILIB 2-189 2.6 Dynamic Mesh DEFINE Macros 2-192 2.6.1 DEFINE_CG_ MOTION 2-193 2.6.2 DEFINE GEOM ......,,2-196 2.6.3 DEFINE GRID MOTION .2-198 2.6.4 DEFINE SDOF PROPERTIES .,.,,...2-201 c Fluent Inc. September 11, 2006 CONTENTS 2.7 User-Defined Scalar (UDS) Transport Equation DEFINE Macros 2-205 2.7.1 Introduction ..2-205 2.7.2 DEFINE ANISOTROPIC DIFFUSIVITY 2-207 2.7.3 DEFINE UDS_ FLUX 2-211 2.7.4 DEFINE UDS_ UNSTEADY 2-215 3 Additional Macros for Writing UDFs 3.1 Introduction 3-2 3.2 Data Access macros 3.2.1 Introduction 3-5 3.2.2 Node macros 6 3.2.3 Cell macro 3.2.4 Face macros 3-19 3.2.5 Connectivity Macros 3-22 3.2.6 Macros 3-26 3.2.7 Model-Specific Macros 3-32 3.2.8 User-Defined Scalar(UDS) Transport Equation Macros .... 3-39 3.2.9 User-Defined Memory(UDM) Macros .3-42 3.3 Looping macros 3-51 3.3.1 Multiphase Looping macros 3-55 3.3.2 Advanced Multiphase Macros 3-59 3.4 Vector and dimension macros 3-64 3.4.1 Macros for Dealing with Two and Three Dimensions 3-64 3.4.2 The ND Macros 3-64 3.4.3 The Nv macros -66 3.4.4 Vector Operation Macros .3-67 3.5 Time-Dependent Macros 3-69 C Fluent Inc. September 11. 2006 CONTENTS 3.6 Scheme macros 3-71 3.6.1 Defining a scheme variable in the Text Interface .........3-71 3.6.2 Accessing a scheme variable in the text interface,3-72 3.6.3 Changing a Scheme Variable to Another Value in the Text Interface 3-72 3.6.4 Accessing a scheme variable in a uDF 3-72 3.7 Input Output Macros .3-73 3.8 Miscellaneous macros .3-74 4 Interpreting UDFs 4-1 4.1 Introduction 4-1 4.1.1 Location of the udf. h file 4-2 4.1.2 Limitations 4-2 4.2 Interpreting a udf Source File using the Interpreted UDFs Panel 4-3 4.3 Common Errors Made While Interpreting A Source File 4-5 4. Special Considerations for Parallel FLUENT 4-7 5 Compiling UDFs 5-1 5.1 Introduction 5.1.1 Location of the udf. h file 5.1.2 Compilers 5-4 5.2 Compile a udF Using the gUI 5.3 Compile a udf Using the Tul 5.3.1 Set Up the Directory Structure .5-11 5.3.2 Build the UDF Library 5-14 5.3.3 Load the UDF Library .5-19 5. 4 Link Precompiled Object Files From Non-FLUENT Sources .5-19 5.4.1 Example- Link Precompiled Objects to FLUENT 19 5.5 Load and Unload Libraries Using the Udf Library manager Panel .5-25 5.6 Common Errors When Building and Loading a UDF Library 5-27 5.7 Special Considerations for Parallel FLUENT .,,5-28 c Fluent Inc. September 11, 2006 CONTENTS 6 Hooking UDFs to FLUENT 6. 1 Hooking General Purpose UdFs ..6-1 6.1.1 Hooking DEFINE ADJUST Udes 6-2 6.1.2 Hooking DEFINE DELTAT UDFS 6-4 6.1.3 Hooking DEFINe eXECute at END udfs 6.1.4 Hooking deFIne eXECute at EXIT udfs 6.1.5 Hooking deFINe_INIT udFs .6-10 6. 1.6 Hooking DEFINE_ON DEMAND UDFs 6-12 6.1.7 Hooking DEFINe RW_FILe udfs .6-13 6.1.8 User-Defined Memory storage .6-15 6.2 Hooking Model-Specific UDFS .6-15 6.2.1 Hooking DEFINE_ CHEM STEP UDFS 6-16 6.2.2 Hooking DEFINE_CPHI UDFs .....6-17 6.2.3 Hooking DeFINe DIFFUsIvIty udfs 6-18 6.2.4 Looking DEFINE_DOM_DIFFUSE REFLECTIVITY UDFs ...... 6-20 6.2.5 Hooking DEFINE DOM SOURCE CDFS .6-21 6.2.6 Hooking DEFINE_DOM_SPECULAR_REFLECTIVITY UDFS 6-22 6.2.7 Hooking DEFINE-GRAY BAND__ABS_COEFF CDFS 6-23 6.2.8 Hooking deFINe heat FluX udfs .6-24 6.2.9 Hooking DEFINE NET- REACTION-RATE UDFs 6-25 6.2.10 Hooking deFINe NoX Rate udes 6-27 6.2.11 Hooking DEFIne PR rate udfs 6-29 6.2.12 Hooking DEFINe PRANDTL udfs 6-30 6.2. 13 Hooking DEFINe PROFILE udfs 6-31 6.2.14 Hooking deFIne ProPertY udes .,.6-36 6.2. 15 Hooking DEFINE_SCAT PHASE__FUNC UDFs .6-38 6.2.16 Hooking DEFINE SOLAR INTENSITY udfs .............6-40 6.2. 17 Hooking DEFINE SOURCe udfs 6-42 6.2.18 Hooking DEFINE SOX RATE Udfs 6-44 C Fluent Inc. September 11. 2006 CONTENTS 6.2. 19 Hooking DEFINE_SR_RATE UDFs 6-46 6.2.20 Looking DEFINE-TURB_PREMIX SOURCE UDFs .6-47 6. 2.21 Hooking DEFINE TURBulent VISCOSITY Udes 6-48 6.2.22 Hooking DEFINE VR RATE udfs 6.2.23 Hooking DEFINE WALL FUNCTIoNs udfs 6-50 6.3 Hooking Multiphase UDFs .6-51 6.3.1 Hooking DeFINe CavITatIoN rate udfs 6-51 6.3.2 Hooking DEFINE_EXCHANGE-_PROPERTY UDFs 6-53 6.3.3 Hooking DEFINE_HET_RXN_RATE UDFs .6-55 6.3.4 Hooking DEFINE MASS-TRANSFER UDFS .6-56 6.3.5 Hooking dEFINe vECToR eXChange ProPErtY udfs .6-57 6.4 Hooking Discrete Phase Model(DPM) UDFs 6-59 6.4.1 Hooking DEFINE_BC UDFs ...,.6-59 6.4.2 Hooking DEFINE_DPM_BODY-FORCE UDFs 6-61 6.4.3 looking DEFINe DPM DRAg udes .6-62 6.4.4 Hooking DEFINE DPM EROSION UDFs 6-6:3 6.4.5 Hooking DEFINE _DPM_HEAT MASS UDFs 6-64 6.4.6 Hooking DEFINE- DPM-INJECTION-INIT UDFS 6-66 6.4.7 Hooking deFIne dPm Law udfs .6-68 6.4.8 Hooking DEFINE_DPM_OUTPUT CDFs .·· .6-69 6.4.9 Hooking defIne dPm ProPerty udes 6-70 6.4.10 Hooking DEFINE DPM_ SCALAR UPDatE udfs ...,.6-72 6.4.11 Hooking DefIne dPM- source u des 6-73 6.4.12 Hooking DEFINe DPM_ SPRAY COLLIDE Udfs 6-74 6.4.13 Hooking DEFINE DPM- SWITCH Udfs 6-76 6.4.14 Hooking DEFINE_DPM_TIMESTEP UDFs .6-77 6.4.15 Hooking DEFINE_DPM_VP _EQUILIB UDFs..............6-78 c Fluent Inc. September 11, 2006 CONTENTS 6.5 Hooking dynamic mesh udes 6-79 6.5.1 Hooking DEFINE_CG MOTION UDFs ,,,,,,..,.,.6-79 6.5.2 Hooking DEFINE _GEOM Udfs 6-81 6.5.3 Hooking DEFINe grid moTioN udfs 6-83 6.5.4 Hooking DEFINe sdoF PRoPErTIEs udes 6-85 6.6 Hooking User-Defined Scalar(UDS) Transport Equation UDFS .6-87 6.6.1 Hooking DeFINe ANIsotroPIC dIFFUSIvITY udfs .6-87 6.6.2 Hooking DEFINE-_UDS__FLUX UDFs 6-90 6.6.3 Hooking defINe_ uDs UNsTeady udfs .6-91 6.7 Common Errors While Hooking a UDf tO FLUENT .6-92 7 Parallel considerations 7-1 7.1 Overview of Parallel FLUENT 7-1 7. 1. 1 Command Transfer and communication 7-4 7.2 Cells and Faces in a Partitioned grid 7-7 7.3 Parallelizing Your serial UDF 7-11 7.4 Parallelization of Discrete Phase Model (DPM) UDFs .7-12 7.5 Macros for Parallel udfs 7-13 7.5.1 Compiler D 7-13 7.5.2 Communicating Between the Host and Node Processes 7.5.3 Predica 7-18 7.5.4 Global Reduction Macros 710 7.5.5 Looping Macros 7-23 7.5.6 Cell and Face Parti 7.5.7 Message Displaying Macros 7-31 7.5.8 Message Passing Macros 7-32 5.9 Macros for Exchanging Data Between Compute Nodes .7-36 7. 6 Limitations of parallel c des 7-37 7. 7 Process identificati VIl F

...展开详情
试读 127P fluent UDF手册
立即下载 低至0.43元/次 身份认证VIP会员低至7折
    一个资源只可评论一次,评论内容不能少于5个字
    胖虎一号 好东西,就是全英文的看着麻烦
    2015-06-03
    回复
    qimofei 有用的,不错
    2015-04-01
    回复
    xyraptor 自带的原版手册,有用
    2015-03-21
    回复
    cdifeng 挺详细,挺全面的
    2014-11-17
    回复
    dahongmt 不错 步骤清晰
    2014-01-16
    回复
    关注 私信 TA的资源
    上传资源赚积分,得勋章
    最新推荐
    fluent UDF手册 27积分/C币 立即下载
    1/127
    fluent UDF手册第1页
    fluent UDF手册第2页
    fluent UDF手册第3页
    fluent UDF手册第4页
    fluent UDF手册第5页
    fluent UDF手册第6页
    fluent UDF手册第7页
    fluent UDF手册第8页
    fluent UDF手册第9页
    fluent UDF手册第10页
    fluent UDF手册第11页
    fluent UDF手册第12页
    fluent UDF手册第13页
    fluent UDF手册第14页
    fluent UDF手册第15页
    fluent UDF手册第16页
    fluent UDF手册第17页
    fluent UDF手册第18页
    fluent UDF手册第19页
    fluent UDF手册第20页

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

    27积分/C币 立即下载 >