CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

Two-dimensional jet UDF?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 15, 2016, 04:49
Default Two-dimensional jet UDF?
  #1
New Member
 
T.SUGAWA
Join Date: Oct 2016
Location: Japan
Posts: 2
Rep Power: 0
suga is on a distinguished road
Hallo.
Could you advise on issues that I'm working on now?

I'm going the simulation to be ejected into the atmosphere in a helium gas as a two-dimensional jet.

Computational domain is a rectangular solid of x * y * z = 30 * 40 * 12.
Inflow boundary conditions
In the center of the yz bottom has been set to the velocity-inlet to create a rectangular area.
Further, rectangular side periodic (Figure ①) boundary short side, sides and rectangular upper surface of the long side is set to Pressure-outlet (Figure ②).

To see the shear layer, give How can the Top-Hat velocity distribution of the inflow section as UDF, for 3D calculations, will give the velocity distribution on the short side, we do not get the appropriate result.
Please give me a good advice to solve this problem.

Thank you.

↓UDF source from here

/************************************************** *********************
vprofile.c
UDF for specifying steady-state velocity profile boundary condition
************************************************** **********************/
#include "udf.h"

DEFINE_PROFILE(inlet_x_velocity, thread, position)
{
real x[ND_ND]; /* this will hold the position vector */
real y;
face_t f;

begin_f_loop(f, thread)
{
F_CENTROID(x,f,thread);
y = x[0];
y = fabs(y);
F_PROFILE(f, thread, position) = ((6.05/2.)*(1. - tanh((1./4.)*18.89*(y/0.0017-0.0017/y))));
}
end_f_loop(f, thread)
}
Attached Images
File Type: png two-dimensional.png (29.9 KB, 9 views)
suga is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Transient Velocity Inlet (2d synthetic jet) UDF akulagr Fluent UDF and Scheme Programming 4 October 18, 2018 01:31
UDF Compilation Error - Loading Library - COMMON Problem! Help! robtheslob Fluent UDF and Scheme Programming 8 July 24, 2015 00:53
WILLING TO PAY/ FREELANCER REQUIRED / small UDF coding force loads over body / 6DOF acasas CFD Freelancers 1 January 23, 2015 07:26
Two dimensional Jet Flow shriram Main CFD Forum 7 July 12, 2007 13:30
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 04:01


All times are GMT -4. The time now is 00:01.