# Debugging 3d parabolic udf

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

 June 10, 2005, 00:00 Debugging 3d parabolic udf #1 david Guest   Posts: n/a Hi all, I am just starting my first 3d case and I am having problems with this UDF posted in another thread. I use it for a 3d laminar pipe flow. I was wondering if someone had encountered difficulty using this UDF. The imposed velocity profile should be imposed on the face perpendicular to the z-axis right? When interpreting I get the following error message. Find below the UDF in question. Error: GENERAL-CAR-CDR: invalid argument [1]: improper list Error Object: #f Best Regards, David --------------------------------------------- DEFINE_PROFILE(z_velocity, thread, position) { float r, x[2]; face_t f; begin_f_loop(f, thread) { F_CENTROID(x,f,thread); /* 3D: r = sqrt(pow(x[0]-xc, 2)+pow(x[1]-yc, 2)); */ /* here: r means not radius but distance from the centerline or symmetryline */ r = x[0]-xc; F_PROFILE(f,thread,position)=2*umean*(1-pow(r/radius,2)); /* ************************************************** ***** */ /* controle output printf("x=%.6f\t r=%.6f\t u=%.5f\n",x[0],r,2*umean*(1-pow(r/radius,2))); */ /************************************************** *******/ } end_f_loop(f, thread) }

 June 10, 2005, 06:37 Re: Debugging 3d parabolic udf #2 dirk Guest   Posts: n/a Hello David, I just tried this UDF. You forgot to declare some variables. After doing this it works well. Dirk

 June 11, 2005, 05:07 Re: Debugging 3d parabolic udf #4 dirk Guest   Posts: n/a This works fine. Just apply the inlet BC, make one iteration and plot the inlet velocity.

 June 13, 2005, 14:20 Re: Debugging 3d parabolic udf #5 david Guest   Posts: n/a Hi Dirk, Thank you for responding. I have tried this and it still does not work. I mean it interprets fine but when I apply this profile to my velocity inlet and iterate nothing happens. I am suspecting that something might be wrong with my mesh itself. Do you have a small 3d mesh file that I could use to test further my UDF as Fluent manual does not provide such mesh files. If this not possible perhaps I could email my mesh file so you can have a look at it... Best Regards, David

 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 Zaqie Fluent UDF and Scheme Programming 8 May 11, 2014 08:34 josik_1982 Fluent UDF and Scheme Programming 0 December 19, 2010 18:36 zumaqiong FLUENT 2 February 22, 2010 10:46 benru OpenFOAM Bugs 42 November 13, 2009 08:59 Rashad FLUENT 2 February 29, 2008 03:36

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