# UDF in Cylindrical Coordinate

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

 August 22, 2011, 05:46 #2 New Member   Join Date: Aug 2011 Posts: 5 Rep Power: 5 If I am not mistaken the;- F_CENTROID(x,f,thread) Should give you the x,y,z coordinates for the cell such as;- x[0] = x x[1] = y x[2] = z

 August 22, 2011, 06:43 #3 New Member   Masoud Hassani Join Date: Aug 2011 Posts: 3 Rep Power: 5 Thank you so much! It is so easy

 April 18, 2012, 06:55 #4 New Member   Aydın Dönmez Join Date: Feb 2012 Posts: 4 Rep Power: 5 i also have to define a parabolic tangential profile but the velocity values computed by the udf does not match with the real values. help please! #include "udf.h" DEFINE_PROFILE(velocity_profile,t,i) { real x[ND_ND]; /* this will hold the position vector */ real r,R,omega; face_t f; R=0.1; omega=20; begin_f_loop(f,t) { F_CENTROID(x,f,t); r=sqrt((x[0]*x[0])+(x[1]*x[1])); F_PROFILE(f,t,i) = (omega*R*R/r)*(1-exp(-r*r/R*R)); } end_f_loop(f,t) }

 Tags cylindrical, inlet, udf

 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 Lam FLUENT 10 May 11, 2013 13:05 noussa ANSYS Meshing & Geometry 2 June 12, 2010 09:07 cfd2010 Main CFD Forum 0 June 9, 2010 21:55 Manoj FLUENT 0 December 15, 2005 10:43 J.H. Lee. Phoenics 2 March 28, 2003 05:28

All times are GMT -4. The time now is 04:48.