Serial Fluent UDF on Windows

 

test

test

Table of Contents

1 Serial UDF on Windows OS

Note:

  • Udf has to be compiled, can’t be interpolated

Steps:

  1. launch Fluent from the Command Line

For ansys 16.x, launch Fluent from the Command Line using the VS2015 x86 x64 Cross Tools Command Prompt (not x64 x86 cross tools)

  • Open the Start screen (press Windows button on your keyboard, Type 'VS2013 x86 x64 Cross Tools Command Prompt'
  • change directory to your working folder, e.g. cd C:\Users\exw692\kaiming\Shared\ch6_wave_effect\OldGeo\e387UDF\sine
  • Type “fluent” in the command window to launch Fluent or “C:\Program Files\ANSYS Inc\v161\fluent\ntbin\win64\fluent.exe” (quotation signs included, in case of standard installation; fluent version: 16.1).

Make sure that on the Environment tab 'Setup Compilation Environment for UDF' is ticked. The default address is fine.

  1. Read mesh/cas file
  2. Setup turbulence model/boundary conditions, etc.
  3. Compilation Define/user-defined/functions/compiled, load
  4. Hook UDF file to velocity component at inlet Boundary condition/inlet/x or y component velocity/udfvelocity_inlet_BC_udf.png
  5. Setup point monitors at inlet Create a point at inlet and monitor the velocity at the defined point

To create a point at inlet BC

Surface/point Solution--monitors--surface--fill your information to dialog table

Report type: vertex average

Field variable: velocity, velocity magnitude/component;

Surface: a point at inlet BC

  1. Setup time step size, 0.002s, save cas file Time step, 1/100 period of wave

    1 degree per time step, 0.001s, 360 time step per circle of turbine rotation

ω=2*π/T

If ω=14.34, TSR=5.5, T=0.44,

U(m/s)TSRr(m)Angular velocityT(s)time step size
0.65.50.2314.347826090.437919 0.001216 
  1. Initialisation, compute from inlet
  2. Calculation, 200 time steps

surface_monitor.pngpoint_surface.png

https://www.cfd-online.com/Forums/fluent/40392-how-can-i-monitor-pressure-point.html

Author: kaiming

Created: 2019-01-18 Fri 01:37

Emacs 24.5.1 (Org mode 8.2.10)

Validate

转载于:https://www.cnblogs.com/code-saturne/p/10393876.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值