# UDF problem

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

 October 29, 2007, 01:31 UDF problem #1 mansha goraya Guest   Posts: n/a i have to define a UDF function for the displacement of diaphragm deflection of a chamber. the chamber is filled of liquid. Due to movement of diaphragm the liquid flows out from the chamber. the velocity of the diaphragm is given in the following UDF function. #include "udf.h" static float V_Prev=0.0; DEFINE_CG_MOTION(unsteady_velocity, dt,vel, omega,time,dtime) { thread *t; face_t f; float NV_VEC(A); float velocity; NV_S(vel, =, 0.0); NV_S(omega, =, 0.0); if (!Data_Valid_P()); return; t=DT_THREAD(dt); velocity = (0.0000004*2.*3.1415926*300 cos (2.*3.1415926*time*300.)); begin_f_loop(f, t) { V_Prev(A, f, t) = velicty; } end_f_loop(f, t) message ("time = %f, z_vel= %f", time, V_Prev); vel[0]=V_Prev; } i write this udf function with the help of CG motion udf given in the manual. this UDF function gives so many errors when i try to compile this function. i shall be very very thankful to any one who will help me in this regard.

 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 Rizwan Fluent UDF and Scheme Programming 37 March 2, 2017 09:58 zzyan FLUENT 0 November 4, 2010 04:56 july Fluent UDF and Scheme Programming 3 June 20, 2010 06:56 akr FLUENT 3 August 22, 2007 07:14 chiseung FLUENT 4 January 10, 2002 10:58

All times are GMT -4. The time now is 20:00.