没有合适的资源?快使用搜索试试~ 我知道了~
FLUENT UDF中文教程
4星 · 超过85%的资源 需积分: 15 32 下载量 80 浏览量
2009-09-13
20:32:46
上传
评论 3
收藏 2.99MB PDF 举报
温馨提示
试读
114页
Fluent 中文UDF很好的学习课件,如果您对FLUENT感兴趣,我们可以经常沟通,祝大家好运
资源推荐
资源详情
资源评论
© Fluent Inc. 2/20/01G1
Fluent Software Training
TRN-99-003
User Defined Functions
© Fluent Inc. 2/20/01G2
Fluent Software Training
TRN-99-003
Introduction
u What is a User Defined Function?
l A UDF is a routine (programmed by the user) written in C which can be
dynamically linked with the solver.
n Standard C functions
s e.g., trigonometric, exponential, control blocks, do-loops, file i/o, etc.
n Pre-Defined Macros
s Allows access to field variable, material property, and cell geometry data.
u Why build UDF’s?
l Standard interface cannot be programmed to anticipate all needs.
n Customization of boundary conditions, source terms, reaction rates, material
properties, etc.
n Adjust functions (once per iteration)
n Execute on Demand functions
n Solution Initialization
© Fluent Inc. 2/20/01G3
Fluent Software Training
TRN-99-003
UDF Basics
u UDF’s assigns values (e.g., boundary data,
source terms) to individual cells and cell faces
in fluid and boundary zones.
l In a UDF, zones are referred to as threads.
l A looping macro is used to access individual
cells belonging to a thread.
n e.g., a face-loop macro visits 563 faces
on face zone 3 (velocity-inlet).
s Position of each face is available
to calculate and assign spatially
varying properties.
n Thread and variable references are
automatically passed to UDF when
assigned to boundary in GUI.
u Values returned to the solver by UDFs must be in SI units.
© Fluent Inc. 2/20/01G4
Fluent Software Training
TRN-99-003
Using UDFs in the Solvers
u The basic steps for using UDFs in FLUENT are as follows:
STEP 1: Create a file containing the UDF source code
STEP 2: Start the solver and read in your case/data files
STEP 3: Interpret or Compile the UDF
STEP 4: Assign the UDF to the appropriate variable and zone in BC panel.
STEP 5: Set the UDF update frequency in the Iterate panel
STEP 6: Run the calculation
© Fluent Inc. 2/20/01G5
Fluent Software Training
TRN-99-003
Example: Non-Uniform Inlet Velocity
u A non-uniform inlet velocity is to be imposed on the 2D turbine vane
shown below. The x-velocity variation is to be specified as:
u(y) = 20 [ 1 - (y/0.0745)
2
]
y = 0
剩余113页未读,继续阅读
资源评论
- xiangchuang2015-06-24恩 挺有用的 比较适合入门想了解的
- lxskdyh2014-08-14介绍的蛮不错
lp_z105501
- 粉丝: 0
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 三菱PLC例程源码单钮起停控制程序三例
- oracle相关数据库的知识,包括建表语句,索引视图,触发器存储过程等
- MATLAB人脸识别+可调摄像头,库外判别预警,GUI界面.zip
- Oracle数据库备份与恢复.pdf
- 302P-VB一款P-Channel沟道SOT23的MOSFET晶体管参数介绍与应用说明
- 基于servlet的游戏商城(采用RESTful架构风格).zip
- 三菱PLC例程源码单按钮正反停
- C# 飞机大战项目, 获取道具,双排子弹 散弹的实现
- 三菱PLC例程源码单按钮五台电机启停控制SFC程序
- 基于QT实现的酒店管理系统+图形化界面提供客房、员工管理所需的操作+源码(毕业设计&课设&项目开发)
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功