Serial parallel Fluent UDF on Windows (local machine)

 

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\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/udf velocity_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) TSR r(m) Angular velocity T(s) time step size
0.6 5.5 0.23 14.34782609 0.437919 0.001216  
  1. Initialisation, compute from inlet
  2. Calculation, 200 time steps

surface_monitor.png point_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

posted @ 2019-02-18 09:40  kaiming_ai  阅读(304)  评论(0编辑  收藏  举报