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:
- 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.
- Read mesh/cas file
- Setup turbulence model/boundary conditions, etc.
- Compilation Define/user-defined/functions/compiled, load
- Hook UDF file to velocity component at inlet Boundary condition/inlet/x or y component velocity/udf
- 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
- 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 |
- Initialisation, compute from inlet
- Calculation, 200 time steps
https://www.cfd-online.com/Forums/fluent/40392-how-can-i-monitor-pressure-point.html