# UDF for a 2d vaned diffuser inflow velocity

 Register Blogs Members List Search Today's Posts Mark Forums Read

 September 5, 2013, 12:58 UDF for a 2d vaned diffuser inflow velocity #1 New Member   SIVAKUMAR Join Date: Jul 2013 Location: coimbatore Posts: 13 Rep Power: 6 Sponsored Links hi guys..am new to cfd-online... myself shiva...doing Mtech project in vaned diffuser analysis in fluent...i need a UDF for vaned diffusser....it is in polar co-ordinates. x component velocity is 329.39*cos(tan^-1(y/x)-71.56) y component velocity is 329.39*sin(tan^-1(y/x)-71.56) can u guide me to create a UDF please theta (y/x) is changing with respect to center of the inner circle can i import a two UDF for a velocity...plz guide me guys...Snapshot9.jpg please help me guys.....urgent....!!!..plzzz my mail id = contactshiva@ymail.com

 September 20, 2013, 00:01 #2 New Member   SIVAKUMAR Join Date: Jul 2013 Location: coimbatore Posts: 13 Rep Power: 6 i created a UDF for my problem but my contour is not matching...is this udf correct or not..please help me out...!!! #include "udf.h" DEFINE_PROFILE(inlet_x_velocity, thread, position) { real x[ND_ND]; real xcord; real ycord; face_t f; begin_f_loop(f, thread) { F_CENTROID(x,f,thread); xcord=x[0]; ycord=x[1]; F_PROFILE(f, thread, position) =(375.510*cos(atan(ycord/xcord)-71.56)); F_PROFILE(f, thread, position) =(375.510*cos(atan(ycord/xcord)-71.56)); } end_f_loop(f, thread) }

 September 20, 2013, 00:02 #3 New Member   SIVAKUMAR Join Date: Jul 2013 Location: coimbatore Posts: 13 Rep Power: 6 am using density based solver..inviscid flow....please guys am waiting for ur reply

 Thread Tools 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 On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post ChristineL Fluent UDF and Scheme Programming 15 November 25, 2016 07:45 zumaqiong FLUENT 2 February 22, 2010 10:46 Mijin Kim FLUENT 0 September 28, 2009 04:50 Alan Main CFD Forum 10 October 28, 2005 12:14 Abhi Main CFD Forum 12 July 8, 2002 09:11