# UDF paraboloid velocity inlet

 User Name Remember Me Password
 Register Blogs Members List Search Today's Posts Mark Forums Read

 LinkBack Thread Tools Search this Thread Display Modes
 June 4, 2003, 09:44 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 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

 Thread Tools Search this Thread Search this Thread: Advanced Search Display Modes Linear Mode

 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 OffTrackbacks are Off Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post Sing FLUENT 12 August 7, 2017 06:25 rosco FLUENT 10 June 2, 2017 08:01 zumaqiong Fluent UDF and Scheme Programming 2 October 24, 2016 04:44 sara FLUENT 0 October 11, 2007 18:04 Knut Lehmann Main CFD Forum 2 June 29, 2007 04:53

All times are GMT -4. The time now is 15:27.

 Contact Us - CFD Online - Privacy Statement - Top