|
[Sponsors] |
November 22, 2013, 12:58 |
UDF for defining a velocity gradient
|
#1 |
New Member
Musa
Join Date: May 2009
Location: UK
Posts: 26
Rep Power: 17 |
Dear friends,
I`m trying to simulate an axisymmetric swirl flow in Fluent with a very simple geometry, attached image shows my geometry and boundary conditions. At the inlet boundary, radial and swirl velocity components are zero and axial velocity gradient is zero. Gauge pressure is zero at the outlet and there is a wall with a constant rotational speed. My UDF file for axial velocity gradient is below but I`m not sure if this is correct because I have difficulties with converging and continuity does not satisfy. ******************** #include "udf.h" DEFINE_PROFILE(Axial_Velocity_Gradient,t,i) { real xf[ND_ND], xc[ND_ND]; face_t f; cell_t c0; Thread*t0; begin_f_loop(f,t) { F_CENTROID(xf,f,t); c0=F_C0(f,t); t0=THREAD_T0(t); C_CENTROID(xc,c0,t0); F_PROFILE(f,t,i)=C_U(c0,t0); } end_f_loop(f,t) } ******************** Many thanks in advance. Musa |
|
March 26, 2018, 14:23 |
|
#2 | |
New Member
David
Join Date: Nov 2017
Posts: 14
Rep Power: 9 |
Quote:
I am facing the similar situation. Did you find out how to fix it? Many thanks, Dv |
||
August 7, 2021, 22:16 |
I need write an udf for swirling velocity inlet in 3D
|
#3 |
New Member
Amine AGRISS
Join Date: Sep 2018
Posts: 1
Rep Power: 0 |
Hello everyone!
I would like to simulate an airflow over a pipe in Ansys Fluent. I want the flow at outlet of the pipe to be swirled. How can Swirl the flow at the exit of the pipe? Can I use an UDF to swirl the flow at the exit of the pipe?? Thank you! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
3D velocity inlet UDF | zumaqiong | Fluent UDF and Scheme Programming | 2 | October 24, 2016 05:44 |
specified shear at wall - temperature gradient - UDF - access violation error | senD | Fluent UDF and Scheme Programming | 9 | September 18, 2014 08:29 |
Velocity gradient in previous timestep | mateus | FLUENT | 1 | December 13, 2012 14:07 |
3D UDF Paraboilc Velocity Profile with max velocity | johnGo | Fluent UDF and Scheme Programming | 1 | January 4, 2011 22:45 |
why boudary slip velocity is so larte using udf | cxzhao | FLUENT | 0 | July 4, 2005 01:06 |