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

UDF paraboloid velocity inlet

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 4, 2003, 10:44
Default UDF paraboloid velocity inlet
  #1
Ronak Shah
Guest
 
Posts: n/a
Hi, I am new student working on the UDF paraboloid velocity inlet problem. I read the information posted by rosco <rosco1998@hotmail.com>Date: Sun, 18 May 2003, 11:37 a.m. subject: UDF paraboloid velocity inlet and the responses he received regarding his problem. I have a similar problem but the case here is the inlet is in the xy plane. or in other words the the origin of the reference system is not in the center of the inlet pipeinlet pipe, it is about 30 degrees from the x-axis. I am looking for modifications I would need in this code to have it work... Here's the code. Remember it requires you have the origin of your reference system in the center of the inlet pipe.

If you need to change diameter and average velocity, change their values in the corresponding #define.

#include "udf.h"

#define PIPE_DIAMETER 10.e-3 // Set here the diameter of your pipe in meters

#define AVG_Z_VELOCITY 1. // Set here the average z velocity at inlet in m/s

DEFINE_PROFILE(paraboloid_velocity, thread, position) { real x[ND_ND];

real coeff,r,v_max;

face_t f;

r = PIPE_DIAMETER/2.; //Calculating radius

v_max = 2.*AVG_Z_VELOCITY; //Calculating paraboloid vertex z (max velocity)

coeff = -v_max/pow(r,2.);

begin_f_loop(f, thread)

{

F_CENTROID(x,f,thread);

F_PROFILE(f, thread, position) = coeff*(pow(x[0],2.) + pow(x[1],2)) + v_max;

} end_f_loop(f, thread) }

(C) < copied from the reply to Rosco's question

Any ides on how I would go abt doing this?

Ronak Shah

  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
3D UDF Paraboilc Velocity Profile (Can't Maintain) Sing FLUENT 12 August 7, 2017 07:25
UDF paraboloid velocity inlet rosco FLUENT 10 June 2, 2017 09:01
3D velocity inlet UDF zumaqiong Fluent UDF and Scheme Programming 2 October 24, 2016 05:44
USED UDF for inlet velocity in 3D sara FLUENT 0 October 11, 2007 19:04
Fluent UDF load and apply inlet velocity b.c. Knut Lehmann Main CFD Forum 2 June 29, 2007 05:53


All times are GMT -4. The time now is 18:42.